on 12-15-2008 6:38 AM
hello All,
I have a date field / infoobject ST_UP_DTE in the Transfer Rules of 2LIS_11_VAITM.
I want write a routine for 0FISCPER to get the data from this Date Field,
i have written code below ,
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = COMM_STRUCTURE-ST_UP_DTE
i_periv = COMM_STRUCTURE-fiscvarnt
IMPORTING
e_buper = RESULT+4(3).
But when I start data loading , the data is not loaded to infocube.
The request is Yellow all the time.
Please correct me if anything is wrong in this code.
regards ,
Amol K.
data : zperiod like T009B-POPER,
zyear like T009B-BDATJ.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = COMM_STRUCTURE-ST_UP_DTE
i_periv = COMM_STRUCTURE-fiscvarnt
IMPORTING
e_buper = zperiod
E_GJAHR = zyear.
Concatenate zyear zperiod into RESULT.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Praveen ,
I made a slight modification to your code as below ,
I made Fiscal year Variant = V3 as constant in the code itself.
And now its working.
data : zperiod like T009B-POPER,
zyear like T009B-BDATJ.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = COMM_STRUCTURE-ST_UP_DTE
i_periv = 'V3'
IMPORTING
e_buper = zperiod
E_GJAHR = zyear.
Concatenate zyear zperiod into RESULT.
Thanks for help. full ponits to you.
regards ,
Amol k.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.