Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

can you help to solve this problem for" xd02"

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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