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: 

SO_NEW_DOCUMENT_ATT_SEND_API1

Former Member
0 Kudos
110

Hi,,

i want to send an email to the sap user inbox of a user, for example

i want to send the tcurr table value for a date to the financial office employee.

And i want to know whether i can send this email to the sap user - sap inbox of

specified user via SO_NEW_DOCUMENT_ATT_SEND_API1?.

Thanks <removed by moderator>.

Edited by: Thomas Zloch on Aug 6, 2010 1:21 PM

1 ACCEPTED SOLUTION

SuhaSaha
Advisor
Advisor
0 Kudos
51

In the RECEIVERS table (structure SOMLRECI1) pass 'B' (SAP user) to the field REC_TYPE.

2 REPLIES 2

SuhaSaha
Advisor
Advisor
0 Kudos
52

In the RECEIVERS table (structure SOMLRECI1) pass 'B' (SAP user) to the field REC_TYPE.

former_member233090
Active Contributor
0 Kudos
51

Hi,

Yes you can send.


DATA: docdata TYPE sodocchgi1, 
objpack TYPE TABLE OF sopcklsti1,
objpack_line LIKE LINE OF objpack,
objhead TYPE TABLE OF solisti1,
objbin  TYPE TABLE OF solisti1,
reclist TYPE TABLE OF somlreci1
 
 
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data = docdata
      put_in_outbox = 'X'
      commit_work   = 'X'
    TABLES
      packing_list  = objpack
      object_header = objhead
      contents_bin  = objbin
      contents_txt  = objtxt
      receivers     = reclist.

Bhavana