Application Development and Automation 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: 
Read only

Operator CN

soned_soned
Participant
0 Likes
1,064

Hi guys,

I need your help. Why this code below doesn't works?

The content of variable vg_charg must be only numbers and when it is 1300266, the SAP shows the message.

IF vg_charg IS INITIAL.

     MESSAGE e000(ZMSG) WITH text-002.

ELSEIF vg_charg CN '0123456789'.

     MESSAGE e000(ZMSG) WITH text-010.

ENDIF.

1 ACCEPTED SOLUTION
Read only

soned_soned
Participant
0 Likes
660

Resolved.

The variable vg_charg is lenght 10. So, i have to compare with '0123456789 ' not '0123456789'

1 REPLY 1
Read only

soned_soned
Participant
0 Likes
661

Resolved.

The variable vg_charg is lenght 10. So, i have to compare with '0123456789 ' not '0123456789'