‎2006 Oct 05 8:30 AM
hello all,
i need to do select to table mseg for all ebeln that start with 2.
is anyone know how can i do that?
thanks,
dana.
‎2006 Oct 05 8:32 AM
try this
select * from mseg into table itab where ebeln like '2*'.
‎2006 Oct 05 8:32 AM
try this
select * from mseg into table itab where ebeln like '2*'.
‎2006 Oct 05 8:38 AM
Hi,
Try like this,
DATA : v_ebeln type ekko-ebeln value '2*'.
and use this in your select query.
data : v_ebeln type ekko-ebeln value '4*'.
data itab like table of EKKO with header line.
Select * from ekko into table itab where ebeln > v_ebeln.
Loop at itab.
write 😕 itab-ebeln.
endloop.
Hope it helps.
Prashanth
‎2006 Oct 05 8:43 AM
Hello,
Try like this.
Data: a1(2).
Concatenate '2' '%' into a1.
select * from mseg into itab where ebeln like a1.
If useful reward.
Vasanth
‎2006 Oct 05 8:47 AM
Have a look at below link. http://www.sapdb.org/7.4/htmhelp/8c/ccce27c71c11d2a97100a0c9449261/content.htm.
Instead of '2*', You should use select * from mseg into table itab where ebeln like '2%'.
Best Regards,
Vibha Deshmukh
*Plz mark useful answers
‎2006 Oct 05 9:28 AM