SAP Function Modules

RHOMCO_GET_ALTREL_UP SAP Function module







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

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


Pattern for FM RHOMCO_GET_ALTREL_UP - RHOMCO GET ALTREL UP





CALL FUNCTION 'RHOMCO_GET_ALTREL_UP' "
  EXPORTING
*   actplvar =                  " plvar
    startotype =                " otype
    targetotype =               " otype
    relup_standard = 'A002'     " subtyp
    relup_alternative = 'A262'  " subtyp
*   act_begda = SY-DATUM        " begdatum
*   act_endda = SY-DATUM        " enddatum
*   buffer_mode = 'X'           " flag
  TABLES
    objects_to_read_for =       " hrrootob
    relations_result =          " hri1001
    .  "  RHOMCO_GET_ALTREL_UP

ABAP code example for Function Module RHOMCO_GET_ALTREL_UP





The ABAP code below is a full code listing to execute function module RHOMCO_GET_ALTREL_UP 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:
it_objects_to_read_for  TYPE STANDARD TABLE OF HRROOTOB,"TABLES PARAM
wa_objects_to_read_for  LIKE LINE OF it_objects_to_read_for ,
it_relations_result  TYPE STANDARD TABLE OF HRI1001,"TABLES PARAM
wa_relations_result  LIKE LINE OF it_relations_result .

DATA(ld_actplvar) = 'Check type of data required'.
DATA(ld_startotype) = 'Check type of data required'.
DATA(ld_targetotype) = 'Check type of data required'.
DATA(ld_relup_standard) = 'Check type of data required'.
DATA(ld_relup_alternative) = 'Check type of data required'.
DATA(ld_act_begda) = 'Check type of data required'.
DATA(ld_act_endda) = 'Check type of data required'.
DATA(ld_buffer_mode) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_objects_to_read_for to it_objects_to_read_for.

"populate fields of struture and append to itab
append wa_relations_result to it_relations_result. . CALL FUNCTION 'RHOMCO_GET_ALTREL_UP' EXPORTING * actplvar = ld_actplvar startotype = ld_startotype targetotype = ld_targetotype relup_standard = ld_relup_standard relup_alternative = ld_relup_alternative * act_begda = ld_act_begda * act_endda = ld_act_endda * buffer_mode = ld_buffer_mode TABLES objects_to_read_for = it_objects_to_read_for relations_result = it_relations_result . " RHOMCO_GET_ALTREL_UP
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_actplvar  TYPE PLVAR ,
it_objects_to_read_for  TYPE STANDARD TABLE OF HRROOTOB ,
wa_objects_to_read_for  LIKE LINE OF it_objects_to_read_for,
ld_startotype  TYPE OTYPE ,
it_relations_result  TYPE STANDARD TABLE OF HRI1001 ,
wa_relations_result  LIKE LINE OF it_relations_result,
ld_targetotype  TYPE OTYPE ,
ld_relup_standard  TYPE SUBTYP ,
ld_relup_alternative  TYPE SUBTYP ,
ld_act_begda  TYPE BEGDATUM ,
ld_act_endda  TYPE ENDDATUM ,
ld_buffer_mode  TYPE FLAG .

ld_actplvar = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_objects_to_read_for to it_objects_to_read_for.
ld_startotype = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_relations_result to it_relations_result.
ld_targetotype = 'Check type of data required'.
ld_relup_standard = 'Check type of data required'.
ld_relup_alternative = 'Check type of data required'.
ld_act_begda = 'Check type of data required'.
ld_act_endda = 'Check type of data required'.
ld_buffer_mode = '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 RHOMCO_GET_ALTREL_UP or its description.