2008 Apr 22 3:01 PM
Hi,
DATA: lv_zbnkl(8) TYPE c.
Data: l_chr(15) type c. ß-- NUMBER is SAME AS zbnkl LENGTH
Write i_reguh.-zbnkl to l_chr
IF L_CHR CA '-'.
SPLIT L_CHR AT '-' INTO lv_zbnkl.---->error
endif.
I am using above code but it is throwing an eror saying that unable to interpret lv_zbankl.
2008 Apr 22 3:07 PM
hi,
do this way...
data : lv_other(10).
IF L_CHR CA '-'.
SPLIT L_CHR AT '-' INTO lv_zbnkl lv_other.
endif.
write : lv_zbnkl, lv_other.
2008 Apr 22 3:04 PM
U need to have atleast 2 variables .. when U split ..
write as ...
SPLIT L_CHR AT '-' INTO lv_zbnkl lv_zbnkl1.
2008 Apr 22 3:06 PM
hi prince you r splitting a value into two ...but you specified the variables only one..al the end of the statement
SPLIT L_CHR AT '-' INTO lv_zbnkl and some field is required here..
regards,
venkat.
2008 Apr 22 3:07 PM
hi,
do this way...
data : lv_other(10).
IF L_CHR CA '-'.
SPLIT L_CHR AT '-' INTO lv_zbnkl lv_other.
endif.
write : lv_zbnkl, lv_other.
2008 Apr 22 3:11 PM
Hi,
Correct your code which is highted.
DATA: lv_zbnkl(8) TYPE c.
*DATA: lv_zbnkl_extra(7).*
Data: l_chr(15) type c. ß-- NUMBER is SAME AS zbnkl LENGTH
Write i_reguh.-zbnkl to l_chr
IF L_CHR CA '-'.
SPLIT L_CHR AT '-' INTO lv_zbnkl lv_zbnkl_extra.---->error
endif.