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

include a variable in message string

Former Member
0 Likes
414

Hi,

I want to include a variable in the message string like:

wa_log-msg = 'Length for material number should be ' (here I want to iclude variable holding the length).

How to do this?

Thanks in advance...

Regards,

Sriram

1 ACCEPTED SOLUTION
Read only

faisalatsap
Active Contributor
0 Likes
382

Hi, Sriram

Hope following will solve out your problem,

DATA: msg TYPE string,
      vlen(2).
vlen = 19.
CONCATENATE: 'Length for material number should be ' vlen INTO msg SEPARATED BY space.

Best Regards,

Faisal

2 REPLIES 2
Read only

faisalatsap
Active Contributor
0 Likes
383

Hi, Sriram

Hope following will solve out your problem,

DATA: msg TYPE string,
      vlen(2).
vlen = 19.
CONCATENATE: 'Length for material number should be ' vlen INTO msg SEPARATED BY space.

Best Regards,

Faisal

Read only

0 Likes
382

hi Faisal,

Thanks for ur reply...Is this the only way to do it?