on 08-27-2009 2:46 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.