cancel
Showing results for 
Search instead for 
Did you mean: 

Print Values after last item in main window

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member628395
Active Participant
0 Kudos

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

awin_prabhu
Active Contributor
0 Kudos

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,