cancel
Showing results for 
Search instead for 
Did you mean: 

need to show the text as 2009 - 10

Former Member
0 Kudos

HI,

I am enter the fiscal year value as 2009 at the run time. how to show the text value as 2009 - 10 on the same report.

Is it possible without creating "Customer Exit" ?

Please help me ..

Thanks and Regards

Rajesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI ,

I created 2 text variable for 2009 - 2010. 2009 (ZYEAR1- Replacement path) is populating from the year variable (ZFY) which I resticted. For pupulating 2010 (ZYEAR2 - Customer exit) I wrote a customer exit. I checked in the customer exit it is showing 2010, but it is not populating in the variable screen...

WHEN 'ZYEAR2'.

DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.

DATA: ZNUM(4) TYPE N.

IF I_STEP = 2.

LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'ZFY'.

CLEAR L_S_RANGE.

L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4).

ZNUM = L_S_RANGE-LOW.

ZNUM = ZNUM + 1.

L_S_RANGE-HIGH = ZNUM.

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'BT'.

APPEND L_S_RANGE TO E_T_RANGE.

EXIT.

ENDLOOP.

ENDIF.

I placed in the text as &ZYEAR1& - &ZYEAR2&.

Plz suggest me..

Thanks and Regards

Rajesh

Former Member
0 Kudos

Hi,

I think you created the user exit variable as select option or interval. Since you are populating both low and high you are not able to get it in output screen. Change the code as below and try.

WHEN 'ZYEAR2'.

DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.

IF I_STEP = 2.

LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'ZFY'.

CLEAR L_S_RANGE.

L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4) + 1.

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'EQ'.

APPEND L_S_RANGE TO E_T_RANGE.

EXIT.

ENDLOOP.

ENDIF.

Hope this helps

Former Member
0 Kudos

HI,

Thanks for your reply.. I changed the code as per your suggestion,, even though it is not populating the text variable value.

Regards

Rajesh

Former Member
0 Kudos

HI,

Thanks for your reply, I changed the code as per your suggetion, even though it is not populating the text variable in the query.

Regards

rajesh

Former Member
0 Kudos

Hi,

Try creating a text variable of type customer exit.

And use that variable to populate.

Also refer to following links:

https://forums.sdn.sap.com/post!reply.jspa?messageID=8081578

https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f002c608-2533-2c10-25a1-d0e7f7b5b662

Hope it helps.

Thanks & Regards,

Rashmi