Menu

SAP Function Module SO_NEW_DOCUMENT_SEND_API1

SAPoffice: Send new document

Technical Information

Function Module SO_NEW_DOCUMENT_SEND_API1
Short Text SAPoffice: Send new document
Function Group SOI1
Package SO
Module Type Remote-Enabled

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DOCUMENT_DATA TYPE SODOCCHGI1 Attributes of new document
DOCUMENT_TYPE TYPE SOODK-OBJTP 'RAW' Document type
PUT_IN_OUTBOX TYPE SONV-FLAG SPACE Flag: Move document to outbox after send
COMMIT_WORK TYPE SONV-FLAG SPACE An explicit commit work is to occur at end

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
SENT_TO_ALL TYPE SONV-FLAG Flag: Document sent to all
NEW_OBJECT_ID TYPE SOFOLENTI1-OBJECT_ID ID of created object (not document)

Changing Parameters

This function module does not define any CHANGING parameters.

Tables Parameters

These are the TABLES parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
OBJECT_HEADER TYPE SOLISTI1 Header data for document (spec.header)
OBJECT_CONTENT TYPE SOLISTI1 Document Content
CONTENTS_HEX TYPE SOLIX Document contents (binary)
OBJECT_PARA TYPE SOPARAI1 SET/GET parameter for processing
OBJECT_PARB TYPE SOPARBI1 Fields and values for processing
RECEIVERS TYPE SOMLRECI1 Document recipients with send attributes

Exceptions

These are the exceptions of this function module.

Exception Short Text
TOO_MANY_RECEIVERS Too many recipients, no authorization
DOCUMENT_NOT_SENT Document not sent to any recipients
DOCUMENT_TYPE_NOT_EXIST Unknown object type
OPERATION_NO_AUTHORIZATION No authorization to send/create
PARAMETER_ERROR Invalid combination of parameter values
X_ERROR Internal error or database inconsistency
ENQUEUE_ERROR Required locks could not be set