on 04-24-2007 3:14 PM
hi,
any body help me for understand the codes please
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = <f>-/BIC/ZI_DRDTE
i_periv = <f>-FISCVARNT
IMPORTING
e_buper = w_fiscper
e_gjahr = w_fiscyear
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
IF sy-subrc eq 0.
CONCATENATE w_fiscyear w_fiscper into <f>-ZZFISPER.
ENDIF.
The start routine calls the function module "'DATE_TO_PERIOD_CONVERT". This is a standard function module and it converts the data into the fiscal period.
After conversion, the routine stores the value ( both fiscal period and fiscal year) and concatanates to give period / year.
If you go to Se37 and put the function module name "'DATE_TO_PERIOD_CONVERT", you will see the code and the import and export parameters.
Ravi Thothadri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
just adding that <f> is a field symbol pointing to the TRAN_STRUCTURE or the COMM_STRUCTURE.
hope that helps,
Olivier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rob,
Code gets date and fiscal year variant as input and accordingly it finds out fiscal year and posting period.
And fiscal year posting period gets concatenated to create fiscal period value.
Hope that helps.
Regards
Mr Kapadia
<removed>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.