on 07-31-2009 6:30 AM
Hi Experts,
I have the following requirement while printing the smartforms.
1. The print preview should not be visible.
2. The print dialog box should be supressed, and it should print the forms immediately.
What should be the control and output parameters for the FM SSF_OPEN for this?
Thanks.
Warm regards,
Harshad.
DATA : z_control TYPE ssfctrlop, " here define two structures (ctrl and options)
z_options TYPE ssfcompop. " like ssfctrlop and ssfcompop.
MOVE 'X' TO : Z_control-no_dialog, " these are the status of variables
Z_options-tdnewid, " of 'output options' and 'control parameters' structures
z_control-PREVIEW. " that have to be set before passing to the form.
"
"
MOVE 'LP01' TO Z_options-tddest. "
MOVE space TO Z_options-tdimmed. "
MOVE 'PRINTER' TO Z_control-device. "
call function 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = <form name>
IMPORTING
fm_name = fname.
CALL FUNCTION FNAME
EXPORTING
CONTROL_PARAMETERS = z_control " here the structures are passed
OUTPUT_OPTIONS = z_options " into the form in stmt 'exporting' so that
USER_SETTINGS = '' " print options are not popped up b4 disp of smartform.
TABLES
IT_EKKO = TAB_EKKO
IT_EKPO = TAB_EKPO
IT_LFA1 = TAB_LFA1.
Regards,
Sumit Nene.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Set the following value for the control parameters while open the form.
SSFCTRLOP-PREVIEW = ' '
SSFCTRLOP-NO_DIALOG = 'X'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello.
U can mark the No_dialog = 'X'.
Then u wont get the dialog box.
Tnx,
Joe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.