SAP HRPCP_DISP_SCENARIO_STRUCTURE Function Module for









HRPCP_DISP_SCENARIO_STRUCTURE is a standard hrpcp disp scenario structure 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 hrpcp disp scenario structure FM, simply by entering the name HRPCP_DISP_SCENARIO_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.

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



Function HRPCP_DISP_SCENARIO_STRUCTURE 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 'HRPCP_DISP_SCENARIO_STRUCTURE'"
EXPORTING
* MODE = 'G' "
* POPUP = ' ' "

IMPORTING
E_PLVAR = "
E_VERSN = "
E_BEGDA = "
E_ENDDA = "
E_VNAME = "
.



IMPORTING Parameters details for HRPCP_DISP_SCENARIO_STRUCTURE

MODE -

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

POPUP -

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

EXPORTING Parameters details for HRPCP_DISP_SCENARIO_STRUCTURE

E_PLVAR -

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

E_VERSN -

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

E_BEGDA -

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

E_ENDDA -

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

E_VNAME -

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

Copy and paste ABAP code example for HRPCP_DISP_SCENARIO_STRUCTURE 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_mode  TYPE C, "   'G'
lv_e_plvar  TYPE T77KD-PLVAR, "   
lv_popup  TYPE C, "   SPACE
lv_e_versn  TYPE T77KD-VERSN, "   
lv_e_begda  TYPE T77KD-BEGDA, "   
lv_e_endda  TYPE T77KD-ENDDA, "   
lv_e_vname  TYPE T77KD-VNAME. "   

  CALL FUNCTION 'HRPCP_DISP_SCENARIO_STRUCTURE'  "
    EXPORTING
         MODE = lv_mode
         POPUP = lv_popup
    IMPORTING
         E_PLVAR = lv_e_plvar
         E_VERSN = lv_e_versn
         E_BEGDA = lv_e_begda
         E_ENDDA = lv_e_endda
         E_VNAME = lv_e_vname
. " HRPCP_DISP_SCENARIO_STRUCTURE




ABAP code using 7.40 inline data declarations to call FM HRPCP_DISP_SCENARIO_STRUCTURE

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_mode) = 'G'.
 
"SELECT single PLVAR FROM T77KD INTO @DATA(ld_e_plvar).
 
DATA(ld_popup) = ' '.
 
"SELECT single VERSN FROM T77KD INTO @DATA(ld_e_versn).
 
"SELECT single BEGDA FROM T77KD INTO @DATA(ld_e_begda).
 
"SELECT single ENDDA FROM T77KD INTO @DATA(ld_e_endda).
 
"SELECT single VNAME FROM T77KD INTO @DATA(ld_e_vname).
 


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!