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

function SO_DOCUMENT_REPOSITORY_MANAGER

Former Member
0 Likes
485

i use the following function to send some files with email .

what is the field that tells me that i sent the files.

i ask this because there is the possibility to press the Cancel button and don't send the e-mail .

CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'

EXPORTING

METHOD = METHOD1

OFFICE_USER = G_OWNER

REF_DOCUMENT = G_REF_DOCUMENT

NEW_PARENT = G_NEW_PARENT

IMPORTING

AUTHORITY = G_AUTHORITY

TABLES

OBJCONT = G_OBJCNT

OBJHEAD = G_OBJHEAD

OBJPARA = G_OBJPARA

OBJPARB = G_OBJPARB

RECIPIENTS = G_RECEIPIENTS

ATTACHMENTS = G_ATTACHMENTS

REFERENCES = G_REFERENCES

FILES = G_FILES

CHANGING

DOCUMENT = G_DOCUMENT

HEADER_DATA = G_HEADER.

1 REPLY 1
Read only

Former Member
0 Likes
336

Hi,

G_DOCUMENT-OKCODE = 'CHNG' --> indicates the document is sent

G_DOCUMENT-OKCODE = 'ESC' --> indicates the document is not sent.

use this code after the function module.

Regards,

jeevitha