Skip to Content
0
Nov 02, 2012 at 07:20 AM

OTFDATA is not populated in script

62 Views

Hi,

My requirement is that the script o/p is send as a mail. Now my problem is that the OTFDATA is not populated. The code is given below.

CALL FUNCTION 'OPEN_FORM'
EXPORTING
* APPLICATION = 'TX'
archive_index = toa_dara
archive_params = arc_params
device = lvf_device
dialog = ' '
form = tnapr-fonam
language = nast-spras
options = lvs_itcpo
mail_sender = lvs_sender
mail_recipient = lvs_recipient
* MAIL_APPL_OBJECT = ' '
* RAW_DATA_INTERFACE = '*'
* IMPORTING
* LANGUAGE =
* NEW_ARCHIVE_PARAMS =
* RESULT =
EXCEPTIONS
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
mail_options = 6
archive_error = 7
OTHERS = 8.

***********************************************************************
* FORM CLOSE_FORM *
***********************************************************************
FORM close_form.
CALL FUNCTION 'CLOSE_FORM'
TABLES
otfdata = gt_otfdata[]
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
PERFORM protocol_update.
ENDIF.
SET COUNTRY space.
ENDFORM. "CLOSE_FORM

Regards,

Vallamuthu Madheswaran