Skip to Content
avatar image
Former Member

Outputting main window content twice on the same page

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 11, 2008 at 08:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 02, 2008 at 02:07 PM

    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&

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 03, 2008 at 05:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 03, 2008 at 05:30 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 10, 2008 at 04:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Dec 11, 2008 at 06:41 AM

    Hi Jens,

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

    might then it will be ok.

    regards,

    Lokesh

    Add comment
    10|10000 characters needed characters exceeded