SAP Function Modules

ISH_OM_FAC_DATA_GET SAP Function module - IS-H: Get Facility Data for Building Unit







ISH_OM_FAC_DATA_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_FAC_DATA_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_FAC_DATA_GET - ISH OM FAC DATA GET





CALL FUNCTION 'ISH_OM_FAC_DATA_GET' "IS-H: Get Facility Data for Building Unit
* EXPORTING
*   i_objid =                   " hrobjid       Object ID
*   it_objid =                  " hrobject_t    Table Type PLVAR, OTYPE; OBJID
*   i_bauid =                   " bauid         IS-H: Identification of Building Unit
*   it_bauid =                  " ish_t_ishid   Table Type for ISHIDs
*   i_begdt =                   " sydatum       Field of Type DATS
*   i_enddt =                   " sydatum       Field of Type DATS
  IMPORTING
    et_p6092 =                  " ish_t_p6092
    et_tn11a =                  " ish_t_tn11a   ISH-OM: Table Type for TN11A
  EXCEPTIONS
    NOTHING_FOUND = 1           "               No data found for imported building IDs
    INTERNAL_ERROR = 2          "               Internal error while fetching data for imported building IDs
    .  "  ISH_OM_FAC_DATA_GET

ABAP code example for Function Module ISH_OM_FAC_DATA_GET





The ABAP code below is a full code listing to execute function module ISH_OM_FAC_DATA_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_p6092  TYPE ISH_T_P6092 ,
ld_et_tn11a  TYPE ISH_T_TN11A .

DATA(ld_i_objid) = 'Check type of data required'.
DATA(ld_it_objid) = 'Check type of data required'.
DATA(ld_i_bauid) = 'Check type of data required'.
DATA(ld_it_bauid) = 'Check type of data required'.
DATA(ld_i_begdt) = '20210129'.
DATA(ld_i_enddt) = '20210129'. . CALL FUNCTION 'ISH_OM_FAC_DATA_GET' * EXPORTING * i_objid = ld_i_objid * it_objid = ld_it_objid * i_bauid = ld_i_bauid * it_bauid = ld_it_bauid * i_begdt = ld_i_begdt * i_enddt = ld_i_enddt IMPORTING et_p6092 = ld_et_p6092 et_tn11a = ld_et_tn11a EXCEPTIONS NOTHING_FOUND = 1 INTERNAL_ERROR = 2 . " ISH_OM_FAC_DATA_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_p6092  TYPE ISH_T_P6092 ,
ld_i_objid  TYPE HROBJID ,
ld_et_tn11a  TYPE ISH_T_TN11A ,
ld_it_objid  TYPE HROBJECT_T ,
ld_i_bauid  TYPE BAUID ,
ld_it_bauid  TYPE ISH_T_ISHID ,
ld_i_begdt  TYPE SYDATUM ,
ld_i_enddt  TYPE SYDATUM .

ld_i_objid = '20210129'.
ld_it_objid = '20210129'.
ld_i_bauid = '20210129'.
ld_it_bauid = '20210129'.
ld_i_begdt = '20210129'.
ld_i_enddt = '20210129'.

SAP Documentation for FM ISH_OM_FAC_DATA_GET


This function module is used to read facility data for building unit information analogous to the IS-H database table TN11A. ...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_FAC_DATA_GET or its description.