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

Concatenating space

Former Member
0 Likes
542

Hi All,

I have a requirement in which I have to concatenate EBELN and EBELP. Now the problem is if EBLN is blank I want to add space of length EBELN before EBELP. eg. 0010 .

Please help.

Thanks in advance!

Ruchi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
513

hi,

try something like this


if ebeln is initial.
  output+11 = ebelp.
else.
 concatenate ebeln ebelp into output separated by space.
endif.

regards darek

4 REPLIES 4
Read only

thomas_jung
Developer Advocate
Developer Advocate
0 Likes
513

Moved to ABAP general from Web Dynpro ABAP as this question doesn't have anything to do with WDA.

My suggestion

if ebeln is initial.
  concatenate `          ` ebelp into output.
else.
 concatenate ebeln ebelp into output.
endif.

Read only

Former Member
0 Likes
514

hi,

try something like this


if ebeln is initial.
  output+11 = ebelp.
else.
 concatenate ebeln ebelp into output separated by space.
endif.

regards darek

Read only

0 Likes
513

Thanks Darek.... Problem solved

Read only

Former Member
0 Likes
513

IF EBELN Exists

then if EBELN equalS BLANK

then Blank constant to output

else EBELN to output

else EBELN to output

Concatenate the above output to EBELP.

It should work

thanks

sneha