SAP EXIT_SAPLCOKO_002 Function Module for Derive External Network Number from WBS Number









EXIT_SAPLCOKO_002 is a standard exit saplcoko 002 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Derive External Network Number from WBS Number 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 saplcoko 002 FM, simply by entering the name EXIT_SAPLCOKO_002 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLCOKO_002 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_SAPLCOKO_002'"Derive External Network Number from WBS Number
EXPORTING
POSID_IMP = "

IMPORTING
NETNR_EXP = "

EXCEPTIONS
NO_NUMBER_GENERATED = 1
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
CO_INIT NOTRANSL: Initialisierung der Transaktion über FUGR
CO_KO_AFPOD_GET NOTRANSL: Zuordnung Kundenauftragsposition für Standardnetzvorlage
CO_KO_BAPI_CNEX0012 NOTRANSL: Aufruf des Customer Exit 002 (aus BAPI)
CO_KO_CAUFVD_INIT_PS NOTRANSL: Initialisieren Netzplankopf
CO_KO_CAUFVD_INS_PS NOTRANSL: Netzplankopf in Belegtabelen einstellen
CO_KO_CHECK_AND_UPD_AMOUNT_MQC NOTRANSL: Änderung der Auftragsmenge durch Materialmengenberechnung
CO_KO_CHECK_EBS_ELEM_ALLOC NOTRANSL: Prüft Orgeinheiten bei Zuordnung Netzplan zum PSP
CO_KO_CHECK_ORD_TO_SDOC NOTRANSL: Prüfung Fertigungsaufträge zu Kundenauftrag
CO_KO_COLLECTIVE_ORDER_EXPAND NOTRANSL: Collective order expand
CO_KO_EXPORT_GENKEY NOTRANSL: Die generische Schlüssel der lfd. Transakt. exportieren
CO_KO_FHM_AVAILABILITY_CHK NOTRANSL: Verfügbarkeitsprüfung der FHM zu einem auftrag
CO_KO_GET_EXT_NETNR NOTRANSL: Externe Netzplannummer eingeben lassen
CO_KO_GET_HEADER NOTRANSL: Bereitstellung Auftragskopf für ext. Modulpools
CO_KO_GET_RC27S NOTRANSL: Lesen der Steuerleiste RC27S aus COKO
CO_KO_HEADER_ENTRY_PROJ NOTRANSL: Einstieg Projektterminverwaltung in Netzplanverwaltung
CO_KO_NETWORK_ACL_EXTERN_CALL NOTRANSL: Initialisierung COKO für externen Subscreen-Aufruf (PS)
CO_KO_NETWORK_INIT_EXTERN_CALL NOTRANSL: Initialisierung COKO für externen Subscreen-Aufruf (PS)
CO_KO_ORDER_ENTRY_EXT NOTRANSL: Einstieg in die Auftragsbearbeitung aus externer Anwendung
CO_KO_ORDER_OK_CODE_EXT NOTRANSL: Externe OK-Code Verarbeitung
CO_KO_ORDER_TO_PROJECT_DEL NOTRANSL: Verarbeitung ansteuern Auftrag/Netzplan zum Projekt von extern
CO_KO_PROJKN_DET NOTRANSL: Setzt Filterkennzeichen für Projektterminplaanung
CO_KO_PROJ_NW_INIT NOTRANSL: Initialisiert Netzplan. Schnittstelle PSP-Element/Netzplan bei i
CO_KO_SET_HEADER NOTRANSL: Übergeben CAUFVD an SAPLCOKO zwecks SUBSCREEN-Anzeige
CO_KO_SET_PARAMETER NOTRANSL: Funktionsbaustein setzt bestimmte Parameter global im SAPLCOKO
CO_KO_SET_PLANT NOTRANSL: Setzt Werk in der Funktionsgruppe COKO
CO_KO_SET_RC27S NOTRANSL: Ändern der Steuerleiste rc27s in COKO

IMPORTING Parameters details for EXIT_SAPLCOKO_002

POSID_IMP -

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

EXPORTING Parameters details for EXIT_SAPLCOKO_002

NETNR_EXP -

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

EXCEPTIONS details

NO_NUMBER_GENERATED -

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

Copy and paste ABAP code example for EXIT_SAPLCOKO_002 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_netnr_exp  TYPE CAUFVD-AUFNR, "   
lv_posid_imp  TYPE PRPS-POSID, "   
lv_no_number_generated  TYPE PRPS. "   

  CALL FUNCTION 'EXIT_SAPLCOKO_002'  "Derive External Network Number from WBS Number
    EXPORTING
         POSID_IMP = lv_posid_imp
    IMPORTING
         NETNR_EXP = lv_netnr_exp
    EXCEPTIONS
        NO_NUMBER_GENERATED = 1
. " EXIT_SAPLCOKO_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLCOKO_002

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_netnr_exp).
 
"SELECT single POSID FROM PRPS INTO @DATA(ld_posid_imp).
 
 


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!