SAP Function SO_DOCUMENT_RECEIVE_API1 - SAPoffice: Receiving external documents with attachments

Parameter Reference Type Length Default Optional Text
DOCUMENT_DATA SODOCCHGI1 u 152 Document attributes
RECEIVE_INFO SORECINFI1 u 3175 Information about document sender

Parameter Reference Type Length Text
COMMUNICATION_ID SORECINFI1-COMM_ID C 964 Send operation ID
NEW_OBJECT_ID SOFOLENTI1-OBJECT_ID C 17 ID of created object (not document!)
SENT_TO_ALL SONV-FLAG C 1 Flag: Document sent to all

Parameter Reference Length Optional Text
CONTENTS_BIN SOLISTI1 255 X Obsolete, see CONTENTS_HEX
CONTENTS_HEX SOLIX 255 X Binary contents of document and attachments
CONTENTS_TXT SOLISTI1 255 X ASCII contents of document and attachments
OBJECT_HEADER SOLISTI1 255 X Header data for document (spec.header)
OBJECT_PARA SOPARAI1 92 X SET/GET parameter for processing
OBJECT_PARB SOPARBI1 285 X Fields and values for processing
PACKING_LIST SOPCKLSTI1 143 Information about structure of data tables
RECEIVERS SOEXTRECI1 1291 Document recipient

Exception Text
DOCUMENT_TYPE_NOT_EXIST Document type or attachment type does not exist
ENQUEUE_ERROR Required locks could not be set
OBJECT_NOT_SENT Document was not sent
OPERATION_NO_AUTHORIZATION No authorization to send/create
PARAMETER_ERROR Invalid combination of parameter values
TOO_MANY_RECEIVERS Too many recipients, no authorization
X_ERROR Internal error or database inconsistency