SAP EXIT_SAPLCODM_001 Function Module for User Exit: Generate Document Links from Master Data









EXIT_SAPLCODM_001 is a standard exit saplcodm 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User Exit: Generate Document Links from Master Data 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 exit saplcodm 001 FM, simply by entering the name EXIT_SAPLCODM_001 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLCODM_001 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 'EXIT_SAPLCODM_001'"User Exit: Generate Document Links from Master Data
EXPORTING
I_AUFNR = "Order Number
I_DATE = "Explosion Date
I_MATNR = "Material Number
I_WERKS = "Production Plant
I_CUOBJ = "Configuration
I_VERID = "Production Version
I_MASTER_TYPE = "Master Data Category
IS_DOCLINK = "Document link

IMPORTING
E_FLAG_OK = "Check Flag
E_CI_AFDLD = "Additional Attributes Document Link
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
CO_DM_AFDLD_ADD Verknüpfung hinzufügen (Belegtabelle)
CO_DM_AFDLD_COPY Verknüpfung aktualisieren (Belegtabelle)
CO_DM_AFDLD_DEL Verknüpfung löschen (Belegtabelle)
CO_DM_AFDLD_DEL_LOGKEY Verknüpfung löschen (Belegtabelle)
CO_DM_AFDLD_DEL_PHYSKEY Verknüpfung löschen (Belegtabelle)
CO_DM_AFDLD_MOVE Verknüpfungen verschieben (Belegtabelle)
CO_DM_AFDLD_READ_KEY Verknüpfung(en) lesen (Belegtabelle)
CO_DM_AFDLD_UPD Verknüpfung aktualisieren (Belegtabelle)
CO_DM_BOM_GET_DOC_LINKS Dokumentverknüpfungen aus Stückliste ermitteln
CO_DM_DOCUMENT_EXISTS Dokument Existenzprüfung
CO_DM_DOC_LINKS_CUST_GET Customizing Dokumentverknüpfungen auswerten
CO_DM_DOC_LINKS_ORDER_COPY Übernehmen Dokumentverknüpfungen beim Anlegen Auftrag mit Vorlage
CO_DM_DOC_LINKS_ORDER_DEL Löschen von Dokumentverknüpfungen eines Fertigungsauftrages
CO_DM_DOC_LINKS_POST Dokumentverknüpfungen ins DVS schreiben
CO_DM_DOC_LINKS_REFRESH Belegtabelle für Dokumentverknüpfungen zurücksetzen
CO_DM_DOC_LINKS_SET_DEL_FLAG Dokumentverknüpfungen Löschvormerkung setzen
CO_DM_DOC_LINKS_UNSET_DEL_FLAG Dokumentverknüpfungen Löschvormerkung zurücksetzen
CO_DM_DOC_LINKS_UPD_CHECK Dokumentverknüpfungen für die Verbuchung bearbeiten
CO_DM_DOC_LINKS_VB_CHECK Dokumentverknüpfungen für die Verbuchung bearbeiten
CO_DM_DOC_LINK_ATTR_GET Dokumentverknüpfung Attribut holen
CO_DM_DOC_LINK_COPY Dokumentverknüpfung kopieren
CO_DM_DOC_LINK_CREATE Dokumentverknüpfung erzeugen
CO_DM_DOC_LINK_DELETE Dokumentverknüpfung löschen
CO_DM_DOC_LINK_MOVE Dokumentverknüpfung verschieben
CO_DM_MAT_GET_DOC_LINKS Dokumentverknüpfungen aus Materialstamm ermitteln
CO_DM_PORDER_DMS_CHECK Dokumentverknüpfung vom DVS aus prüfen
CO_DM_PORDER_GEN_DOC_LINKS Generate Document Links From Master Data
CO_DM_PORDER_KEY_FIELDS_GET Schlüsselfelder aus Objektschlüssel erzeugen
CO_DM_PORDER_OBJECT_KEY_GET Objektschlüssel aus Schlüsselfeldern erzeugen
CO_DM_PORDER_PRE_READ Belegtabelle Dokumentverknüpfungen zum Auftrag füllen
CO_DM_PROD_VERS_DEL_DOC_LINK Löschen der Dokumentverknüpfungen aus der Fertigungsversion
CO_DM_PROD_VERS_GET_DOC_LINK Dokumentverknüpfungen aus Fertigungsversion ermitteln
OBJECT_CHECK_PORDER Prüfung, ob Auftrag vorhanden für Dokumentverknüpfung

IMPORTING Parameters details for EXIT_SAPLCODM_001

I_AUFNR - Order Number

Data type: CAUFVD-AUFNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_DATE - Explosion Date

Data type: CAUFVD-AUFLD
Optional: No
Call by Reference: No ( called with pass by value option)

I_MATNR - Material Number

Data type: CAUFVD-PLNBEZ
Optional: No
Call by Reference: No ( called with pass by value option)

I_WERKS - Production Plant

Data type: CAUFVD-WERKS
Optional: No
Call by Reference: No ( called with pass by value option)

I_CUOBJ - Configuration

Data type: CAUFVD-CUOBJ
Optional: No
Call by Reference: No ( called with pass by value option)

I_VERID - Production Version

Data type: AFPOD-VERID
Optional: No
Call by Reference: No ( called with pass by value option)

I_MASTER_TYPE - Master Data Category

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

IS_DOCLINK - Document link

Data type: AFDLD
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for EXIT_SAPLCODM_001

E_FLAG_OK - Check Flag

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

E_CI_AFDLD - Additional Attributes Document Link

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

Copy and paste ABAP code example for EXIT_SAPLCODM_001 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_i_aufnr  TYPE CAUFVD-AUFNR, "   
lv_e_flag_ok  TYPE C, "   
lv_i_date  TYPE CAUFVD-AUFLD, "   
lv_e_ci_afdld  TYPE COCI_AFDLD, "   
lv_i_matnr  TYPE CAUFVD-PLNBEZ, "   
lv_i_werks  TYPE CAUFVD-WERKS, "   
lv_i_cuobj  TYPE CAUFVD-CUOBJ, "   
lv_i_verid  TYPE AFPOD-VERID, "   
lv_i_master_type  TYPE C, "   
lv_is_doclink  TYPE AFDLD. "   

  CALL FUNCTION 'EXIT_SAPLCODM_001'  "User Exit: Generate Document Links from Master Data
    EXPORTING
         I_AUFNR = lv_i_aufnr
         I_DATE = lv_i_date
         I_MATNR = lv_i_matnr
         I_WERKS = lv_i_werks
         I_CUOBJ = lv_i_cuobj
         I_VERID = lv_i_verid
         I_MASTER_TYPE = lv_i_master_type
         IS_DOCLINK = lv_is_doclink
    IMPORTING
         E_FLAG_OK = lv_e_flag_ok
         E_CI_AFDLD = lv_e_ci_afdld
. " EXIT_SAPLCODM_001




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLCODM_001

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.

"SELECT single AUFNR FROM CAUFVD INTO @DATA(ld_i_aufnr).
 
 
"SELECT single AUFLD FROM CAUFVD INTO @DATA(ld_i_date).
 
 
"SELECT single PLNBEZ FROM CAUFVD INTO @DATA(ld_i_matnr).
 
"SELECT single WERKS FROM CAUFVD INTO @DATA(ld_i_werks).
 
"SELECT single CUOBJ FROM CAUFVD INTO @DATA(ld_i_cuobj).
 
"SELECT single VERID FROM AFPOD INTO @DATA(ld_i_verid).
 
 
 


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!