on 01-30-2009 10:58 AM
Hi experts,
I have a sapscript. I want to display some variable on the form. I want to create the following logic:
if var1 eq 1.
display bukrs on the form.
else.
display matnr on the form.
endif.
Hi
/: IF &var1& EQ 1
PF &bukrs&
/: ELSE
PF &matnr&
/: ENDIF
Pushpraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check the following
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/sap%252bscripts%252bin%252bdetail
Regards,
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I don't think there is anything wrong in your code. Just try using 'case' statements instead of 'if' ,
/:CASE &var1&.
/:WHEN '1'.
&bukrs&.
/:WHEN OTHERS.
&matnr&.
/:ENDCASE.
Hope this helps.
Regards,
Deepthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If var1 is char then use '1'.
if &var1& eq 1.
&bukrs&
else.
&matnr&
endif.
This will help
Regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try using a IF command in your editor as mentioned above. Also in your driver program loop through the respective tables so that you get the values of bukrs and matnr from the table.
Hope this helps.
Regards,
Deepthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.