Skip to Content
avatar image
Former Member

Multiple lines in VAR window in scripts

Hi All,

My requirement is as follows

there are three windows in my output, The window1 wherein the single variable is printed.

My second window is the main window wherein the below details are printed

  Date              Amount
  12.01.2010         22.20 
  22.01.2010        121.00 
  31.01.2010         52.20 

In the third window i want the exact contents of the main window to be re-printed jus below the main window.

WINDOW3

  Date              Amount
  12.01.2010         22.20 
  22.01.2010        121.00 
  31.01.2010         52.20 

All three contents are to be printed in a single sheet of paper only, i.e there is no second page

I tried looping the main window internal table and write_form the window 3 as

  loop at itab into wa_itab
   CALL FUNCTION 'WRITE_FORM'
                EXPORTING
*                  function = 'APPEND'
                  window   = 'WINDOW3''
                  element  = '545'.
            ENDLOOP. 

The problem is if i dont put append function only the last record is getting printed once, if i put APPEND only the last record is getting printed repeatedly as many times as there are records in my itab.

Kindly guide me to achieve the same. I am really stuck with this issue 😔

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 23, 2010 at 07:12 AM

    try without using 'APPEND' function.

    Add comment
    10|10000 characters needed characters exceeded