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

TAB in SAPSCRIPT

Former Member
0 Likes
579

Hi,

I need to display two lines per loop in a sapscript. I managed to add the second line by just adding a symbol after the first line but I want to indent it. I kept on pressing tab but it seems like it has no effect.

How do I put tabs in a line if theres only a single symbol there? For example, &V_TEST&, Is there a code I need to put before that to indent it several tabs?

Thanks in advance.

Kenny

2 REPLIES 2
Read only

Former Member
0 Likes
396

Hi Kenny,

If you are looking for the Alignment of the fields in a line then goto <b>Paragraph Formats -> tabs</b> and give the tab positions based on the fields present in a line..

Hope this helps

Srini..

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
396

Well, for format consistancy, I think that you should separate the two lines with separate text elements.

/E  Line_one

Z1  &V_TEST1&

/E  Line_two

Z1  ,,&V_TEST2&

Here, notice that Z1 has a tab setup and it is being used only for the LINE_TWO text element, this will give you your indent for the second line. You must add this tab to the paragraph format Z1.

Also, your print program, you should call the WRITE_FORM twice, once for each text element.

Regards,

Rich Heilman