‎2008 May 07 5:02 AM
hi gurus,
i am making one change in the script form for gate pass,
earlier it was for single gate pass number in the selection screen but now it will be for multiple gate pass number no doubt i have added a logic in my program here i have two tables one containing header data and another containing item data in both the tables the gate pass number is common,what i want that if i select multiple gatepass number
each gatepass number details along with their header and item
details must come on individual pages for this how will i put
open form ,write form etc please help me sort out this problem
what logic sud i put ....
i will reward suitable points for rt answer....
‎2008 May 07 5:09 AM
Hi,
Currently you must be looping at the header internal table. Then you muest be looping at item internal table pertaining to the record read from header internal table. Whenever you read a record from header internal table that means you are starting a new gate pass so just use
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
command = 'NEW-PAGE'.
Which will start prinitng from NEw page. Please note you need to avoid it for the first record from header internal table otherwise you will have a blank page for the first gate pass. This can be done by setting the flag.
I hope this helps,
Regards
Raju Chitale
‎2008 May 07 5:15 AM
Ravi,
You can make use of NEW PAGE stmnt to have a separated page for each gate pass and enclose elements for display (internal table fields) whithin the PROTECT ENDPROTECT construct in ur form design so that the details of one gate pass do not spill over the next page.
Jayadeep
‎2009 Aug 04 5:31 AM