Application Development and Automation 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: 
Read only

Sending SAP SCRIPT to mail

Former Member
0 Likes
909

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 and anyother process need to be carried out.

Can some one advice.

Thanks in Advance.

Shiva Kumar

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 and anyother process need to be carried out.

Can some one advice.

Thanks in Advance.

Shiva Kumar

3 REPLIES 3
Read only

Former Member
0 Likes
508

try to check the where-used-list of that function module and check out the programs that had used this FM

you can get something from that..

Read only

Former Member
0 Likes
508

Hi shiva

Go to Tcode SCOT and release there....

Read only

Former Member
0 Likes
508

Hi,

Look at the below thread, it will give you the answers

Regards

Sudheer