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

Former Member
0 Likes
377

I have 2 internal tables to display on main window.

First one till 5 lines and the next table 6 to 10 lines.

If the first internal table has only 2entries to display still i want to starart the second internal table display from line 6. in this case i have to reserve 5 lines for the first table display.

But if there are 2 lines in the first table, the second table disply is starting at line number 3.

HOw to print spaces on script or how to reserve lines. I need to print all this on same window (MAIN).

Please suggest

3 REPLIES 3
Read only

Former Member
0 Likes
338

Data num type i.

Data n type i.

i = 0.

Loop at itab1.

i = i + 1.

endloop.

n = 5 - i .

Do n times.

append itab1.

Clear itab1.

enddo.

regards

rajesh

Read only

Former Member
0 Likes
338

Hi,

In order to reserve lines create two main windows. First main window with height of 5 lines and then start with other main window. Now, if you have 2 records it will display that in the first main window and the second table will start only after line 5.

Try this..........

Read only

Former Member
0 Likes
338

Hi,

Split the Main Window.

To Split the Main Window.

Go to Page Windows > Edit> Main Window --> Fill the requirements of the windows.

The Main Window is slpit accordingly.

Display the 2 windows vertically one after the other.

Display one table in each Main Window.

Adarsh