Skip to Content
avatar image
Former Member

Print Values after last item in main window

Hi all,

I have a requiremnt in which i have multiple line items in main window. I want to print one value after the last item. right now i am using BOTTOM AND ENDBOTTOM. but it is showing that value in every page.. I want tp print that value after the last item not on every page.

Thanks in advance.

Regards

Sachin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 25, 2010 at 01:07 PM

    Hi Sachin,

    If u are using a print program, then use AT LAST statement in the loop and inside it print that value.

    In print program,I think u must be looping through the line items and printing it. Inside it use AT LAST statement for printing that value after printing all the line items.

    Ex code:

    LOOP AT g_t_items.  " Internal table with line items to be printed
      CALL FUNCTION 'WRITE_FORM'   " Printing Line items
        EXPORTING
          element = 'ITEM_LINE'  " ITEM_LINE  is text element in script
          window        = 'MAIN'.
    
    * printing the required after the last record.
        AT LAST.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          element = 'LAST'          " LAST is text element in script. In script print that value under this text element.  /E  LAST
          window  = 'MAIN'.
        ENDAT.
    
    ENDLOOP.
    

    Thanks,

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 29, 2010 at 12:13 PM

    Hi,

    If you want to add a static text after the main window contents, add a text element after the table in the main window. This will

    print the text after the last item in the table.

    Regards,

    Sagar

    Add comment
    10|10000 characters needed characters exceeded