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

SAP SCRIPT:Standard Text

Former Member
0 Likes
521

Hi.

I have a standard text with 10 lines created in SO10.

If I want to display only 4 lines in script , how can I do that? Is there any way to do this?

5 REPLIES 5
Read only

Former Member
0 Likes
487

u do the changes on so10 directly it does not make any request for that u can do it directly devlopment or production server....

Read only

Former Member
0 Likes
487

Hi,

1).Provide the window size such that it can accomodate only 4 lines of data.

2). Write only 4 lines using code from the print program. You can split the data inthe internal table and then directly called WRITE_FORM_LINES and pass the internal table with 4 lines to print that on the sapscript.

Cheers

VJ

Read only

Former Member
0 Likes
487

Two ways I see.

Read data using READ_TEXT in the print program to an internal table and pass only 4 lines to sapscript.

Again get the value in table and use WRITE_FORM_LINES to restrict lines.

Cheers,

Thomas.

Read only

Former Member
0 Likes
487

Hi,

u can use FM 'READ_TEXT' in ur print program n get the text in an internal table, say itab.

then ,

do 4 times.

read table itab index sy-tabix.

clear g_text.

g_text = itab-tdline.

call function 'write_form'

exporting

element = 'TEXT'.

enddo.

Read only

Former Member
0 Likes
487

hi!!!

there is one more option....

read ur std text...

create 4 variables of type lilne...

populate them with the text...

up to the req length..its line in ur case ...

then call these to print in ur form....

hope this will work..

thanx....