on 10-29-2008 5:57 AM
hello,
i have created a smart form when i run that form it gives a pop up for print and print preview i want to supess that window and it should give
print preview when i run the smartform.
please help me how to do that.
thank you.
Hi
In the Fm generated when smartform is activated, there is a structure called Control_Parameters....
Here there are fields: NO_DIALOG = 'X'.
PREVIEW = ' '.
Pass those above values into these fields...by declaring a structure same as SSFCTRLOP and passing those values to the structure u declared.
This structure should be given to control_parameters in the FM.
Regards,
Vishwa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You have to do this in the program:
data: it_ctrl type SSFCTRLOP.
move 'X' to it_ctrl-NO_DIALOG,
move ' ' to it_ctrl-PREVIEW.
call function lf_formname "smartform generated FM
control_parameters = it_ctrl.
PS: The above code to give you an idea...need to make some changes.. :)
Regards,
VIshwa.
Edited by: Vishwa Sri Hari on Oct 29, 2008 11:55 AM
Edited by: Vishwa Sri Hari on Oct 29, 2008 11:57 AM
Hi gayatri,
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
control-no_dialog = 'X'.
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
c_par-no_dialog = 'X'.
CALL FUNCTION fm_name
EXPORTING
control_parameters = c_par
output_options = out_opt
user_settings = space
vbeln = it_vbeln-vbeln
pdf = r2
rbiclear = c3
IMPORTING
job_output_options = job_out
einv = einv.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.