Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Customer Exit Code for text in BI

Former Member
0 Likes
364

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
346

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

1 REPLY 1
Read only

Former Member
0 Likes
347

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.