on 12-24-2007 5:47 AM
Hello Experts,
This is a very urgent scenario.....I have a smart form which is to be printed.While this smart form is been given print command i have one more smartform which should get the same print command...so that both the smart forms are printed simultaneuously on different printers....
Please give me suggestion ASAP....
Thanks in Advance,
Kapil
Use this Following Procedure
Use function module SSF_FUNCTION_MODULE_NAME to retrieve the name of the function module generated from the Smart Form (see also: Integrating the Smart Form Into the Application).
Call the Smart Form for the first time and set the NO_CLOSE parameter of the control structure. This prevents the print request from being closed after accepting the output of the Smart Form and allows you to include all other form output into this print request as well. Leave the NO_OPEN parameter empty.
Instead of calling the Smart Form for the first time you can also call function module SSF_OPEN .
If you want to start a new spool request for the print request, set the TDNEWID field of the Output Options in this first call.
For all other form output of the application program that you want to include into the print request, use a loop to set both the NO_OPEN field and the NO_CLOSE field of the control structure.
To close the print request, in the call of the last Smart Form set the NO_OPEN parameter and unmark the NO_CLOSE parameter.
Instead of calling the Smart Form for the last time, you can also call function module SSF_CLOSE .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
DO you want to Auto print
i.e to print without the dailog screen.
it is the case with Dialog box as you are trying to enter the printer name for the second form but on different printer
u need to supress the dialog box using those structure check out the structure parameters i think u can fine these parameters in stucture
Regards
Devanand
Whether a new spool job is created in the spool depends on the settings in the spool dialog.
Whether a new print request starts depends on the standard parameters of the generated function module you set in SAP Smart Forms. For each print request, the spool dialog is called only once. If you suppress the dialog, you can pass parameters for spool processing only at the beginning of the print request.
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.