on 03-30-2009 7:31 PM
Hi, i want to know if i have a program with print button, call a sapscript two times.
The first call for obtain the otf data and download to PC and the second call for show the print preview screen.
I tried to do the two activities at the same time.
itcpo-tdnoprev = ' '.
itcpo-TDGETOTF = 'X'.
CALL FUNCTION 'OPEN_FORM'
EXPORTING form = tnapr-fonam
language = ekko-spras
options = itcpo
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = RESULT
RDI_RESULT =
TABLES
OTFDATA = DATAB[]
But it didn´t work, i got the otf data, but no print preview screen; so i suppose to call the sapscript two times will resolve my problem.
Thanks
HI,
Use this FM DISPLAY_OTF to display the data instead of calling the script againg.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jos,
No need of calling the sapscript two times...What you have declared is correct
itcpo-tdnoprev = ' '.
itcpo-TDGETOTF = 'X'.
[Converting SAP Script outputs to PDF file|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556]
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.