SAP BAPI_WAGECOMPEXT_CHANGE Function Module for
BAPI_WAGECOMPEXT_CHANGE is a standard bapi wagecompext change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 bapi wagecompext change FM, simply by entering the name BAPI_WAGECOMPEXT_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: H99_WAGECOMPONENTEXT
Program Name: SAPLH99_WAGECOMPONENTEXT
Main Program: SAPLH99_WAGECOMPONENTEXT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_WAGECOMPEXT_CHANGE 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 'BAPI_WAGECOMPEXT_CHANGE'".
EXPORTING
EMPLOYEENUMBER = "Personnel Number
* COSTASSIGNMENT = "Cost Assignment of External Wage Component
* COSTASSIGNMENTX = "Change Information on Cost Assignment
* TESTRUN = "Test Run (No Database Update)
SUBTYPE = "Origin of Data
OBJECTID = "Object Identification
LOCKINDICATOR = "Lock Indicator for an HR Master Record
VALIDITYEND = "Validity Date
VALIDITYBEGIN = "Validity Date
RECORDNUMBER = "Sequence Number of an Infotype Record
* WAGECOMPDATA = "Data of External Wage Component
* WAGECOMPDATAX = "Change Information on Data
TABLES
* EXTENSIONIN = "Table for Customer Enhancements
RETURN = "Return Parameter
IMPORTING Parameters details for BAPI_WAGECOMPEXT_CHANGE
EMPLOYEENUMBER - Personnel Number
Data type: BAPI_WAGECOMPEXT_KEY-EMPLOYEENUMBEROptional: No
Call by Reference: No ( called with pass by value option)
COSTASSIGNMENT - Cost Assignment of External Wage Component
Data type: BAPI_WAGECOMPEXT_COSTASSIGNOptional: Yes
Call by Reference: No ( called with pass by value option)
COSTASSIGNMENTX - Change Information on Cost Assignment
Data type: BAPI_H99_GEN-BAPIUPDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
TESTRUN - Test Run (No Database Update)
Data type: BAPI_H99_GEN-TESTRUNOptional: Yes
Call by Reference: No ( called with pass by value option)
SUBTYPE - Origin of Data
Data type: BAPI_WAGECOMPEXT_KEY-SUBTYPEOptional: No
Call by Reference: No ( called with pass by value option)
OBJECTID - Object Identification
Data type: BAPI_WAGECOMPEXT_KEY-OBJECTIDOptional: No
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR - Lock Indicator for an HR Master Record
Data type: BAPI_WAGECOMPEXT_KEY-LOCKINDICATOROptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYEND - Validity Date
Data type: BAPI_WAGECOMPEXT_KEY-VALIDITYENDOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Validity Date
Data type: BAPI_WAGECOMPEXT_KEY-VALIDITYBEGINOptional: No
Call by Reference: No ( called with pass by value option)
RECORDNUMBER - Sequence Number of an Infotype Record
Data type: BAPI_WAGECOMPEXT_KEY-RECORDNUMBEROptional: No
Call by Reference: No ( called with pass by value option)
WAGECOMPDATA - Data of External Wage Component
Data type: BAPI_WAGECOMPEXT_DATAOptional: Yes
Call by Reference: No ( called with pass by value option)
WAGECOMPDATAX - Change Information on Data
Data type: BAPI_H99_GEN-BAPIUPDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_WAGECOMPEXT_CHANGE
EXTENSIONIN - Table for Customer Enhancements
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
RETURN - Return Parameter
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_WAGECOMPEXT_CHANGE 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_extensionin | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lv_employeenumber | TYPE BAPI_WAGECOMPEXT_KEY-EMPLOYEENUMBER, " | |||
| lv_costassignment | TYPE BAPI_WAGECOMPEXT_COSTASSIGN, " | |||
| lv_costassignmentx | TYPE BAPI_H99_GEN-BAPIUPDATE, " | |||
| lv_testrun | TYPE BAPI_H99_GEN-TESTRUN, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_subtype | TYPE BAPI_WAGECOMPEXT_KEY-SUBTYPE, " | |||
| lv_objectid | TYPE BAPI_WAGECOMPEXT_KEY-OBJECTID, " | |||
| lv_lockindicator | TYPE BAPI_WAGECOMPEXT_KEY-LOCKINDICATOR, " | |||
| lv_validityend | TYPE BAPI_WAGECOMPEXT_KEY-VALIDITYEND, " | |||
| lv_validitybegin | TYPE BAPI_WAGECOMPEXT_KEY-VALIDITYBEGIN, " | |||
| lv_recordnumber | TYPE BAPI_WAGECOMPEXT_KEY-RECORDNUMBER, " | |||
| lv_wagecompdata | TYPE BAPI_WAGECOMPEXT_DATA, " | |||
| lv_wagecompdatax | TYPE BAPI_H99_GEN-BAPIUPDATE. " |
|   CALL FUNCTION 'BAPI_WAGECOMPEXT_CHANGE' " |
| EXPORTING | ||
| EMPLOYEENUMBER | = lv_employeenumber | |
| COSTASSIGNMENT | = lv_costassignment | |
| COSTASSIGNMENTX | = lv_costassignmentx | |
| TESTRUN | = lv_testrun | |
| SUBTYPE | = lv_subtype | |
| OBJECTID | = lv_objectid | |
| LOCKINDICATOR | = lv_lockindicator | |
| VALIDITYEND | = lv_validityend | |
| VALIDITYBEGIN | = lv_validitybegin | |
| RECORDNUMBER | = lv_recordnumber | |
| WAGECOMPDATA | = lv_wagecompdata | |
| WAGECOMPDATAX | = lv_wagecompdatax | |
| TABLES | ||
| EXTENSIONIN | = lt_extensionin | |
| RETURN | = lt_return | |
| . " BAPI_WAGECOMPEXT_CHANGE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_WAGECOMPEXT_CHANGE
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 EMPLOYEENUMBER FROM BAPI_WAGECOMPEXT_KEY INTO @DATA(ld_employeenumber). | ||||
| "SELECT single BAPIUPDATE FROM BAPI_H99_GEN INTO @DATA(ld_costassignmentx). | ||||
| "SELECT single TESTRUN FROM BAPI_H99_GEN INTO @DATA(ld_testrun). | ||||
| "SELECT single SUBTYPE FROM BAPI_WAGECOMPEXT_KEY INTO @DATA(ld_subtype). | ||||
| "SELECT single OBJECTID FROM BAPI_WAGECOMPEXT_KEY INTO @DATA(ld_objectid). | ||||
| "SELECT single LOCKINDICATOR FROM BAPI_WAGECOMPEXT_KEY INTO @DATA(ld_lockindicator). | ||||
| "SELECT single VALIDITYEND FROM BAPI_WAGECOMPEXT_KEY INTO @DATA(ld_validityend). | ||||
| "SELECT single VALIDITYBEGIN FROM BAPI_WAGECOMPEXT_KEY INTO @DATA(ld_validitybegin). | ||||
| "SELECT single RECORDNUMBER FROM BAPI_WAGECOMPEXT_KEY INTO @DATA(ld_recordnumber). | ||||
| "SELECT single BAPIUPDATE FROM BAPI_H99_GEN INTO @DATA(ld_wagecompdatax). | ||||
Search for further information about these or an SAP related objects