Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding sap-script

Former Member
0 Likes
386

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....

3 REPLIES 3
Read only

Former Member
0 Likes
357

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

Read only

Former Member
0 Likes
357

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

Read only

Former Member
0 Likes
357

SOLVED