‎2007 Aug 24 2:10 PM
hi i have a field ZBARCODE = BCS/MATNR/EXIDV02
i need to extract only MATNR and EXIDV02 sapartely, please let me know
‎2007 Aug 24 2:12 PM
hi
split zbarcode at '/' into <field1> <fld2> <fld3>.
now u can use fld2 and fld3. values
‎2007 Aug 24 2:12 PM
hi
split zbarcode at '/' into <field1> <fld2> <fld3>.
now u can use fld2 and fld3. values
‎2007 Aug 24 2:13 PM
Hi,
use the
split ZBARCODE at '/' into var1 var2 var3.
here the output
is
var1 = BCS
var2 = MATNR
var3 = EXIDV02
thanks & regards,
Venkatesh
‎2007 Aug 24 2:13 PM
hi,
data : lv_bsc(10) type c,
lv_matnr(18) type c,
lv_exidv02?(10) type c.
split zbarcode at '/' into lv_bcs lv_matnr lv_exidv02.
Thanks
mahesh
‎2007 Aug 24 2:15 PM
With as example
Data: l_str type string value 'Due Date or Amount',
l_var1 type string,
l_var2 type string.
split l_str at 'or' into l_var1 l_var2 in character mode .
If you have unknown number of variables then you can use a internal tables as well. I would suggest that you take the F1 help on the SPLIT command to learn more.