2008 Feb 19 10:06 PM
Hello Friends. I have a requirement to create Text Variable using Customer Exit . So I created the Text Variable as "ZVRBMS" and assigned that with YTD &ZVRBMS& in the Structure of Query Desigener . so that Out put will YTD AUTO
OR YTD RETAIL
Now this Auto And Retail comes from Version that user choose via variable ZFIBMSVER IN User Promt. if ZFIBMSVER = 10
then ZVRBMS = auto . and if ZFIBMSVER = 20
then ZVRBMS = RETAIL
Please correct my ABAP code in customer exit and let me know to make this work
when 'ZVRBMS'.
if I_STEP = 2.
clear LOC_VAR_RANGE.
loop at I_T_VAR_RANGE into LOC_VAR_RANGE.
if LOC_VAR_RANGE-VNAM = 'ZFIBMSVER'.
if SY-SUBRC = 0 OR LOC_VAR_RANGE-LOW = '10'.
L_S_RANGE-LOW = 'AUTO'.
elseif LOC_VAR_RANGE-LOW = '20'.
L_S_RANGE-LOW = 'RETAIL'.
L_S_RANGE-SIGN ='I'.
L_S_RANGE-OPT = 'EQ'.
append L_S_RANGE to E_T_RANGE.
endif.
endif.
exit.
endloop.
endif.
Thanks
Soniya
2008 Feb 20 12:14 PM
hi Soniya,
I have corrected your coding. It should work. Kindly check this and let me know.
when 'ZVRBMS'.
if I_STEP = 2.
clear LOC_VAR_RANGE.
loop at I_T_VAR_RANGE into LOC_VAR_RANGE.
if LOC_VAR_RANGE-VNAM = 'ZFIBMSVER'.
if LOC_VAR_RANGE-LOW = '10'.
L_S_RANGE-LOW = 'AUTO'.
elseif LOC_VAR_RANGE-LOW = '20'.
L_S_RANGE-LOW = 'RETAIL'.
endif.
L_S_RANGE-SIGN ='I'.
L_S_RANGE-OPT = 'EQ'.
append L_S_RANGE to E_T_RANGE.
endif.
exit.
endloop.
endif.
Best Regards,
Shakeel.
Hello Friends. I have a requirement to create Text Variable using Customer Exit . So I created the Text Variable as "ZVRBMS" and assigned that with YTD &ZVRBMS& in the Structure of Query Desigener . so that Out put will YTD AUTO
OR YTD RETAIL
Now this Auto And Retail comes from Version that user choose via variable ZFIBMSVER IN User Promt. if ZFIBMSVER = 10
then ZVRBMS = auto . and if ZFIBMSVER = 20
then ZVRBMS = RETAIL
Please correct my ABAP code in customer exit and let me know to make this work
when 'ZVRBMS'.
if I_STEP = 2.
clear LOC_VAR_RANGE.
loop at I_T_VAR_RANGE into LOC_VAR_RANGE.
if LOC_VAR_RANGE-VNAM = 'ZFIBMSVER'.
if SY-SUBRC = 0 OR LOC_VAR_RANGE-LOW = '10'.
L_S_RANGE-LOW = 'AUTO'.
elseif LOC_VAR_RANGE-LOW = '20'.
L_S_RANGE-LOW = 'RETAIL'.
L_S_RANGE-SIGN ='I'.
L_S_RANGE-OPT = 'EQ'.
append L_S_RANGE to E_T_RANGE.
endif.
endif.
exit.
endloop.
endif.
Thanks
Soniya
2008 Feb 20 12:14 PM
hi Soniya,
I have corrected your coding. It should work. Kindly check this and let me know.
when 'ZVRBMS'.
if I_STEP = 2.
clear LOC_VAR_RANGE.
loop at I_T_VAR_RANGE into LOC_VAR_RANGE.
if LOC_VAR_RANGE-VNAM = 'ZFIBMSVER'.
if LOC_VAR_RANGE-LOW = '10'.
L_S_RANGE-LOW = 'AUTO'.
elseif LOC_VAR_RANGE-LOW = '20'.
L_S_RANGE-LOW = 'RETAIL'.
endif.
L_S_RANGE-SIGN ='I'.
L_S_RANGE-OPT = 'EQ'.
append L_S_RANGE to E_T_RANGE.
endif.
exit.
endloop.
endif.
Best Regards,
Shakeel.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |