cancel
Showing results for 
Search instead for 
Did you mean: 

Display vertical data from INCLUDE?

Former Member
0 Kudos

Hi all,

In sapscript, I understand that if I want to extract the data from standard text, I can do like this: -


INCLUDE ZXX_SAMPLE_TEXT OBJECT TEXT ID ST LANGUAGE EN

This will display the standard text ZXX_SAMPLE_TEXT


standard text 1

What if I need to display few standard texts in vertical line or in row?


standard text 1         another standard text 2        another standard text 3

Can I use INCLUDE?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

At this time you can call the standard text using READ_TEXT in Driver program and transfer the text into string type variables then you can display as you like in script.

Former Member
0 Kudos

Hi Venkat,

Thanks for the reply.

I have tried in READ_TEXT.

But my requirement had changed to


standard          standard          standard text 3
text              text 2
1          

Can I do it in READ_TEXT?

The standard text lines are dynamic. If this is the case, how should the program assigns the variables to sapscript?

Answers (3)

Answers (3)

Former Member
0 Kudos

well, this is quite a tricky thing to achieve.

normaly text cannot be written next to each others but just under each others.

Why is this?

Texts are defined with a width of maximim 132 characters. So how do you want to print 3 texts next to each others (max width then 396 characters on a sheet of paper which makes 80 characters per line.

So if each of your texts has a width of max 25 characters, this can work, like proposed somewhere above.

you could as well read all your three texts in driver program, and make a new 4th text out of them, and printing this text then.

but if you happen to have dynamic texts which you dont know of how wide they are, i wouldnt propose to go for your desired solution.

Or you need a real good scenario of "what should happen when".

Former Member
0 Kudos

Hi,

If the content is a static text then please follow as in my earlier reply.

Otherwise if the contents are in variables then use offsets and put it in script line by line.

Regards,

Ram

Edited by: Ramakrishna Peri on May 28, 2009 12:42 PM

Former Member
0 Kudos

Hi,

Why not combine the contents of the three standard texts in a single standard text and use it in the script.

You can align the texts as desired inside that single standard text.

Regards,

Ram

Former Member
0 Kudos

Hi,

This is what I am asking for.

How can I assign the 3 values like this into one variable.


standard 
text
1

And thne align into one line


standard          standard         standard text 3
text              text 2
1