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: 

How to CONCATENATE a quantity and a character field

Former Member
0 Kudos

Hi Experts,

Can anyone tell me how to concatenate a quantity and character field as I need to pass this to

smartform and show as for example 5,000 KG.

Thanks is advance!!!!!!!!!!!!!

3 REPLIES 3

Former Member
0 Kudos

HI,

Move the quantity data to char field ans use the this char field in the concatenating.

DATA L_QUAN TYPE CHAR15.

WRITE QUANTITY TO L_QUAN.
CONCATENATE L_QUAN 'KG' INTO I_VAL.

rainer_hbenthal
Active Contributor
0 Kudos

try "write to"

After that try to read a book first to get information about abap coding.

Former Member
0 Kudos

v_qnty = 5000

v_unit = 'KG'

WRITE v_qnty TO v_quan.

Concatenate v_quan ' ' v_unit into new_variable.