10-20-2006 9:41 AM
Hi all,
Need ur kind help in concatenating as below.
L_MATERIAL(18) = LQAMCANO240033. "Material no length varies upto 18 char
L_BATCH = T91.
Output should be LQAMCANO240033&&&&T91
& denotes space
Pls note that there should be space in case the material no is smaller.
Regards,
Karthik
10-20-2006 9:48 AM
U can use WRITE statement with offset to get the requiremd result.
WRITE l_material to l_text+0(18).
write l_batch to l_text+18(3).
L_text will have the required result.
10-20-2006 9:48 AM
U can use WRITE statement with offset to get the requiremd result.
WRITE l_material to l_text+0(18).
write l_batch to l_text+18(3).
L_text will have the required result.
10-20-2006 9:55 AM
Hi.
data L_space(4) type c.
data l_output(25) type c.
concatenate L_MATERIAL L_BATCH
into L_output.
separated by l_space.
output l_output.
10-20-2006 10:00 AM
Hi Karthik,
Try the following statements.
l_out = l_material.
l_out+18(3) = l_batch.
-Anu