SAP Char.Value Description not in CAWNT - class

I'm running into a bit of a problem when trying to lookup/create a report showing characteristic value descriptions.
My issue is that some of our characteristics are created with Datatype = NUM (via tcode CT04) and I can easily find these in table CAWN but I don't find the actual value description which is usually present in CAWNT.
Any idea why and/or if SAP ERP stores the value description in another table when Datatype = NUM ?
(FYI - there's no problem when Datatype = CHAR)
Br,
Thomas
[CT04 screenshot - basic][1]
[CT04 screenshot - values][2]
[table CAWN screenshot - values][3]

See my accepted response on SAP Q&A: SAP Char.Value Description not in CAWNT

Related

Crystal Reports Formula: Help forming IIF Statement

I am working with Crystal Reports 11.5.10.1263 [CR Developer Type: Full].
I am familiar with Programming and SQL syntax in general and have worked with expressions in SSRS & MS Access but never in Crystal Reports.
Problem:
I modified the SQL in the Crystal report and it has had the desired effect - except in the last part of the report output - where the changes I made to the SQL do not have the desired effect.
The 'desired effect' is that when a field named 'FundNumber' has the values '2595', '2597' Then the field named 'Organization' should be assigned the value '41600'.
The Detail Record in the Report has the following three rows as part of its 'Formula':
+ IIf({Data.Payments} > 0, "+01W ", "-01W ")
+ Left({Data.FundNumber}+ SPACE(6),6)
+ Left({Data.Organization}+ SPACE(6),6)
I want to change the Data.Organization row to an IIF Statement that says [pseucode]:
IIf Data.FundNumber IN ["2595", "2597"] Then "41600" Else Data.Organization
I believe the Left() function is saying 'return the left 6 characters of [Data.Organization + 6 Spaces] ?? and that it has to do with the way the data is presented in the output.
I would appreciate help with creating the IIF statement for this.
I included the 'IIf({Data.Payments} ...' row in case that helps - as my google searches have turned up examples that use IF instead of IIF.
Thanks!
The syntax most of the time is the same as VB. Try
IIF({Data.FundNumber} = "2595" or {Data.FundNumber} = "2597", "41600", {Data.Organization})

Issue Building Rally Query that Returns Dates for Status Changes

I am trying to build a rally query in the rally UI that shows the date a particular status has changed for custom fields. I can see when an item has been accepted with "AcceptedDate" but I cannot return the date a rally item has changed from a custom field. For instance -
(c_KanbanState = "Idea", lastupdate = beforetoday)
How could I accomplish this and what would the proper syntax be?
Thanks!
Just checked and it appears to work for me with a little modification:
((c_KanbanState = "Idea") AND (LastUpdateDate >= "lastweek"))

How to display data required using a database value

I am new to crystal reports and I am trying to get round formulations.
I am trying to display certain data in a report by using a particular value from the database. All the data i need to display is within the value '1' of the database.
I have tried with an if statement, which seems to work but displays true and false instead of the actual data. Can anyone help me with this please?
if {database.column} = 1 then
true
else
false
This is where I have got too, just need a little guidance please
Try using the code below:
if {database.column} = 1 then
database.column
else
0

Invalid Name Error - Crystal Reports in VB6

I'm trying to set the title of a crystal report in VB6, but I keep being shown an error.
The parameter field that I want to set the text of is called txtTitle.
However, when running this code, it gives an error saying
Invalid Name
If opt_sales_ledger.Value = True Then
crxReport.ParameterFields.GetItemByName("txtTitle").AddCurrentValue ("List of Sales Ledger Accounts")
ElseIf opt_purchase_ledger.Value = True Then
crxReport.ParameterFields.GetItemByName("txtTitle").AddCurrentValue ("List of Purchase Ledger Accounts")
End If
What's causing the error?
Crystal is looking for a "parameter" type field called "txtTitle" and it cannot locate it. I usually use formulas for this purpose, in other words "txtTitle" would be a formula in the report and defined and/or initialized as a stringVar
Try to use this way:
crxReport.ParameterFields(1).AddCurrentValue ("your_first_parameter_value")
crxReport.ParameterFields(2).AddCurrentValue ("your_second_parameter_value")
Good luck!

INSTR in Crystal

We are using this function to filter data by program codes entered, if nothing is entered return all?
Can any one please explain this Crystal function, and how Crystal works with it? Mainly the last statement.
Here is some information that might be useful.
{?Program} ==> Parameter to accept different programs codes in the following form
303&410&110
{Command.program_code} ==> Field were program code is stored
if ({?Program} = "")
then true
else
(INSTR("&" & {?Program} &"&", "&"& {Command.program_code} & "&")>0)
Thanks...