SAP HR_CH_PK_WRITE_ENTRY_POPUP Function Module for









HR_CH_PK_WRITE_ENTRY_POPUP is a standard hr ch pk write entry popup 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 hr ch pk write entry popup FM, simply by entering the name HR_CH_PK_WRITE_ENTRY_POPUP into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_CH_PK_WRITE_ENTRY_POPUP 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 'HR_CH_PK_WRITE_ENTRY_POPUP'"
EXPORTING
PERNR = "
* XPFLAG = 'X' "
* UPFLAG = 'X' "
* OLREP_FLAG = ' ' "
KASSE = "
* ACCTY = '01' "
* RDATE = SY-DATUM "
* VADAT = "
* BUDAT = "
* VALTY = "
* VALUE = "
* EVFLAG = ' ' "

TABLES
* NEW_ENTRIES = "

EXCEPTIONS
ABORTED = 1 ERROR_AT_CREATION = 2 NO_PLAN_FOUND = 3 NO_ACCOUNT_FOUND = 4 INFTY_NOT_FOUND = 5 NO_PAYROLL_PERIOD_FOUND = 6 MISSING_AUTHORITY = 7
.



IMPORTING Parameters details for HR_CH_PK_WRITE_ENTRY_POPUP

PERNR -

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

XPFLAG -

Data type: P02VS_FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

UPFLAG -

Data type: P02VS_FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OLREP_FLAG -

Data type: P02VS_FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

KASSE -

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

ACCTY -

Data type: T5CPK-ACCTY
Default: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RDATE -

Data type: T5CPK-BEGDA
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

VADAT -

Data type: T5CPB-VADAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUDAT -

Data type: T5CPB-BUDAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALTY -

Data type: T5CA2-VALTY
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALUE -

Data type: T5CAD-VALUE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EVFLAG -

Data type: P02VS_FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for HR_CH_PK_WRITE_ENTRY_POPUP

NEW_ENTRIES -

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

EXCEPTIONS details

ABORTED -

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

ERROR_AT_CREATION -

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

NO_PLAN_FOUND -

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

NO_ACCOUNT_FOUND -

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

INFTY_NOT_FOUND -

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

NO_PAYROLL_PERIOD_FOUND -

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

MISSING_AUTHORITY -

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

Copy and paste ABAP code example for HR_CH_PK_WRITE_ENTRY_POPUP 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_pernr  TYPE P0000-PERNR, "   
lv_aborted  TYPE P0000, "   
lt_new_entries  TYPE STANDARD TABLE OF PCH01_EXT_ENTRIES, "   
lv_xpflag  TYPE P02VS_FLAG, "   'X'
lv_upflag  TYPE P02VS_FLAG, "   'X'
lv_olrep_flag  TYPE P02VS_FLAG, "   ' '
lv_kasse  TYPE T5CP0-KASSE, "   
lv_error_at_creation  TYPE T5CP0, "   
lv_accty  TYPE T5CPK-ACCTY, "   '01'
lv_no_plan_found  TYPE T5CPK, "   
lv_rdate  TYPE T5CPK-BEGDA, "   SY-DATUM
lv_no_account_found  TYPE T5CPK, "   
lv_vadat  TYPE T5CPB-VADAT, "   
lv_infty_not_found  TYPE T5CPB, "   
lv_budat  TYPE T5CPB-BUDAT, "   
lv_no_payroll_period_found  TYPE T5CPB, "   
lv_valty  TYPE T5CA2-VALTY, "   
lv_missing_authority  TYPE T5CA2, "   
lv_value  TYPE T5CAD-VALUE, "   
lv_evflag  TYPE P02VS_FLAG. "   ' '

  CALL FUNCTION 'HR_CH_PK_WRITE_ENTRY_POPUP'  "
    EXPORTING
         PERNR = lv_pernr
         XPFLAG = lv_xpflag
         UPFLAG = lv_upflag
         OLREP_FLAG = lv_olrep_flag
         KASSE = lv_kasse
         ACCTY = lv_accty
         RDATE = lv_rdate
         VADAT = lv_vadat
         BUDAT = lv_budat
         VALTY = lv_valty
         VALUE = lv_value
         EVFLAG = lv_evflag
    TABLES
         NEW_ENTRIES = lt_new_entries
    EXCEPTIONS
        ABORTED = 1
        ERROR_AT_CREATION = 2
        NO_PLAN_FOUND = 3
        NO_ACCOUNT_FOUND = 4
        INFTY_NOT_FOUND = 5
        NO_PAYROLL_PERIOD_FOUND = 6
        MISSING_AUTHORITY = 7
. " HR_CH_PK_WRITE_ENTRY_POPUP




ABAP code using 7.40 inline data declarations to call FM HR_CH_PK_WRITE_ENTRY_POPUP

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 PERNR FROM P0000 INTO @DATA(ld_pernr).
 
 
 
DATA(ld_xpflag) = 'X'.
 
DATA(ld_upflag) = 'X'.
 
DATA(ld_olrep_flag) = ' '.
 
"SELECT single KASSE FROM T5CP0 INTO @DATA(ld_kasse).
 
 
"SELECT single ACCTY FROM T5CPK INTO @DATA(ld_accty).
DATA(ld_accty) = '01'.
 
 
"SELECT single BEGDA FROM T5CPK INTO @DATA(ld_rdate).
DATA(ld_rdate) = SY-DATUM.
 
 
"SELECT single VADAT FROM T5CPB INTO @DATA(ld_vadat).
 
 
"SELECT single BUDAT FROM T5CPB INTO @DATA(ld_budat).
 
 
"SELECT single VALTY FROM T5CA2 INTO @DATA(ld_valty).
 
 
"SELECT single VALUE FROM T5CAD INTO @DATA(ld_value).
 
DATA(ld_evflag) = ' '.
 


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!