Hi,
I need to implement Purchase Order(PO) Sapscript with pages that can be inserted between other pages depending on condition.
Standard PO:
PAGE1 (next page:NEXT)
NEXT: (MAIN window is found in NEXT page to print PO items)
New Requirement:
Insert PAGE2 between PAGE1 and NEXT if EKKO-EKORG='0002'
PAGE2 contains only some texts for buyer and vendor information, No item data(no MAIN window).
**
I tried using NEW-PAGE but it only seems to trigger at the page where the MAIN window is found.
I also used Function Module CONTROL_FORM at the Print Program to trigger 'NEW-PAGE PAGE2', but the result is the same, it triggers only at the page where the MAIN window is found, which resulted to an extra blank page before NEXT page is printed.
I will need some logic to insert PAGE2 if EKKO-EKORG='0002', whether in print program or in SAPScript.
Output should be: PAGE1->PAGE2->NEXT, else, it remains PAGE1->NEXT
Any help would be appreciated.
Thank You.