SAP Function Modules

ISH_OM_ADR_GET SAP Function module - IS-H: Get Organizational Unit Information







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

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


Pattern for FM ISH_OM_ADR_GET - ISH OM ADR GET





CALL FUNCTION 'ISH_OM_ADR_GET' "IS-H: Get Organizational Unit Information
* EXPORTING
*   i_orgid =                   " ish_om_id     ID of Mapping Between IS-H and OM
*   i_bauid =                   " ish_om_id     ID of Mapping Between IS-H and OM
*   i_object =                  " hrobject      Object
*   i_begdt =                   " sydatum       Field of Type DATS
*   i_enddt =                   " sydatum       Field of Type DATS
*   i_read_db =                 " ish_on_off    IS-H: Boolean Data Type for ON (= "X") and OFF (= " ")
  IMPORTING
    et_p1028 =                  " ish_t_p1028   Table Type for Infotype 1028
    et_p1032 =                  " ish_t_p1032   Table Type for Infotype 1032
    et_p6083_exp =              " ish_t_p6083_exp  Table Type for HRP6083
    et_nadr =                   " ish_t_nadr    ISH-OM: Table Type for NADR
    et_nadr2 =                  " ish_t_nadr2   ISH-OM: Table Type for NADR2
  EXCEPTIONS
    NOTHING_FOUND = 1           "               No data found for imported org. IDs
    INTERNAL_ERROR = 2          "               Internal error while fetching data for imported org. IDs
    .  "  ISH_OM_ADR_GET

ABAP code example for Function Module ISH_OM_ADR_GET





The ABAP code below is a full code listing to execute function module ISH_OM_ADR_GET 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_et_p1028  TYPE ISH_T_P1028 ,
ld_et_p1032  TYPE ISH_T_P1032 ,
ld_et_p6083_exp  TYPE ISH_T_P6083_EXP ,
ld_et_nadr  TYPE ISH_T_NADR ,
ld_et_nadr2  TYPE ISH_T_NADR2 .

DATA(ld_i_orgid) = 'Check type of data required'.
DATA(ld_i_bauid) = 'Check type of data required'.
DATA(ld_i_object) = 'Check type of data required'.
DATA(ld_i_begdt) = '20210129'.
DATA(ld_i_enddt) = '20210129'.
DATA(ld_i_read_db) = '20210129'. . CALL FUNCTION 'ISH_OM_ADR_GET' * EXPORTING * i_orgid = ld_i_orgid * i_bauid = ld_i_bauid * i_object = ld_i_object * i_begdt = ld_i_begdt * i_enddt = ld_i_enddt * i_read_db = ld_i_read_db IMPORTING et_p1028 = ld_et_p1028 et_p1032 = ld_et_p1032 et_p6083_exp = ld_et_p6083_exp et_nadr = ld_et_nadr et_nadr2 = ld_et_nadr2 EXCEPTIONS NOTHING_FOUND = 1 INTERNAL_ERROR = 2 . " ISH_OM_ADR_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_et_p1028  TYPE ISH_T_P1028 ,
ld_i_orgid  TYPE ISH_OM_ID ,
ld_et_p1032  TYPE ISH_T_P1032 ,
ld_i_bauid  TYPE ISH_OM_ID ,
ld_et_p6083_exp  TYPE ISH_T_P6083_EXP ,
ld_i_object  TYPE HROBJECT ,
ld_et_nadr  TYPE ISH_T_NADR ,
ld_i_begdt  TYPE SYDATUM ,
ld_et_nadr2  TYPE ISH_T_NADR2 ,
ld_i_enddt  TYPE SYDATUM ,
ld_i_read_db  TYPE ISH_ON_OFF .

ld_i_orgid = '20210129'.
ld_i_bauid = '20210129'.
ld_i_object = '20210129'.
ld_i_begdt = '20210129'.
ld_i_enddt = '20210129'.
ld_i_read_db = '20210129'.

SAP Documentation for FM ISH_OM_ADR_GET


This function module is used to read infotypes analogous to the IS-H database tables NADR and NADR2. ...See here for full SAP fm documentation






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