SAP BAPI_IDWT_UPDATE_HRDATA_VE Function Module for BAPI for updating the HR data in the FI table
BAPI_IDWT_UPDATE_HRDATA_VE is a standard bapi idwt update hrdata ve SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI for updating the HR data in the FI table 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 bapi idwt update hrdata ve FM, simply by entering the name BAPI_IDWT_UPDATE_HRDATA_VE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FI_WT_VE
Program Name: SAPLFI_WT_VE
Main Program: SAPLFI_WT_VE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_IDWT_UPDATE_HRDATA_VE 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_IDWT_UPDATE_HRDATA_VE'"BAPI for updating the HR data in the FI table.
EXPORTING
BUKRS = "Company Code
YEAR = "Fiscal Year
MONTH = "Month
IMPORTING
RETURN = "Return Parameter
TABLES
IDWT_ST_EMPDATA_VE = "Structure used to pass the HR data to the FI BAPI for VE
IMPORTING Parameters details for BAPI_IDWT_UPDATE_HRDATA_VE
BUKRS - Company Code
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
YEAR - Fiscal Year
Data type: BSEG-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
MONTH - Month
Data type: T7TW1N-PABRMOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_IDWT_UPDATE_HRDATA_VE
RETURN - Return Parameter
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_IDWT_UPDATE_HRDATA_VE
IDWT_ST_EMPDATA_VE - Structure used to pass the HR data to the FI BAPI for VE
Data type: BAPI_IDWT_ST_EMPDATA_VEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_IDWT_UPDATE_HRDATA_VE 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_bukrs | TYPE T001-BUKRS, " | |||
| lv_return | TYPE BAPIRET2, " | |||
| lt_idwt_st_empdata_ve | TYPE STANDARD TABLE OF BAPI_IDWT_ST_EMPDATA_VE, " | |||
| lv_year | TYPE BSEG-GJAHR, " | |||
| lv_month | TYPE T7TW1N-PABRM. " |
|   CALL FUNCTION 'BAPI_IDWT_UPDATE_HRDATA_VE' "BAPI for updating the HR data in the FI table |
| EXPORTING | ||
| BUKRS | = lv_bukrs | |
| YEAR | = lv_year | |
| MONTH | = lv_month | |
| IMPORTING | ||
| RETURN | = lv_return | |
| TABLES | ||
| IDWT_ST_EMPDATA_VE | = lt_idwt_st_empdata_ve | |
| . " BAPI_IDWT_UPDATE_HRDATA_VE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_IDWT_UPDATE_HRDATA_VE
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 BUKRS FROM T001 INTO @DATA(ld_bukrs). | ||||
| "SELECT single GJAHR FROM BSEG INTO @DATA(ld_year). | ||||
| "SELECT single PABRM FROM T7TW1N INTO @DATA(ld_month). | ||||
Search for further information about these or an SAP related objects