SAP CRM_GAP_TBOX_ATTACH_DOCS Function Module for Attach document to service order of type 'BUS2000270'









CRM_GAP_TBOX_ATTACH_DOCS is a standard crm gap tbox attach docs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Attach document to service order of type 'BUS2000270' processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for crm gap tbox attach docs FM, simply by entering the name CRM_GAP_TBOX_ATTACH_DOCS into the relevant SAP transaction such as SE37 or SE38.

Function Group: CRM_GRM_WEBREQ_UTIL
Program Name: SAPLCRM_GRM_WEBREQ_UTIL
Main Program: SAPLCRM_GRM_WEBREQ_UTIL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CRM_GAP_TBOX_ATTACH_DOCS pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CRM_GAP_TBOX_ATTACH_DOCS'"Attach document to service order of type 'BUS2000270'
EXPORTING
* IV_OBJECT_ID = "Transaction ID
* IV_OBJECT_GUID = "GUID of a CRM Order Object
IV_OBJECT_TYPE = "Structure for Object ID
IV_FILE_NAME = "
IV_CONTENT = "
IV_MIMETYPE = "
IV_LENGTH = "

IMPORTING
ES_KW_ERROR = "KW Framework: Error Object

TABLES
* ET_DATA = "
.



IMPORTING Parameters details for CRM_GAP_TBOX_ATTACH_DOCS

IV_OBJECT_ID - Transaction ID

Data type: CRMT_OBJECT_ID
Optional: Yes
Call by Reference: Yes

IV_OBJECT_GUID - GUID of a CRM Order Object

Data type: CRMT_OBJECT_GUID
Optional: Yes
Call by Reference: Yes

IV_OBJECT_TYPE - Structure for Object ID

Data type: SWOTOBJID
Optional: No
Call by Reference: Yes

IV_FILE_NAME -

Data type: STRING
Optional: No
Call by Reference: Yes

IV_CONTENT -

Data type: XSTRING
Optional: No
Call by Reference: Yes

IV_MIMETYPE -

Data type: STRING
Optional: No
Call by Reference: Yes

IV_LENGTH -

Data type: STRING
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for CRM_GAP_TBOX_ATTACH_DOCS

ES_KW_ERROR - KW Framework: Error Object

Data type: SKWF_ERROR
Optional: No
Call by Reference: Yes

TABLES Parameters details for CRM_GAP_TBOX_ATTACH_DOCS

ET_DATA -

Data type:
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for CRM_GAP_TBOX_ATTACH_DOCS Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_et_data  TYPE STANDARD TABLE OF STRING, "   
lv_es_kw_error  TYPE SKWF_ERROR, "   
lv_iv_object_id  TYPE CRMT_OBJECT_ID, "   
lv_iv_object_guid  TYPE CRMT_OBJECT_GUID, "   
lv_iv_object_type  TYPE SWOTOBJID, "   
lv_iv_file_name  TYPE STRING, "   
lv_iv_content  TYPE XSTRING, "   
lv_iv_mimetype  TYPE STRING, "   
lv_iv_length  TYPE STRING. "   

  CALL FUNCTION 'CRM_GAP_TBOX_ATTACH_DOCS'  "Attach document to service order of type 'BUS2000270'
    EXPORTING
         IV_OBJECT_ID = lv_iv_object_id
         IV_OBJECT_GUID = lv_iv_object_guid
         IV_OBJECT_TYPE = lv_iv_object_type
         IV_FILE_NAME = lv_iv_file_name
         IV_CONTENT = lv_iv_content
         IV_MIMETYPE = lv_iv_mimetype
         IV_LENGTH = lv_iv_length
    IMPORTING
         ES_KW_ERROR = lv_es_kw_error
    TABLES
         ET_DATA = lt_et_data
. " CRM_GAP_TBOX_ATTACH_DOCS




ABAP code using 7.40 inline data declarations to call FM CRM_GAP_TBOX_ATTACH_DOCS

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!