SAP PK_PKHD_D_PROVIDE Function Module for NOTRANSL: Verarbeitung eines extern gelesenen Regelkreises









PK_PKHD_D_PROVIDE is a standard pk pkhd d provide SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Verarbeitung eines extern gelesenen Regelkreises 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 pk pkhd d provide FM, simply by entering the name PK_PKHD_D_PROVIDE into the relevant SAP transaction such as SE37 or SE38.

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



Function PK_PKHD_D_PROVIDE 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 'PK_PKHD_D_PROVIDE'"NOTRANSL: Verarbeitung eines extern gelesenen Regelkreises
EXPORTING
* AS_NONEXISTENT = RM_NOFLAG "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
DB_REF = "DB Interface Control Cycle (PKHD)
STATUS_BEFORE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IN_PROCESS = "DE-EN-LANG-SWITCH-NO-TRANSLATION

CHANGING
DB_VAL = "Application Data in cl_pkhd_db_pk

EXCEPTIONS
X_INTERFACE_MISMATCH = 1
.



IMPORTING Parameters details for PK_PKHD_D_PROVIDE

AS_NONEXISTENT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXPORTING Parameters details for PK_PKHD_D_PROVIDE

DB_REF - DB Interface Control Cycle (PKHD)

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

STATUS_BEFORE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: CL_RECOVERY_HANDLE_RL=>VHURL_RECOVERY_HANDLE_STATUS
Optional: No
Call by Reference: No ( called with pass by value option)

IN_PROCESS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

CHANGING Parameters details for PK_PKHD_D_PROVIDE

DB_VAL - Application Data in cl_pkhd_db_pk

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

EXCEPTIONS details

X_INTERFACE_MISMATCH - Invalid Call

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

Copy and paste ABAP code example for PK_PKHD_D_PROVIDE 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_db_ref  TYPE CL_PKHD_DB_PK, "   
lv_db_val  TYPE PKHD_DB_VAL, "   
lv_as_nonexistent  TYPE RM_FLAG, "   RM_NOFLAG
lv_x_interface_mismatch  TYPE RM_FLAG, "   
lv_status_before  TYPE CL_RECOVERY_HANDLE_RL=>VHURL_RECOVERY_HANDLE_STATUS, "   
lv_in_process  TYPE RM_FLAG. "   

  CALL FUNCTION 'PK_PKHD_D_PROVIDE'  "NOTRANSL: Verarbeitung eines extern gelesenen Regelkreises
    EXPORTING
         AS_NONEXISTENT = lv_as_nonexistent
    IMPORTING
         DB_REF = lv_db_ref
         STATUS_BEFORE = lv_status_before
         IN_PROCESS = lv_in_process
    CHANGING
         DB_VAL = lv_db_val
    EXCEPTIONS
        X_INTERFACE_MISMATCH = 1
. " PK_PKHD_D_PROVIDE




ABAP code using 7.40 inline data declarations to call FM PK_PKHD_D_PROVIDE

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.

 
 
DATA(ld_as_nonexistent) = RM_NOFLAG.
 
 
 
 


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!