‎2006 Jun 12 6:24 AM
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?
‎2006 Jun 12 6:25 AM
u do the changes on so10 directly it does not make any request for that u can do it directly devlopment or production server....
‎2006 Jun 12 6:28 AM
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
‎2006 Jun 12 6:36 AM
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.
‎2006 Jun 12 6:53 AM
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.
‎2006 Jun 12 6:57 AM
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....