cancel
Showing results for 
Search instead for 
Did you mean: 

spaces are truncated in concatination

naresh_bammidi
Contributor
0 Kudos

Hi all,

I have to print the internal table data into sap scripts.for that i am using subroutine pool and passing internal table data into standard text and printing in form.up to now its working fine.i am writing the following code for concatinatination

CONCATENATE w_zemployee-empno  w_zemployee-empname 
      INTO w_text-tdline
      SEPARATED BY c_par.

in the print output its printing following way.

-


empno | empname |

-


1200 johnson

134567 peterson

values should come in respective column .here i am missing alignment.please help me out.

thanks in advance

Naresh bammidi

Edited by: naresh bammidi on Oct 24, 2011 8:00 AM

Edited by: naresh bammidi on Oct 24, 2011 8:13 AM

Moderator Message: FAQ. Search the forums before posting your query.

Edited by: Suhas Saha on Oct 24, 2011 12:24 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

if you want to do it like this, that you have only one variable for both columns, you have to use offset specification instead of concatenation.

E.g.:


w_text-tdline(10) = w_zemployee-empno.
w_text-tdline+11(30) = w_zemployee-empname.

Regards

Adrian