on 01-10-2011 8:33 PM
Hi experts,
I have a requirement where I display the output of a program in popup in PDF format when user clicks on a button.
I am able to do that and output is shown properly in PDF format.
But now the problem is he wants PDF to be shown directly in 'Print Preview' mode.
Can you please suggest me how it can be done.
I am using 'get_Print_parameters' Function Module.
Is there any parameter which we need to set for this purpose.
Thanks in advance.
Regards
Vasu
Hi,
You can use following code --
DATA: LV_CONTROL_PARAMETERS TYPE SSFCTRLOP.
* Set relevant control parameters
LV_CONTROL_PARAMETERS-DEVICE = 'PRINTER'. "Printer Device
LV_CONTROL_PARAMETERS-GETOTF = L_X. "OTF output
LV_CONTROL_PARAMETERS-NO_DIALOG = ' '. "L_X. No print dialog
LV_CONTROL_PARAMETERS-PREVIEW = 'X'. " This would enable Preview SPACE is for No preview
* Set relevant output options LV_OUTPUT_OPTIONS-TDNEWID = L_X. "Print parameters,
LV_OUTPUT_OPTIONS-TDDELETE = ' '. "SPACE. Print parameters,
Check this, this worked in my case.
Thanks.
Kumar Saurav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Thanks for your reply.
But can you please explain me in detail where this set of code should be used i.e. calling which function module.
I am using 2 Function modules:
GET_PRINT_PARAMETERS
CONVERT_ABAPSPOOLJOB_2_PDF
I could not see field 'PREVIEW' in any structure of importing/exporting/tables parameters of these Function modules.
Regards
Vasu
solved it myself
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 | |
11 | |
10 | |
9 | |
9 | |
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.