on 2015 Mar 25 8:10 AM
Hello All,
We have a report in BW system where in it shows the Freight rates, changed date and user who has done it.
and it is fetching the date Information directly from CDPOS table in SAP where there are few Invalid entries like '0146/1/' and '147/01 '
So business has requested to make this Invalid date entries as to be appeared as 00/00/0000 in the report output.
We have written sample code in BW side to make all Invalid date as 00/00/0000, but when the load from Inbound DSO to cube happens,
the data in the cube is appearing as blank value and in the report it is appearing as '#'.
Could any body please help me here as I need to display that value 00/00/0000 as it is in the report output.
You need to store that date as keyfigure.Make keyfigure of type date and map with the characteristic date.
If you store it is characteristic then for blank records it will show as # but for keyfigure you will get your desired format.
Regards,
AL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudhir,
What is the data types of your date fields. Debug the code and see how the values are updating into those fields.
Regards,
Vengal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you put down the code written to achieve this.
Regards,
Anupama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is small code snippet that has been written from Inbound to staging...
as we know the existing Invalid entries in CDPOS..we have written like this
DATA : LV_DATAB TYPE /BIC/OIZOLDVLFRM.
LV_DATAB = SOURCE_FIELDS-OLD_DATAB.
If LV_DATAB = '0147/1/ ' OR LV_DATAB = '0141/1/ ' OR LV_DATAB =
' ' OR LV_DATAB = '0146/1/ ' OR LV_DATAB = '0148/1/ ' OR LV_DATAB =
'45/19'.
LV_DATAB = '00/00/0000'.
Else.
RESULT = LV_DATAB.
ENDIF.
and also the data type is the same, it is the DATE field
User | Count |
---|---|
68 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.