on 01-22-2010 6:33 AM
dear friends,
i having one report which should be display in pdf on execution with out display save option. i have smart from and converted it into pdf with out write code for save. but when i execute report it does not show any response. but as i write code for save the file it show the dialog box for saving file.
can anyone assist me for suppress the save option in dispaly pdf.
regards
sunil
splved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the FM which is used to print your Smartform, there will be an importing parameter job_output_info, in that there will be a OTFDATA structure. Assign that structure the below FM, it will directly disply PDF without saving.
Example.
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return " this structure has OTFDATA
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty
NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
i_otf[] = w_return-otfdata[].
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
EXPORTING
i_otf = w_return-otfdata
EXCEPTIONS
CONVERT_OTF_TO_PDF_ERROR = 1
CNTL_ERROR = 2
OTHERS = 3
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Bala Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You didn't give enough information about the context (frontend or application server? wat do you call?). Please tell us the function modules or methods you use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the driver program u wud written code for getting the path name to save the pdf right , instead of that remove that coding and better u can hard code the path for saving the pdf file in your required destination path. if u hav any queries reply back .
regards,
P.Gurunath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can skip the dialog option bu submit driver prgram with spool no and return it. It will not ask you to save.
Thanks ,
Abhijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
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.