SAP BAPI_WAGECOMPEXT_GETDETAIL Function Module for









BAPI_WAGECOMPEXT_GETDETAIL is a standard bapi wagecompext getdetail 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 getdetail FM, simply by entering the name BAPI_WAGECOMPEXT_GETDETAIL 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_GETDETAIL 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_GETDETAIL'"
EXPORTING
EMPLOYEENUMBER = "Personnel Number
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

IMPORTING
WAGECOMPDATA = "Data of External Wage Component
COSTASSIGNMENT = "Cost Assignment of External Wage Component

TABLES
* EXTENSIONOUT = "Table for Customer Enhancements
RETURN = "Return Parameter
.



IMPORTING Parameters details for BAPI_WAGECOMPEXT_GETDETAIL

EMPLOYEENUMBER - Personnel Number

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

SUBTYPE - Origin of Data

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

OBJECTID - Object Identification

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

LOCKINDICATOR - Lock Indicator for an HR Master Record

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

VALIDITYEND - Validity Date

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

VALIDITYBEGIN - Validity Date

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

RECORDNUMBER - Sequence Number of an Infotype Record

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

EXPORTING Parameters details for BAPI_WAGECOMPEXT_GETDETAIL

WAGECOMPDATA - Data of External Wage Component

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

COSTASSIGNMENT - Cost Assignment of External Wage Component

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

TABLES Parameters details for BAPI_WAGECOMPEXT_GETDETAIL

EXTENSIONOUT - Table for Customer Enhancements

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

RETURN - Return Parameter

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

Copy and paste ABAP code example for BAPI_WAGECOMPEXT_GETDETAIL 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_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_wagecompdata  TYPE BAPI_WAGECOMPEXT_DATA, "   
lv_employeenumber  TYPE BAPI_WAGECOMPEXT_KEY-EMPLOYEENUMBER, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_subtype  TYPE BAPI_WAGECOMPEXT_KEY-SUBTYPE, "   
lv_costassignment  TYPE BAPI_WAGECOMPEXT_COSTASSIGN, "   
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. "   

  CALL FUNCTION 'BAPI_WAGECOMPEXT_GETDETAIL'  "
    EXPORTING
         EMPLOYEENUMBER = lv_employeenumber
         SUBTYPE = lv_subtype
         OBJECTID = lv_objectid
         LOCKINDICATOR = lv_lockindicator
         VALIDITYEND = lv_validityend
         VALIDITYBEGIN = lv_validitybegin
         RECORDNUMBER = lv_recordnumber
    IMPORTING
         WAGECOMPDATA = lv_wagecompdata
         COSTASSIGNMENT = lv_costassignment
    TABLES
         EXTENSIONOUT = lt_extensionout
         RETURN = lt_return
. " BAPI_WAGECOMPEXT_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM BAPI_WAGECOMPEXT_GETDETAIL

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 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).
 


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!