cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding item header printing in the script

Former Member
0 Kudos

HI,

i am working on Goods issue script. In my script there 2 pages. For printing the header for items i have taken a new window from the second page onwards.The item header is printing in all the pages from the second pages onwards. But if there is no item data in the lsat page then also its printing the header. How to supress the header if there is no data.

kishore

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi!

This can be solved in your printer program.


LOOP AT gt_main INTO wa_main.
  CALL FUNCTION 'WRITE_FORM'
    EXPORTING 
      window = 'MAIN'
      element = 'ITEM_HEADER'
      type = 'TOP'   "print the header of the items here
  CALL FUNCTION 'WRITE_FORM'
    EXPORTING 
      window = 'MAIN'
      element = 'ITEM_DATA'
      type = 'BODY'   "print the item data

ENDLOOP.

Regards

Tamá

Answers (0)