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

Sapscript Include adds new line

Former Member
0 Likes
2,942

I want to add text in the same line after INCLUDE in a Sapscript. Can this be done?

Currently I have

/: INCLUDE STANDARDTEXT OBJECT TEXT ID ST
* &VARIABLE&

But this puts the variable on the next line and I want it on the same line. I have tried the following and it does not work. Any ideas.

/: INCLUDE STANDARDTEXT OBJECT TEXT ID ST &VARIABLE&

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,073

Hi Megan

Use = instead of * (go to the F4 for the paragraph format and chooose the one for continuous line it's = only i think)

Pushpraj

5 REPLIES 5
Read only

Former Member
0 Likes
2,074

Hi Megan

Use = instead of * (go to the F4 for the paragraph format and chooose the one for continuous line it's = only i think)

Pushpraj

Read only

Former Member
0 Likes
2,073

= does the job. Thanks for that

The other problem I have is that when I do INCLUDE it does not start with indentation on the left

The text should start around 5 cm from the left margin. Is that possible?

Read only

0 Likes
2,073

Hi

You may put a tab (,,) in the stabdard text in SO10. Now this tab's indentation and alignment would depend on the paragraph format specified for that line. You could create your own paragraph format here (in the script). The paragraph formats are taken from the script associated with the std text. this may be changed from Format -> Change form, but careful about that as others may be using the same std text.

Pushpraj

Read only

0 Likes
2,072

Making changes to the text in SO10 is not feasible as super users will be maintaining it and they would need to be trained to do so.

In the script itself, I always thought that to add standard text /: should precede Include, is this not true? or can I add a paragragh format instead. If I can use a paragraph format, then I think I can resolve this issue.

Read only

0 Likes
2,072

ok then

Ya /: always for the standard texts.

try however, putting a tab in front of the INCLUDE statement and see if that works.

or couldn't you just copy the standard text to another and then go for the change there?

or maybe shift the window by 5 cm.

I'm off, 8:16 IST. hope you find a way.