cancel
Showing results for 
Search instead for 
Did you mean: 

2 tables on main window.

Former Member
0 Kudos

Hi All,

How can i display two tables side by side in the main window in SAP Scripts. is there any way to print...... ?

the requirement is i need to display 2 tables (Eg Itab1 and Itab2)in the main window side by side. itab1 contains material description and itab2 has some different information which is not related to itab1.

Thanks,

Chindam.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use two MAIN windows (00 & 01).

In the print program

  • MAIN 00 window

LOOP at itab1.

WRITE: / itab1.

ENDLOOP.

  • switch to MAIN 01 window

CALL FUNCTION 'WRITE_FORM'

EXPORTING

FUNCTION = 'NEW-WINDOW'.

LOOP at itab2.

WRITE: / itab2.

ENDLOOP.

The logic is a bit more complicated to handle when either table scrolls over to another page but this should give you the idea.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

try to use only one table.

search for any single link between two int tables .

even if not in the loop only write select statement for new data

( 2nd int table fields) and use modify itab syntax.

or i guess u can use multiple main windows in one page in scripts.

put two main windows side by side and use diff tables for each.

Regards

Former Member
0 Kudos

Hi Sravanthi,

Thanks for your immedieate response. can you please let me know how can i create 2 different windows and process of displaying the data into different windows.

i can't merge 2 internal tables data into 1 itab as each itab has heading which should be displayed in Bold and rest of the data should be in different font.

thanks.

Former Member
0 Kudos

Use different paragraph formats for the header and the items..

Former Member
0 Kudos

Hi chindam,

Yes, it is possible you can create 99 main windows in sapscript.

Create two main windows define the postion of the window and display the data

Regards,

sravanthi