2008 Sep 25 4:31 PM
Hi!
thanks for your answer ,I want to post the zone (i_kna1-bahns ) automatically
i send my program:
IF i_kna1-ktokd = gc_zhge
OR i_kna1-ktokd = gc_zhgf
OR i_kna1-ktokd = gc_zhgi
OR i_kna1-ktokd = gc_zhgp.
CONDENSE i_kna1-sortl NO-GAPS.
IF STRLEN( i_kna1-sortl ) <= 7.
SELECT SINGLE kunnr FROM kna1 INTO kna1-kunnr
WHERE sortl = i_kna1-sortl
AND kunnr <> i_kna1-kunnr.
AND BAHNS i_kna1-BAHNS. " mus
IF i_kna1-bahns IS NOT INITIAL .
i_kna1-bahns = i_kna1-sortl(4).
ENDIF.
(transaction XD02)
can yo help me to solve this problem
2008 Sep 25 4:58 PM
Hello Musthapha,
I think the prblem is with this code.
IF i_kna1-bahns IS NOT INITIAL .
i_kna1-bahns = i_kna1-sortl(4).
ENDIF.
Correct code is as below.
IF i_kna1-bahns IS NOT INITIAL .
i_kna1-bahns = i_kna1-sortl+0(4). "If you want first four characters as Train name
ENDIF.
Try this.
Regards,
Jyothi