‎2009 Jul 28 8:23 AM
I have a print preview in my script, when i click PRINT I need pop up dialog box which normally comes up when we click on PRINT in print preview window. Which parameter do I need to set in the FM open_form for this.
‎2009 Jul 28 8:25 AM
Hi,
In import parameter OPTIONS, pass ITCPO-TDPREVIEW = 'X'
Thanks.
‎2009 Jul 28 8:29 AM
Hi Sharma,
Try this way.
Thanks
Venkat.OCALL FUNCTION 'OPEN_FORM'
EXPORTING
dialog = 'X'
-
-
- ...
‎2009 Jul 28 8:30 AM
‎2009 Jul 28 8:32 AM
‎2009 Jul 28 8:32 AM
no,,
I am already in the preview window...now when I select PRINT from here I need a POP UP ...which shows like number of pages etc...
‎2009 Jul 28 8:41 AM
Hi Sharma,
Have you checked the below one.
DATA:options TYPE itcpo.
options-tdpreview = 'X'. "Print preview
CALL FUNCTION 'OPEN_FORM'
EXPORTING
dialog = 'X'
form = 'ZTEST_FORM'
language = sy-langu
options = options
-
-
- ....
Thanks
Venkat.O
‎2009 Jul 28 8:54 AM
Hello
I think it is impossible to get print parameters from preview.
‎2009 Jul 28 8:34 AM
Hi ,
click on this link.this may be helpful to you.
[http://help.sap.com/saphelp_nw70/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/frameset.htm]
PLease let me know if you have any issues on this.
Thanks,
Rajeshwar.
‎2009 Jul 28 8:41 AM
‎2009 Jul 28 8:44 AM
‎2009 Jul 28 9:44 AM
hi Kushagra ,
i think if you set the importparameter 'MODE' to 'BATCH' it would work also in background.
Perhaps you also set 'NO_DIALOG' with 'X'.
or you can Try below FM -
L_HU_PRINT
L_PRINT_PARAM_FIND
L_PRINT_PARAM_FIND_40
L_PRINT_TO_LABELS
L_PRINT_TO_MULTIPLE
L_PRINT_TO_MULTIPLE_REF
L_PRINT_TO_POSTING_CHANGES
L_PRINT_TO_SINGLE
L_PRINT_TO_SU
Regards
Saurabh Goel