SAP Function Modules

HR_SK_PROC_RZ_P SAP Function module







HR_SK_PROC_RZ_P is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name HR_SK_PROC_RZ_P into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: 3SK5
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM HR_SK_PROC_RZ_P - HR SK PROC RZ P





CALL FUNCTION 'HR_SK_PROC_RZ_P' "
* EXPORTING
*   first =                     " sy-tabix
*   last =                      " sy-tabix
*   cnt =                       " i
*   act =                       " sy-tabix
*   rzo =                       " pskrz_o
  IMPORTING
    retcode =                   " sy-ucomm
  TABLES
    trzp =                      " pskrz_p
    trzp_v =                    " pskrz_p_v
    trzp_vii =                  " pskrz_p_vii
    .  "  HR_SK_PROC_RZ_P

ABAP code example for Function Module HR_SK_PROC_RZ_P





The ABAP code below is a full code listing to execute function module HR_SK_PROC_RZ_P including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_retcode  TYPE SY-UCOMM ,
it_trzp  TYPE STANDARD TABLE OF PSKRZ_P,"TABLES PARAM
wa_trzp  LIKE LINE OF it_trzp ,
it_trzp_v  TYPE STANDARD TABLE OF PSKRZ_P_V,"TABLES PARAM
wa_trzp_v  LIKE LINE OF it_trzp_v ,
it_trzp_vii  TYPE STANDARD TABLE OF PSKRZ_P_VII,"TABLES PARAM
wa_trzp_vii  LIKE LINE OF it_trzp_vii .

DATA(ld_first) = '123 '.
DATA(ld_last) = '123 '.
DATA(ld_cnt) = '123 '.
DATA(ld_act) = '123 '.
DATA(ld_rzo) = '123 '.

"populate fields of struture and append to itab
append wa_trzp to it_trzp.

"populate fields of struture and append to itab
append wa_trzp_v to it_trzp_v.

"populate fields of struture and append to itab
append wa_trzp_vii to it_trzp_vii. . CALL FUNCTION 'HR_SK_PROC_RZ_P' * EXPORTING * first = ld_first * last = ld_last * cnt = ld_cnt * act = ld_act * rzo = ld_rzo IMPORTING retcode = ld_retcode TABLES trzp = it_trzp trzp_v = it_trzp_v trzp_vii = it_trzp_vii . " HR_SK_PROC_RZ_P
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_retcode  TYPE SY-UCOMM ,
ld_first  TYPE SY-TABIX ,
it_trzp  TYPE STANDARD TABLE OF PSKRZ_P ,
wa_trzp  LIKE LINE OF it_trzp,
ld_last  TYPE SY-TABIX ,
it_trzp_v  TYPE STANDARD TABLE OF PSKRZ_P_V ,
wa_trzp_v  LIKE LINE OF it_trzp_v,
ld_cnt  TYPE I ,
it_trzp_vii  TYPE STANDARD TABLE OF PSKRZ_P_VII ,
wa_trzp_vii  LIKE LINE OF it_trzp_vii,
ld_act  TYPE SY-TABIX ,
ld_rzo  TYPE PSKRZ_O .

ld_first = '123 '.

"populate fields of struture and append to itab
append wa_trzp to it_trzp.
ld_last = '123 '.

"populate fields of struture and append to itab
append wa_trzp_v to it_trzp_v.
ld_cnt = '123 '.

"populate fields of struture and append to itab
append wa_trzp_vii to it_trzp_vii.
ld_act = '123 '.
ld_rzo = '123 '.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HR_SK_PROC_RZ_P or its description.