cancel
Showing results for 
Search instead for 
Did you mean: 

Display complete Fiscal year total based on fiscal year/period input

Former Member
0 Kudos

Hi ,

My req is , If user enter fiscalyera/ period 005/2007 .the total year colum should display total of year 2007 (001/2007 -012/2007) . we don"t want to use fiscal year input .I have to use fiscal year period to input r . How to write a customer exist for this .I need to pass only year .

Appriciate your response

sree

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sree,

Are you saying that one column will have a key fig with 05.2007 and in another column you have the complete year on display?

If so, there is a SAP Exit for All Periods of Current Year, use that in your selection.

Regards

Gill

Former Member
0 Kudos

Thanks for reply . If run report for current year period 005//2007 current year variable will work . If I run 005/2006 . no result at year colum.

Thanks

Sree

Former Member
0 Kudos

It can be very well done with customer exit. But try replacement var, I believe it should work. Define a var for fiscal year as replacement path. In replacement path details choose replacement path with variable & provide your fiscal period var here.

Former Member
0 Kudos

Pallavi ,

Replacement path is not working .

Thanks

sree

Former Member
0 Kudos

I didn't write this but I think it should work

DATA: L_S_RANGE TYPE RSR_S_RANGESID.

DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.

CASE I_VNAM.

WHEN 'yourvar'.

IF I_STEP=2. "after the popup

LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE

WHERE VNAM = 'variablename where user entry'.

CLEAR L_S_RANGE.

L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4). "YYYYMM"

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'EQ'.

APPEND L_S_RANGE TO E_T_RANGE.

EXIT.

ENDLOOP.

ENDIF.

Former Member
0 Kudos

William,

It is not working

Thanks

sree

Former Member
0 Kudos

how to get Fiscal Year from Fiscal Period/Year using Customer Exit Variable

Thanks

sree

Former Member
0 Kudos

Hi

Define in global declaration, you may have already defined range variable so u can use them.

DATA: L_S_RANGE TYPE RSR_S_RANGESID,

LOC_VAR_RANGE LIKE RRRANGEEXIT,

v_fyear(4) TYYPE n.

put it into I_STEP=2

WHEN 'EXITVARNAME'.

LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE

WHERE VNAM = 'USERINPUT'.

MOVE LOC_VAR_RANGE+0(4) TO v_fyear.

ENDLOOP.

L_S_RANGE-LOW = v_fyear.

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'EQ'.

APPEND L_S_RANGE TO E_T_RANGE.

Thanks

Tripple k

Former Member
0 Kudos

Willian ,

Thanks . it is working now.

Thanks

sree

Former Member
0 Kudos

mark as answered

Answers (0)