cancel
Showing results for 
Search instead for 
Did you mean: 

Customer exit

Former Member
0 Kudos

pls help me how to write a customer exit for displaying the debit/credit account for present fiscal year, previous fiscal year, last to last fiscal year and before that.

Accepted Solutions (1)

Accepted Solutions (1)

pavel_afanasiev
Contributor
0 Kudos

Denella,

is there a specific reason why you need to create an exit variable? You can just use the variable offset. as an example, you can use one Variable - 0P_FYRA (Current Fiscal Year). Put the restriction in each column as follows:

Current year = 0P_FYRA

Prior year = 0P_FYRA-1

Year before that = 0P_FYRA-2

and so forth

to use the offset, first transfer the variable into the Selection half of the screen, and then you will see the -/+ button on the top/right.

Would this be a solution?

Answers (2)

Answers (2)

Former Member
0 Kudos

can u just gimme the code for this???

Former Member
0 Kudos

Hi D' souza,

Check this code....

VARIABLE IS PREPOPULATED WITH CURRENT Year unless it is January 1, gives prior yr

*----


WHEN 'Variable name'.

yesterday = sy-datum - 1.

l_S_range-low = yesterday+0(4).

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

APPEND l_s_range TO E_T_range.

ENDIF.

hope this helps..

Thanks

Suman

Former Member
0 Kudos

Does your issue got solved?

Former Member
0 Kudos

the problem is 0p-FYRA is not included in the cube.

pavel_afanasiev
Contributor
0 Kudos

if the fiscal year characteristic present in the cube? You can use any variable (including your own) for this purpose - I used 0P_FYRA as an example