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: 

Reg: Space between lines in script.

former_member623843
Participant
0 Kudos

Hi all,

I want to give the space between lines in script layout.

Ex:

After printing 3 lines i want to give one line space and again the remaining lines nee to be print..

So is there any statement..?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

After 3 lines, give "/" in one line. It will feed a new line into script output.

4 REPLIES 4

Former Member
0 Kudos

After 3 lines, give "/" in one line. It will feed a new line into script output.

0 Kudos

HI veera,

'/' is for next line. i think it wont give the line space between lines..

and one more thing how to use the paragraph formats and use of it..can any body tell me..

Edited by: Mahaboob on Jul 31, 2009 4:21 PM

former_member623843
Participant
0 Kudos

Thanks

0 Kudos

For space between lines, do this. Example u are printing the following text and u want space after 3 lines :

/ &ITCFX-SCTITLE& &ITCFX-SCLNAME&

/ <K>Phone < / >

/ &ITCFX-SCPHONENR1&

/

/ &ITCFX-SCTITLE& &ITCFX-SCLNAME&

/ <K>Phone< / >

/ &ITCFX-SCPHONENR1&

Hope u got my point. Line feed '/' with a blank line will result in 1 blank line in the output.

Now to use paragraph formats:

1. Click on paragraph format button.

2. In menu - Edit -> Create element -> give a name to ur para format and a description.

3. Click the tab button on the bottom right side of the page.

4. Here u can enter values to set the tabs. For example, if first value u set is 2 and next 4, then 6 and so on. So in the script when u use ur para format. Double comma between words would mean 2 spaces.

Remember the space which u give between ur words by putting double comma - ,, considers the value which u have entered in ur para format.

Example :

P1 - I created para format P1 with spaces 2, 5, 9, 15. and i use it in my editor as:

P1 <W>Phone < / > ,, <W>Name < / > ,, <W>Grade < / > ,, <W>Marks < / >

These words will be printed at 2nd, 5th, 9th and 15th cursor positions from left in the output.

I may be wrong in the accuracy of position. U'll have to play with it, and find out how double comma, 4 commas are behaving for ur script.

To have more clarity on this u can go through the following :

http://it.toolbox.com/wiki/index.php/Sap_script#2.2.3.09Tabs_in_Paragraph_Formats

Edited by: Navita Gujral on Nov 26, 2009 3:55 PM

Edited by: Navita Gujral on Nov 26, 2009 3:56 PM