cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Conversion to 0fiscper

Former Member
0 Likes
753

Hi experts,

I need to know the code about 0fiscper conversion. I have the infoobject 0CALMONTH, and I wnat to convert to 0FISCPER in the update rules. Could somebody write me the ABAP code?

View Entire Topic
Former Member
0 Likes

Hello Mauricio,

Use Function Module FISCPER_FROM_CALMONTH_CALC. Give the value of 0CALMONTH and fical variant as input and you will get Fiscal year / period as output.

Hope it helps.

Regards,

praveen

Former Member
0 Likes

I'm new in BW. Could somebody explain me step by step, please?

Thanks

Former Member
0 Likes

In your update rules, choose update method routine and then click on the create icon. after that, you will need to copy and paste the code below and save:

$$ begin of routine - insert your code only below this line -

  • fill the internal table "MONITOR", to make monitor entries

data: l_fiscper type rsfiscper.

call function 'FISCPER_FROM_CALMONTH_CALC'

exporting

iv_calmonth = comm_structure-calmonth

iv_periv = 'K4'

importing

ev_fiscper = l_fiscper.

  • result value of the routine

result = l_fiscper.

  • if abort is not equal zero, the update process will be canceled

abort = 0.

$$ end of routine - insert your code only before this line -

Note that you may have to modify the code with respect to the fiscal year variant used. K4 is used here just for illustration.

Former Member
0 Likes

Thanks John, I assigned points

Former Member
0 Likes

Hi,

And also take a look on the links for more information.

With rgds,

Anil Kumar sharma .P