SAP Function Modules

RH_LIST_ORIGINAL_SYSTEMS SAP Function module







RH_LIST_ORIGINAL_SYSTEMS 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 RH_LIST_ORIGINAL_SYSTEMS into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM RH_LIST_ORIGINAL_SYSTEMS - RH LIST ORIGINAL SYSTEMS





CALL FUNCTION 'RH_LIST_ORIGINAL_SYSTEMS' "
  EXPORTING
    begda =                     " begdatum      Start Date
    endda =                     " enddatum      End Date
    not_reg =                   " flag
*   pd_pa_pb =                  " char01
  CHANGING
    objects =                   " hrorigdisp_tab  Output Table for Original System Lists
*   sel_origsystem =            " rnge_origs_tab  HR: Selection Table for Original System
    .  "  RH_LIST_ORIGINAL_SYSTEMS

ABAP code example for Function Module RH_LIST_ORIGINAL_SYSTEMS





The ABAP code below is a full code listing to execute function module RH_LIST_ORIGINAL_SYSTEMS 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_objects) = 'Check type of data required'.
DATA(ld_sel_origsystem) = 'Check type of data required'.
DATA(ld_begda) = 'Check type of data required'.
DATA(ld_endda) = 'Check type of data required'.
DATA(ld_not_reg) = 'Check type of data required'.
DATA(ld_pd_pa_pb) = 'Check type of data required'. . CALL FUNCTION 'RH_LIST_ORIGINAL_SYSTEMS' EXPORTING begda = ld_begda endda = ld_endda not_reg = ld_not_reg * pd_pa_pb = ld_pd_pa_pb CHANGING objects = ld_objects * sel_origsystem = ld_sel_origsystem . " RH_LIST_ORIGINAL_SYSTEMS
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_objects  TYPE HRORIGDISP_TAB ,
ld_begda  TYPE BEGDATUM ,
ld_sel_origsystem  TYPE RNGE_ORIGS_TAB ,
ld_endda  TYPE ENDDATUM ,
ld_not_reg  TYPE FLAG ,
ld_pd_pa_pb  TYPE CHAR01 .

ld_objects = 'Check type of data required'.
ld_begda = 'Check type of data required'.
ld_sel_origsystem = 'Check type of data required'.
ld_endda = 'Check type of data required'.
ld_not_reg = 'Check type of data required'.
ld_pd_pa_pb = 'Check type of data required'.

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 RH_LIST_ORIGINAL_SYSTEMS or its description.