‎2007 Jun 05 11:15 AM
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.
‎2009 Jul 28 1:30 PM
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