cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in getting SAP Script OTF DATA from CLOSE_FORM

Former Member
0 Kudos

Hi All,

I am using CLOSE_FORM to get OTF data of SAP Script output.

After all the write_form's i have written below code.

My code:

DATA: otftab TYPE TABLE OF itcoo.

CALL FUNCTION 'CLOSE_FORM'

TABLES

otfdata = otftab[].

Though close_form sy-subrc is 0 always otftab[] is not returning anything. It is always blank.

I am getting print preview correctly.

Can anybody tell me what is the issue!

Thanks,

Deep.

Accepted Solutions (1)

Accepted Solutions (1)

Pawan_Kesari
Active Contributor
0 Kudos

copied from FM Documentation

If 'X' was set in the parameter TDGETOTF in the transfer structure OPTIONS when the function module PRINT_TEXT or OPEN_FORM was called, the formatted output is returned in OTF format via the optional table parameter OTFDATA.

Former Member

...and if that still doesn't work: check the RDI flag for your form: SE71, form, header, attributes, miscellaneous. The box called "RDI Output Mode" must be unchecked.

Answers (0)