SAP CRM_SL_DOC_MAP Function Module for BOP Ergebnis mappen
CRM_SL_DOC_MAP is a standard crm sl doc map SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BOP Ergebnis mappen 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 sl doc map FM, simply by entering the name CRM_SL_DOC_MAP into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM_BACKORDER
Program Name: SAPLCRM_BACKORDER
Main Program: SAPLCRM_BACKORDER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CRM_SL_DOC_MAP 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_SL_DOC_MAP'"BOP Ergebnis mappen.
EXPORTING
IV_ORDER_GUID = "GUID of a CRM Order Object
IV_REF_GUID = "GUID of a CRM Order Object
IV_SUBITEM_GUID = "GUID of a CRM Order Object
IS_SL_DOC = "Interface Structure for SD Documents (APO -> CRM) CIF
IS_SL_DOC_NEXT = "Interface Structure for SD Documents (APO -> CRM) CIF
IT_SL_DOC_X = "Checkbox Structure for SD Documents (APO <--> CRM) CIF
IT_SL_DOC_A = "Interface Structure for SD Documents (APO -> CRM) CIF
IT_SCHEDLIN = "CRM Einteilung: Tabellentyp für Arbeitstabelle - unsortiert
IMPORTING
ES_RESULT = "Individual result
ES_REQ_SCHEDLIN = "APO Scheduling Results for Request Schedule Lines
CHANGING
CS_CONFIRMATION = "Results of Backorder Processing
TABLES
IT_SL_DOC = "Interface Structure for SD Documents (APO -> CRM) CIF
EXCEPTIONS
PARENT_SDLN_NOT_FOUND = 1 PRODUCT_CONVERSION_ERROR = 2
IMPORTING Parameters details for CRM_SL_DOC_MAP
IV_ORDER_GUID - GUID of a CRM Order Object
Data type: CRMT_OBJECT_GUIDOptional: No
Call by Reference: Yes
IV_REF_GUID - GUID of a CRM Order Object
Data type: CRMT_OBJECT_GUIDOptional: No
Call by Reference: Yes
IV_SUBITEM_GUID - GUID of a CRM Order Object
Data type: CRMT_OBJECT_GUIDOptional: No
Call by Reference: Yes
IS_SL_DOC - Interface Structure for SD Documents (APO -> CRM) CIF
Data type: CRMT_BACKORDER_COMOptional: No
Call by Reference: Yes
IS_SL_DOC_NEXT - Interface Structure for SD Documents (APO -> CRM) CIF
Data type: CRMT_BACKORDER_COMOptional: No
Call by Reference: Yes
IT_SL_DOC_X - Checkbox Structure for SD Documents (APO <--> CRM) CIF
Data type: CRMT_BACKORDER_X_COMTOptional: No
Call by Reference: Yes
IT_SL_DOC_A - Interface Structure for SD Documents (APO -> CRM) CIF
Data type: CRMT_BACKORDER_A_COMTOptional: No
Call by Reference: Yes
IT_SCHEDLIN - CRM Einteilung: Tabellentyp für Arbeitstabelle - unsortiert
Data type: CRMT_SCHEDLIN_WRKT_UNSORTEDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CRM_SL_DOC_MAP
ES_RESULT - Individual result
Data type: CRMT_BACKORDER_RESULTOptional: No
Call by Reference: Yes
ES_REQ_SCHEDLIN - APO Scheduling Results for Request Schedule Lines
Data type: CRMT_REQ_SCHEDLIN_DATEOptional: No
Call by Reference: Yes
CHANGING Parameters details for CRM_SL_DOC_MAP
CS_CONFIRMATION - Results of Backorder Processing
Data type: CRMT_BACKORDER_RESOptional: No
Call by Reference: Yes
TABLES Parameters details for CRM_SL_DOC_MAP
IT_SL_DOC - Interface Structure for SD Documents (APO -> CRM) CIF
Data type: CRMT_BACKORDER_COMOptional: No
Call by Reference: Yes
EXCEPTIONS details
PARENT_SDLN_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
PRODUCT_CONVERSION_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CRM_SL_DOC_MAP 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: | ||||
| lv_es_result | TYPE CRMT_BACKORDER_RESULT, " | |||
| lt_it_sl_doc | TYPE STANDARD TABLE OF CRMT_BACKORDER_COM, " | |||
| lv_iv_order_guid | TYPE CRMT_OBJECT_GUID, " | |||
| lv_cs_confirmation | TYPE CRMT_BACKORDER_RES, " | |||
| lv_parent_sdln_not_found | TYPE CRMT_BACKORDER_RES, " | |||
| lv_iv_ref_guid | TYPE CRMT_OBJECT_GUID, " | |||
| lv_es_req_schedlin | TYPE CRMT_REQ_SCHEDLIN_DATE, " | |||
| lv_product_conversion_error | TYPE CRMT_REQ_SCHEDLIN_DATE, " | |||
| lv_iv_subitem_guid | TYPE CRMT_OBJECT_GUID, " | |||
| lv_is_sl_doc | TYPE CRMT_BACKORDER_COM, " | |||
| lv_is_sl_doc_next | TYPE CRMT_BACKORDER_COM, " | |||
| lv_it_sl_doc_x | TYPE CRMT_BACKORDER_X_COMT, " | |||
| lv_it_sl_doc_a | TYPE CRMT_BACKORDER_A_COMT, " | |||
| lv_it_schedlin | TYPE CRMT_SCHEDLIN_WRKT_UNSORTED. " |
|   CALL FUNCTION 'CRM_SL_DOC_MAP' "BOP Ergebnis mappen |
| EXPORTING | ||
| IV_ORDER_GUID | = lv_iv_order_guid | |
| IV_REF_GUID | = lv_iv_ref_guid | |
| IV_SUBITEM_GUID | = lv_iv_subitem_guid | |
| IS_SL_DOC | = lv_is_sl_doc | |
| IS_SL_DOC_NEXT | = lv_is_sl_doc_next | |
| IT_SL_DOC_X | = lv_it_sl_doc_x | |
| IT_SL_DOC_A | = lv_it_sl_doc_a | |
| IT_SCHEDLIN | = lv_it_schedlin | |
| IMPORTING | ||
| ES_RESULT | = lv_es_result | |
| ES_REQ_SCHEDLIN | = lv_es_req_schedlin | |
| CHANGING | ||
| CS_CONFIRMATION | = lv_cs_confirmation | |
| TABLES | ||
| IT_SL_DOC | = lt_it_sl_doc | |
| EXCEPTIONS | ||
| PARENT_SDLN_NOT_FOUND = 1 | ||
| PRODUCT_CONVERSION_ERROR = 2 | ||
| . " CRM_SL_DOC_MAP | ||
ABAP code using 7.40 inline data declarations to call FM CRM_SL_DOC_MAP
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