on 09-20-2007 2:26 PM
Hi,
I have a requiremnt to print the form for multiple customers. How should i use the sap script function modules? i.e. in which sequence?
for example customer A has 5 pages. customer B has 4 pages.
after printing 5 pages of the customer A, it should print 4 pages of the customer B.
regards,
CK
To print accroding to your requirment you should modify your driver program like this...
Sort <Internal table by KUNNR.
LOOP AT <internal table>
AT NEW KUNNR. "Customer..
**Call Function module OPEN_FORM
END AT.
AT END OF KUNNR.
***Call function CLOSE_FORM
ENDAT.
***Call all your Write_FORM
ENDLOOP.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this
control-no_dialog = 'X'.
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
call function 'SSF_OPEN'
exporting
control_parameters = control.
call function fm_name
exporting
control_parameters = control
customer = customer
bookings = bookings
connections = connections.
call function 'SSF_CLOSE'
Regards,
Sairam
User | Count |
---|---|
95 | |
11 | |
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.