SAP EXIT_SAPLCOI2_002 Function Module for COI2 Alternative Procurement of Personnel Availability Data









EXIT_SAPLCOI2_002 is a standard exit saplcoi2 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 COI2 Alternative Procurement of Personnel Availability 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 saplcoi2 002 FM, simply by entering the name EXIT_SAPLCOI2_002 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLCOI2_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_SAPLCOI2_002'"COI2 Alternative Procurement of Personnel Availability Data
EXPORTING
BEGDA = "Start Date of Period
ENDDA = "End Date of Period

TABLES
PERNRTABLE = "Table of Personnel Numbers
TIME_LIST = "Table of Time Events

EXCEPTIONS
ERROR_WORK_SCHEDULE = 1 ERROR_NO_PERSONS = 2
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
COI2_PERSON_AVAIL_CAPACITY NOTRANSL: The available capacity of a person(s)
COI2_PERSON_HITLIST NOTRANSL: Hitlist of Persons to WorkCenters with Qualifications, HR and Ca
COI2_PERSON_HRTIMEINFO NOTRANSL: Returns availability information from HR
COI2_PERSON_OF_WORKCENTER NOTRANSL: Finds Persons that beloong to Logistics Work Centers
COI2_PERSON_RANKING NOTRANSL: Auswertung der Übereinstimmung zwischen Qualifikation und Anford
COI2_POPUP NOTRANSL: Popup for the entry of qualification and estaimate duration
COI2_READ_OBJECT NOTRANSL: Read an object (e.g Person)
COI2_USER_EXIT_001 NOTRANSL: COI2: User-Exit: Personen in Hitliste
COI2_USER_EXIT_002 NOTRANSL: COI2 User-Exit Alternative Source of HR Availability.
COI2_WORKCENTER_HR_ASSIGNMENT NOTRANSL: Determine the HR object(s) assigned to a Logistic WorkCentre
COI2_WORKCENTER_OF_PERSON NOTRANSL: Finds Workcenters / Capacitie to which a person belongs
COI2_WORKCENTER_OF_WORKCENTER NOTRANSL: Workcenters to Workcenters using HR relationships.
QP_OBJECT_CREATE NOTRANSL: QP-Profile aus Logistik anlegen (wie rh_object_create)
QP_OBJECT_TEXT NOTRANSL: Eingabe-Dialogfenster für QP-Text-Pflege

IMPORTING Parameters details for EXIT_SAPLCOI2_002

BEGDA - Start Date of Period

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

ENDDA - End Date of Period

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

TABLES Parameters details for EXIT_SAPLCOI2_002

PERNRTABLE - Table of Personnel Numbers

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

TIME_LIST - Table of Time Events

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

EXCEPTIONS details

ERROR_WORK_SCHEDULE - Error when Reading Work Schedule

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

ERROR_NO_PERSONS - No or Invalid Personnel Numbers Passed

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

Copy and paste ABAP code example for EXIT_SAPLCOI2_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_begda  TYPE TIMELIST-DATE, "   
lt_pernrtable  TYPE STANDARD TABLE OF PERNRTAB, "   
lv_error_work_schedule  TYPE PERNRTAB, "   
lv_endda  TYPE TIMELIST-DATE, "   
lt_time_list  TYPE STANDARD TABLE OF TIMELIST, "   
lv_error_no_persons  TYPE TIMELIST. "   

  CALL FUNCTION 'EXIT_SAPLCOI2_002'  "COI2 Alternative Procurement of Personnel Availability Data
    EXPORTING
         BEGDA = lv_begda
         ENDDA = lv_endda
    TABLES
         PERNRTABLE = lt_pernrtable
         TIME_LIST = lt_time_list
    EXCEPTIONS
        ERROR_WORK_SCHEDULE = 1
        ERROR_NO_PERSONS = 2
. " EXIT_SAPLCOI2_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLCOI2_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 DATE FROM TIMELIST INTO @DATA(ld_begda).
 
 
 
"SELECT single DATE FROM TIMELIST INTO @DATA(ld_endda).
 
 
 


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!