Menu

SAP Function Module SO_DOC_INSERT_WITH_ORIG_API1

SAPoffice: Create new document with owner

The Function Module SO_DOC_INSERT_WITH_ORIG_API1 (SAPoffice: Create new document with owner) is a standard Function Module in SAP ERP and is part of the function group SOI1 within the package SO.

Technical Information

Function Module SO_DOC_INSERT_WITH_ORIG_API1
Short Text SAPoffice: Create new document with owner
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 LIKE SODOCCHGI2 Document attributes (general header)
DOCUMENT_TYPE LIKE SOODK-OBJTP Document Class
FOLDER_ID LIKE SOOBJINFI1-OBJECT_ID ID of folder in which document is to be created
ORIGINATOR LIKE SOEXTRECI1-RECEIVER Address of document owner
ORIGINATOR_TYPE LIKE SOEXTRECI1-ADR_TYP Type of address for document owner

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DOCUMENT_INFO LIKE SOFOLENTI1 Complete attributes of document

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

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

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
DOCUMENT_TYPE_NOT_EXIST Document type does not exist
ENQUEUE_ERROR Required locks could not be set
FOLDER_NOT_EXIST Specified folder does not exist
OPERATION_NO_AUTHORIZATION No authorization to create document
OWNER_NOT_EXIST Specified owner does not exist
PARAMETER_ERROR Invalid combination of parameter values
X_ERROR Internal error or database inconsistency