cancel
Showing results for 
Search instead for 
Did you mean: 

start routine

Aummad
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

just adding that <f> is a field symbol pointing to the TRAN_STRUCTURE or the COMM_STRUCTURE.

hope that helps,

Olivier.

Former Member
0 Kudos

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>