cancel
Showing results for 
Search instead for 
Did you mean: 

5 digits after the ' u2013' in the material description MAKT-MAKTX follow ' ;'

Former Member
0 Kudos

If Brand(MVKE-MVGR1)=u201916u2019 then Part Number is EAN ie MEAN-EAN11 for EAN Category ie MEAN-EANTP = Z1.

only true for parts with u2013 XXXXX ;( 5 digits after the' u2013 ' in the material description MAKT-MAKTX followed by ;). For the rest of the parts return blank.

How to code this?

Please give the resolution.ooking for urgent reply.

Accepted Solutions (0)

Answers (5)

Answers (5)

anub
Participant
0 Kudos

Question is not clear!!

Former Member
0 Kudos

Hi,

Use the below code.

data: v_true(40),

v_others(40).

data: v_maktx like makt-maktx value 'fdfhfhgfh-12345;'.

split v_maktx at '-' into v_others v_true.

move: space to v_others,

space to v_true+5.

write:/ v_true+0(5).

peter_ruiz2
Active Contributor
0 Kudos

hi arjya,

use this code.


v_pos = strlen ( v_maktx ).

add 2 to v_pos.

if v_maktx+v_pos(5) eq 'XXXXX'.
* do processing here.
endif.

regards,

Peter

kesavadas_thekkillath
Active Contributor
0 Kudos

check this

apply the same in ur logic

data:val type string.

val = 'hello-abcde;ert'.

if val cp '-+++++;'.

write 'YES'.

ENDIF.

Former Member
0 Kudos

V_LEN = LEN ( MAKT-MAKTX ).

V_LEN = V_LEN - 5.

IF V_LEN+V_LEN(1) = '-'.

  • check for other conditions here.

else.

  • part is blank.

endif.