on 02-22-2010 2:07 PM
Hi guys,
For sapscript, is there a way to know if the user presses the print or the print preview button? I need a way to determine if it is a print or print preview event triggering.
I've checked the OPEN_FORM fm but found nothing useful.
Please help. Thanks in advance.
I think in print preview OPTIONS-TDPREVIEW will be 'X'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course, it can't be OUTPUT-TDPREVIEW as it is a parameter you can only "export" to OPEN_FORM.
But you have a return parameter RESULT-TDPREVIEW. It works for me.
For more info: [SAP library - SAPscript - OPEN_FORM|http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/frameset.htm]
This is not supported by SAP, but well this is a possibility:
FIELD-SYMBOLS <ls_itcpp> TYPE itcpp.
ASSIGN ('(SAPLSTXC)ITCPP') TO <ls_itcpp>.
IF sy-subrc = 0.
* here you may use <ls_itcpp>-tdpreview
ENDIF.
Another way maybe is to declare the interface work area ITCPP (shared data in the same internal session):
TABLES ITCPP.
* here you may use itcpp-tdpreview
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.