SAP HRWPC_CP_ADJ_BUFFER_GET Function Module for









HRWPC_CP_ADJ_BUFFER_GET is a standard hrwpc cp adj buffer get 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 hrwpc cp adj buffer get FM, simply by entering the name HRWPC_CP_ADJ_BUFFER_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function HRWPC_CP_ADJ_BUFFER_GET 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 'HRWPC_CP_ADJ_BUFFER_GET'"
IMPORTING
CPROC = "
ACTIVE_CURRENCY = "
CYEAR = "
BEGDA = "
ENDDA = "
CNVDA = "
CSTAT = "
ACODE = "
PLVAR = "
ACTIVE_CPLAN = "

TABLES
* T_EMPLOYEE_DATA = "
* T_ADJUSTMENTTYPE_DATA = "
* T_ADJUSTMENT_DATA_PLANNED = "
* T_ADJUSTMENT_DATA_DATABASE = "
* T_GUIDELINE_DATA = "
* T_MATRIX_DATA = "
* T_BUDGET_DATA = "
.



EXPORTING Parameters details for HRWPC_CP_ADJ_BUFFER_GET

CPROC -

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

ACTIVE_CURRENCY -

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

CYEAR -

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

BEGDA -

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

ENDDA -

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

CNVDA -

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

CSTAT -

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

ACODE -

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

PLVAR -

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

ACTIVE_CPLAN -

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

TABLES Parameters details for HRWPC_CP_ADJ_BUFFER_GET

T_EMPLOYEE_DATA -

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

T_ADJUSTMENTTYPE_DATA -

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

T_ADJUSTMENT_DATA_PLANNED -

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

T_ADJUSTMENT_DATA_DATABASE -

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

T_GUIDELINE_DATA -

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

T_MATRIX_DATA -

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

T_BUDGET_DATA -

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

Copy and paste ABAP code example for HRWPC_CP_ADJ_BUFFER_GET 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_cproc  TYPE T71C8-CPROC, "   
lt_t_employee_data  TYPE STANDARD TABLE OF HRCM_EMPINFO, "   
lv_active_currency  TYPE TCURC-WAERS, "   
lv_cyear  TYPE T71C4-PYEAR, "   
lt_t_adjustmenttype_data  TYPE STANDARD TABLE OF HRCM_PLNINFO, "   
lv_begda  TYPE T71C4-PLBEG, "   
lt_t_adjustment_data_planned  TYPE STANDARD TABLE OF P0380, "   
lv_endda  TYPE T71C4-PLEND, "   
lt_t_adjustment_data_database  TYPE STANDARD TABLE OF P0380, "   
lv_cnvda  TYPE T71C4-CNVDA, "   
lt_t_guideline_data  TYPE STANDARD TABLE OF HRCM_GUIDELINE_VALUES, "   
lv_cstat  TYPE CMP_STATUS, "   
lt_t_matrix_data  TYPE STANDARD TABLE OF HRCM_MATRIX_EMP, "   
lv_acode  TYPE CMP_ACODE, "   
lt_t_budget_data  TYPE STANDARD TABLE OF HRCM_BUDINFO, "   
lv_plvar  TYPE PLVAR, "   
lv_active_cplan  TYPE T71CA-CPLAN. "   

  CALL FUNCTION 'HRWPC_CP_ADJ_BUFFER_GET'  "
    IMPORTING
         CPROC = lv_cproc
         ACTIVE_CURRENCY = lv_active_currency
         CYEAR = lv_cyear
         BEGDA = lv_begda
         ENDDA = lv_endda
         CNVDA = lv_cnvda
         CSTAT = lv_cstat
         ACODE = lv_acode
         PLVAR = lv_plvar
         ACTIVE_CPLAN = lv_active_cplan
    TABLES
         T_EMPLOYEE_DATA = lt_t_employee_data
         T_ADJUSTMENTTYPE_DATA = lt_t_adjustmenttype_data
         T_ADJUSTMENT_DATA_PLANNED = lt_t_adjustment_data_planned
         T_ADJUSTMENT_DATA_DATABASE = lt_t_adjustment_data_database
         T_GUIDELINE_DATA = lt_t_guideline_data
         T_MATRIX_DATA = lt_t_matrix_data
         T_BUDGET_DATA = lt_t_budget_data
. " HRWPC_CP_ADJ_BUFFER_GET




ABAP code using 7.40 inline data declarations to call FM HRWPC_CP_ADJ_BUFFER_GET

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 CPROC FROM T71C8 INTO @DATA(ld_cproc).
 
 
"SELECT single WAERS FROM TCURC INTO @DATA(ld_active_currency).
 
"SELECT single PYEAR FROM T71C4 INTO @DATA(ld_cyear).
 
 
"SELECT single PLBEG FROM T71C4 INTO @DATA(ld_begda).
 
 
"SELECT single PLEND FROM T71C4 INTO @DATA(ld_endda).
 
 
"SELECT single CNVDA FROM T71C4 INTO @DATA(ld_cnvda).
 
 
 
 
 
 
 
"SELECT single CPLAN FROM T71CA INTO @DATA(ld_active_cplan).
 


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!