2009 May 12 10:21 PM
I am using the function module 'SO_DOCUMENT_REPOSITORY_MANAGER' to upload different file types and then attach them to an email. THe below code is used to send the mail with the attachement, but it invokes a popup that allows you to enter the email address, and then press send. My question is can the email address be passed in so this popup box doesn't appear, and if so how? Basically I want to pass in the email address and have the mail triggered in the background.
METHOD1 = 'SEND'.
MOVE: G_DOCUMENT-OBJTP TO G_REC_DATA-NOTTP,
G_DOCUMENT-OBJYR TO G_REC_DATA-NOTYR,
G_DOCUMENT-OBJNO TO G_REC_DATA-NOTNO,
'test' TO G_REC_DATA-SNDADR.
G_HEADER-OBJSND = 'X'.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
METHOD = METHOD1
OFFICE_USER = G_OWNER
NEW_PARENT = G_NEW_PARENT
IMPORTING
AUTHORITY = G_AUTHORITY
TABLES
RECIPIENTS = G_RECIPIENTS
ATTACHMENTS = G_ATTACHMENTS
REFERENCES = G_REFERENCES
CHANGING
DOCUMENT = G_DOCUMENT
HEADER_DATA = G_HEADER
RECEIVE_DATA = G_REC_DATA.
I am using the function module 'SO_DOCUMENT_REPOSITORY_MANAGER' to upload different file types and then attach them to an email. THe below code is used to send the mail with the attachement, but it invokes a popup that allows you to enter the email address, and then press send. My question is can the email address be passed in so this popup box doesn't appear, and if so how? Basically I want to pass in the email address and have the mail triggered in the background.
METHOD1 = 'SEND'.
MOVE: G_DOCUMENT-OBJTP TO G_REC_DATA-NOTTP,
G_DOCUMENT-OBJYR TO G_REC_DATA-NOTYR,
G_DOCUMENT-OBJNO TO G_REC_DATA-NOTNO,
'test' TO G_REC_DATA-SNDADR.
G_HEADER-OBJSND = 'X'.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
METHOD = METHOD1
OFFICE_USER = G_OWNER
NEW_PARENT = G_NEW_PARENT
IMPORTING
AUTHORITY = G_AUTHORITY
TABLES
RECIPIENTS = G_RECIPIENTS
ATTACHMENTS = G_ATTACHMENTS
REFERENCES = G_REFERENCES
CHANGING
DOCUMENT = G_DOCUMENT
HEADER_DATA = G_HEADER
RECEIVE_DATA = G_REC_DATA.
2009 Oct 21 4:12 PM
Try FM SO_OBJECT_SEND with folder_id and object_id from structure document of FM SO_DOCUMENT_REPOSITORY_MANAGER.
Regards, Léon Hoeneveld
2013 Feb 19 5:44 AM
dear
leon hoeneveld
can u pls make it clear coz am beginner in abap so i cant understand what u r saing pls??
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |