Skip to Content
0
Former Member
Oct 13, 2006 at 10:24 AM

Parameters to be passed to FM in SAP Script for mailing the script

19 Views

Hi All,

we have a requirement where we need to mail(with in sap id and outside sap-yahoo/gmail) the sap script so that i am able to do straightaway by giving device as 'mail'. please check code below.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

application = 'TX'

  • ARCHIVE_INDEX =

  • ARCHIVE_PARAMS =

device = 'MAIL'

dialog = ' '

form = 'ZTEST54698'

language = sy-langu

options = x_option

  • MAIL_SENDER =

  • MAIL_RECIPIENT =

  • MAIL_APPL_OBJECT =

  • RAW_DATA_INTERFACE = '*'

IMPORTING

language = sy-langu

  • NEW_ARCHIVE_PARAMS =

  • RESULT =

EXCEPTIONS

  • CANCELED = 1

  • DEVICE = 2

  • FORM = 3

  • OPTIONS = 4

  • UNCLOSED = 5

  • MAIL_OPTIONS = 6

  • ARCHIVE_ERROR = 7

  • INVALID_FAX_NUMBER = 8

  • MORE_PARAMS_NEEDED_IN_BATCH = 9

  • SPOOL_ERROR = 10

  • CODEPAGE = 11

OTHERS = 1

please let me know what are the parameters that need to be passed to this function module( MAIL_SENDER = ?

  • MAIL_RECIPIENT = ? MAIL_APPL_OBJECT =?)

Can some one advice.

Thanks in Advance.

Shiva Kumar