The Function Module SO_ATTACHMENT_INSERT_API1 (SAPoffice: Create attachment using RFC) is a standard Function Module in SAP ERP and is part of the function group SOI1 within the package SO.
Function Module | SO_ATTACHMENT_INSERT_API1 |
Short Text | SAPoffice: Create attachment using RFC |
Function Group | SOI1 |
Package | SO |
Module Type | Remote-Enabled |
These are the IMPORTING parameters of this function module.
Parameter Name | Type | Associated Type | Default Value | Short Text |
---|---|---|---|---|
ATTACHMENT_DATA | LIKE | SOATTCHGI1 | Attributes of New Attachment | |
ATTACHMENT_TYPE | LIKE | SOODK-OBJTP | Document Class for Attachment | |
DOCUMENT_ID | LIKE | SOFOLENTI1-DOC_ID | ID of Document for Which Attachment Is to Be Created |
These are the EXPORTING parameters of this function module.
Parameter Name | Type | Associated Type | Default Value | Short Text |
---|---|---|---|---|
ATTACHMENT_INFO | LIKE | SOATTINFI1 | Complete Attributes After Creation |
This function module does not define any CHANGING parameters.
These are the TABLE parameters of this function module.
Parameter Name | Type | Associated Type | Default Value | Short Text |
---|---|---|---|---|
ATTACHMENT_CONTENT | LIKE | SOLISTI1 | Attachment Contents | |
ATTACHMENT_HEADER | LIKE | SOLISTI1 | Header Data for Attachment (Spec.Header) | |
CONTENTS_HEX | LIKE | SOLIX | Attachment Contents (Binary) |
These are the Exceptions of this function module.
Exception Name | Short Text |
---|---|
ATTACHMENT_TYPE_NOT_EXIST | Document Type for Attachment Does Not Exist |
DOCUMENT_NOT_EXIST | Specified Document Does Not Exist |
ENQUEUE_ERROR | Required Locks Could Not Be Set |
OPERATION_NO_AUTHORIZATION | No Authorization to Create Attachment |
PARAMETER_ERROR | Invalid Combination of Parameter Values |
X_ERROR | Internal Error or Database Inconsistency |