cancel
Showing results for 
Search instead for 
Did you mean: 

Outputting main window content twice on the same page

jensbilgrav
Explorer
0 Kudos

Can anyone help me with this scenario?

A page is equally divided into 3 horizontal parts. The center one

is the cheque. The above window is a variable window and below

one is the main window. Both these windows should contain the

same invoice data of the cheque. The above one is considered as

receipt and is given to the vendor.

Now the problem is multiple line items are visible on the main window with their

corresponding amounts but the same content when copied onto the

variable window is not populating and only the last entry is

visible. I have to have all the line items populated on above

window also in the same way as it appears on main window.

I have modified the print program so that every time WRITE_FORM writes to the main window, it also writes to the variable window which is an exact copy of the main one.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

In main window only we can use the looping statement. in variable windows we cannot use the loop statement acutually if u use the looping statement also it wont work.

regards

Sathis

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Jens,

i think instead of passing window you pass text element in WRITE_FORM.

might then it will be ok.

regards,

Lokesh

Former Member
0 Kudos

Hi Jens,

Did you find the solution for this issue you had of having multiple main window in the same page as I also have the same requirement,Could you please elaborate things if you have solved this issue.

Thanks

Sudharshan

jensbilgrav
Explorer
0 Kudos

Hi Sudharshan,

I basically found out that - believe it or not - what I wanted to do is not possible in SAP ECC.

So the customer just had to make do with what was possible.

Best regards,

Jens

Former Member
0 Kudos

Hi,

Create two variable windows to print the invoice data where u want and create the main window some whare else in that

write only NEW_PAGE command and call these three windows in the same loop.

Regards,

Jagadeesh.

Former Member
0 Kudos

Hi

In variable window the data gets over written and the last record will be displayed the continous in the main window.

In that case take two main window in the same page and print the data accordingly.

Regards,

Sravanthi

Former Member
0 Kudos

Only the MAIN window scrolls. When you write to the other windows you are just over-writing the same line again and again. To write the data to the above window you would need to assign each line to it's own variable and write each line to the above window.

i.e.

Program

READ TABLE itab INDEX 1 into LINE1.

READ TABLE itab INDEX 2 into LINE2.

READ TABLE itab INDEX 3 into LINE3.

SAPSCRIPT window ABOVE

AS &LINE1&

AS &LINE2&

AS &LINE3&