Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3019

Re: how to determine year from FisYear/Period

$
0
0

Hi Taniya

 

You could achieve this by creating a customer exit variable for fiscal year.

 

Create a variable of type customer exit for fiscal year and include it in your RKF. If you want offset as well, you could use the same variable for previous year data.

 

In CMOD, you need to write a code similar to below to populate year into your cx exit variable.

 

 

WHEN 'ZFISCYEAR'.          " I_VNAM step 2

 

LOOP AT I_T_VAR_RANGE INTO L_VAR_RANGE.

                             WHERE VNAM = 'ZPERIOD'.  " THIS IS YOUR PERIOD SELECTED BY USER

 

L_YEAR = L_VAR_RANGE-LOW+0(4).

 

ENDLOOP.

 

L_S_RANGE-LOW = L_YEAR.

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'EQ'.

 

APPEND L_S_RANGE TO E_T_RANGE.

 

 

Change the above code according to the naming convention of you objects and let us know if it works.

 

Regards

Karthik


Viewing all articles
Browse latest Browse all 3019

Trending Articles