on 12-28-2010 5:31 AM
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.
Another way would be to dynamically point PAGE1 either to NEXT or PAGE2(whose nextpage is NEXT).
Example:
PAGE1->dynamically point to:
->NEXT->NEXT
OR
->PAGE2->NEXT->NEXT (IF EKKO-EKORG='0002')
But still I have no clue where and how to implement this logic. Please suggest if you have any ideas.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jill.
The MAIN window, which prints the Bill of material, has many vertical lines in it that aligns the different fields (eg. Qty, amount, etc). And these lines will just get in the way if we include the Vendor Agreement (which is 8 pages long of texts) in the MAIN window. What Im trying to do now is just to create a copy of the SAPScript and on the new copy, I inserted the vendor agreement texts. Then in the print program, I just added a condition to select the appropriate form.
Hi,
Kindly go through these links hope they will be helpful.
<<irrelevant link-farm removed by moderator>>
Edited by: kishan P on Dec 28, 2010 2:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks vikash.
I have gone through these threads, but unfortunately I cannot relate these to my requirement.
Two of these are just putting condtions in the Page and the other triggering the last page using the MAIN window.
What I need is to insert a new page in between 2 existing pages already in sequence(PAGE1->NEXT), with no MAIN window to use for the NEW-PAGE command.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.