on 07-14-2007 10:48 PM
Hi Experts,
I am writing a Sap SCRIPT print program for multiple number of customers with different layouts. But i am getting seperate spools for different customers. There fore i need to print out all customers in a single spool.
Can some one help me how to do this?
Thanks
Dany
Hi Dany,
To get a single spool request for multiple customers, Loop the customers inside the OPEN_FORM and CLOSE_FORM and give different form layout for each customer in START_FORM.
The Flow should be
Call Function 'OPEN_FORM'.
loop for different customers.
Call Function 'START_FORM'.
Call Function 'WRITE_FORM'.
Call Function 'END_FORM'.
Endloop.
Call FUnction 'CLOSE_FORM'.
This will create only one spool request for different customers.
Thanks.
Bye,
Rajesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to do like this, it may help to solve your issue.
Ex. FM
START_FORM
OPEN_FORM
WRITE_FORM
CLOSE_FORM
OPEN_FORM
WRITE_FORM
WRITE_FORM
CLOSE_FORM
ENDFORM.
Using the above there may be possibility of bring all under one spool.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OPEN_FORM and CLOSE_FORM function module are used to open and close spool. When you have single form to create document then we specify form_name in OPEN_FORM function module itself. However when we have multiple forms or same form needs to be called multiple times and all document needed in same spool then we use START_FORM and END_FORM to explicitly open and close form.
Call function module in this sequence
OPEN_FORM "without specifying any form name, this will open spool
START_FORM " with form name
END_FORM
START_FORM "with (some other) form name
END_FORM
..
..
CLOSE_FORM "close spool request
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I could not get the appropriate solution for your reply. But i think i can get more idea from you.
well let me tell you more clearly -
I am using open_form f& close form for every loop pass i.e for every customer who may or may call a different layout set. I am getting new spool for every new customer.
could you help me now?
Thanks
Dany
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.