cancel
Showing results for 
Search instead for 
Did you mean: 

Question about Sapscript

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Use this FM DISPLAY_OTF to display the data instead of calling the script againg.

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

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