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

SO_DOCUMENT_SEND_API1

Former Member
0 Likes
845

Hi,

I am attempting to have an email sent from SAP to MS Outlook. I have successfully done that. The issue is the customers want the MS Outlook Importance field (exlamation icon (HIGH) and down arrow (Low) to change based on the data being sent in the email.

I have successfully done this with the SO_NEW_DOCUMENT_SEND_API1 function; however, this function does not seem to allow for attachments. In this function I changed the PRIORITY field from 1 or 8 to allow the importance field in MS Outlook to change from low to high.

When I try this with the SO_DOCUMENT_SEND_API1 function it does not work! Any ideas on how I can get this feature to work. The user requirement really needs would like to have this feature.

Thanks in advance for any support you can provide.

Tom

5 REPLIES 5
Read only

Former Member
0 Likes
717

HI,

Goto Se37 and enter this Functionmodule and Press display, then Press the Function module documentation, then in the Documentationsearch for 'Priority', then you will get the answer

Regards

Sudheer

Read only

Former Member
0 Likes
717

Hi Tom,

Pls go thru the FM SO__NEW_DOCUMENT_SEND_API1 code.

U can use that under OBJ_PRIO.

If this flag is activated ('X'), documents can only be changed.

Regards Srimanta

Read only

0 Likes
717

Hi Tom,

For the Function Module SO_DOCUMENT_SEND_API1

Kindly fill

DOCUMENT_DATA LIKE SODOCCHGI1 .

Attributes of new document

field PRIORITY like SO_REC_PRI with value 1 . value 1 is for highest Priority.

FUNCTION SO_DOCUMENT_SEND_API1.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(DOCUMENT_DATA) LIKE SODOCCHGI1 STRUCTURE SODOCCHGI1

With regards,

Sureshkumar.AL

Read only

Former Member
0 Likes
717

Hi Tom,

declare a variable

PRIORITY like SO_REC_PRI .

  • fill the document data.

ls_document_data-priority = 1.

Read only

Former Member
0 Likes
717

hi TOm

can u give me the code for teh sending email notification to ms outlook addresses by sap

thanks in advance please provide me he code how to use this function module to do so?

u can mail me at nishantvaudev9@yahoo.com

Arora