on 05-26-2008 2:20 PM
Hi,gurus,
How can I carry out that just show the field VBDKL-BSTK which just contain "RMA*R".
I try this statement:
IF &VBDKL-BSTKD& CS 'RMA*R'
....
But it seem can suit my request. Can someone help me to solve it...?
Thanks advance.
Larry
Sorry, I tried it again , bur there is something wrong about the scrip or the abap program
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In ABAP '*' wont work while writing a program....to get dat hierarchy...use 'RMA%'
IN SCRIPT :
/: perform sub in program ztest
/: using &VBDKL-BSTK &
/: changing & text&
/: endperform
( instead of that field directly write this in two lines.)
&text&
in the program ztest write the coding as follows
IN SUB-ROUTINE POOL :
report ztest.
Form sub tables input structure itcsy
output structure itcsy.
read table input with key name = ' VBDKL-BSTK '.
if sy-subrc = 0.
if input-value CS 'RMA%R'
loop at output.
case output-name.
when 'TEXT'.
output-name = 'TEXT'.
output-value = input-value.
modify output.
endcase.
endloop.
endif.
endform.
Thanks,
NN.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
/: perform sub in program ztest
/: using &VBDKL-BSTK &
/: changing & text&
/: endperform
( instead of that field directly write this in two lines.)
&text&
in the program ztest write the coding as follows
report ztest.
Form sub tables input structure itcsy
output structure itcsy.
read table input with key name = ' VBDKL-BSTK '.
if sy-subrc = 0.
if input-value CS 'RMA*R'
loop at output.
case output-name.
when 'TEXT'.
output-name = 'TEXT'.
output-value = input-value.
modify output.
endcase.
endloop.
endif.
endform.
Thanks,
NN.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried, but it doesn't work!
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 it can work.
CO, CP , NA , EQ, CS
all these can be used for individual character comparison and for string comparison also..
for more information check this link...
http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
Regards,
Shiva Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.