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: 

Concatenate material number with a standard value

Former Member
0 Kudos

Hi all

Each time I get the material number as input in my program and I have to Concatenate material number with a standard value.

.

Say for if my material number is 49 I have to make it as AB_DEF_49.

Similarly if my material number is 8967345 I have to make it AB_DEF_8967345.

Each time I have to attach AB_DEF_ for my material number and use it in my program.

Can some one tell me how can I attach AB_DEF_ for my input that is material number and make it as

AB_DEF_material.

Regards,

Jessica sam

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Give the parameter as

Parameters: p_matnr(18).

data: gv_matnr(25).

then after input,

concatenate 'AB_DEF_' p_matnr into gv_matnr.

condense gv_matnr no-gaps.

4 REPLIES 4

Former Member
0 Kudos

Give the parameter as

Parameters: p_matnr(18).

data: gv_matnr(25).

then after input,

concatenate 'AB_DEF_' p_matnr into gv_matnr.

condense gv_matnr no-gaps.

0 Kudos

Thanks riki, and all people for their valuable suggestions and time

It worked....:-)

Edited by: jessica sam on Jan 15, 2009 4:45 PM

Former Member
0 Kudos

try kine this.

v_char = wa-matnr.

concatenate 'AB_CD' v_char into v_char.

select suitable data types to v_char to accomodate matnr and the additional string.

wa-matnr = v_char

former_member208856
Active Contributor
0 Kudos

use concateate command for this in your code :

use AB_DEF_ in a constant field.

one field is for your material

give command for field1 and field2 as below

concatenate field1 field2 into field3.

use field3 as result output.

sandeep