SAP HR_PSD_GET_SCHEMA Function Module for









HR_PSD_GET_SCHEMA is a standard hr psd get schema 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 psd get schema FM, simply by entering the name HR_PSD_GET_SCHEMA into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRDPBS6
Program Name: SAPLHRDPBS6
Main Program: SAPLHRDPBS6
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function HR_PSD_GET_SCHEMA 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_PSD_GET_SCHEMA'"
EXPORTING
IMP_SPRAS = "

TABLES
IN_SCHEMA_RANGE = "
* OUT_T52CD = "
* OUT_T52CD_T = "
* OUT_T52C0 = "
* OUT_T52C2 = "
* OUT_T52B5 = "
* OUT_DOCU = "

EXCEPTIONS
ERROR_DOCU = 1
.



IMPORTING Parameters details for HR_PSD_GET_SCHEMA

IMP_SPRAS -

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

TABLES Parameters details for HR_PSD_GET_SCHEMA

IN_SCHEMA_RANGE -

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

OUT_T52CD -

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

OUT_T52CD_T -

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

OUT_T52C0 -

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

OUT_T52C2 -

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

OUT_T52B5 -

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

OUT_DOCU -

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

EXCEPTIONS details

ERROR_DOCU -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_PSD_GET_SCHEMA 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_imp_spras  TYPE T52C2-SPRAS, "   
lv_error_docu  TYPE T52C2, "   
lt_in_schema_range  TYPE STANDARD TABLE OF SCHEMA_RANGE, "   
lt_out_t52cd  TYPE STANDARD TABLE OF T52CD, "   
lt_out_t52cd_t  TYPE STANDARD TABLE OF T52CD_T, "   
lt_out_t52c0  TYPE STANDARD TABLE OF T52C0, "   
lt_out_t52c2  TYPE STANDARD TABLE OF T52C2, "   
lt_out_t52b5  TYPE STANDARD TABLE OF T52B5, "   
lt_out_docu  TYPE STANDARD TABLE OF SCHEMA_DOCU_STRUCT. "   

  CALL FUNCTION 'HR_PSD_GET_SCHEMA'  "
    EXPORTING
         IMP_SPRAS = lv_imp_spras
    TABLES
         IN_SCHEMA_RANGE = lt_in_schema_range
         OUT_T52CD = lt_out_t52cd
         OUT_T52CD_T = lt_out_t52cd_t
         OUT_T52C0 = lt_out_t52c0
         OUT_T52C2 = lt_out_t52c2
         OUT_T52B5 = lt_out_t52b5
         OUT_DOCU = lt_out_docu
    EXCEPTIONS
        ERROR_DOCU = 1
. " HR_PSD_GET_SCHEMA




ABAP code using 7.40 inline data declarations to call FM HR_PSD_GET_SCHEMA

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 SPRAS FROM T52C2 INTO @DATA(ld_imp_spras).
 
 
 
 
 
 
 
 
 


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!