Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

OPEN_FORM Exception

mayur_priyan
Active Participant
0 Kudos
399

HI Gurus,

We have defined an output type of "External send" which should
automatically send My Script as a as a mail.
But I am getting MAIL_OPTIONS Exception while using 'OPEN_FORM' .
Please help me how to remove that error.

2 REPLIES 2

Former Member
0 Kudos
93

Are you not passing MAIL_SENDER and  MAIL_RECIPIENT?

Thanks,
Shambu

0 Kudos
93

Hi Shambu ,
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.

I am passing both MAIL_SENDER and MAIL_RECIPIENT,