cancel
Showing results for 
Search instead for 
Did you mean: 

How to display main window twice in sap script with same data.

0 Kudos

Hi all,

I need to print the main window twice in the same page of sap script for the check print.

The issue is i have to print the data first then the check is printed and the same data has to be printed again.

Thank you in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Jelena
Active Contributor
0 Kudos

This question has been asked before - please search.

It is not possible to have two MAIN windows on the same form page. You can copy or rename it, but it won't change how it works. MAIN window is different from the others because it can "flow" over multiple pages. Data printed in the MAIN window continues over as many pages as needed, but if you try to put two pages of data into a non-main window, it'll only print as much as fits on one page.

There are some tricks involved in simulating second main window (such as creating copy of the internal table and additional loop), but it's always challenging since output format may be unpredictable and differ based on specific printer. So this is only possible with some assumptions (e.g. making sure strictly N lines are printed in the window).

If this is just an attempt to save some paper then it might not be worth it.

Answers (2)

Answers (2)

0 Kudos

Hi Vivek,

The window is already copied in page windows and as you are expecting the text element does not get trigerred. Hence the changes are not reflected in Main01 and the requirement needs to be met in SAP Scripts. Please find the attachment for more understanding of the requirement.

Thanks,

Rajkamal

former_member189849
Contributor
0 Kudos

Copy the same window name (with same fields and etc.. info ) and do align right place or expected(requirement) place.

Regards

Mahesh