Fonction SAP CBIH_FA30_FAL_FIND_BY_IP - EHS: Search for Injury/Illness Log Entries via Persons Involved

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_DATERANGE RCGDATERANGE u 16 X Time period for historical search
I_SEARCHMODE CCIHS_WASEL-SEARCHMODE C 1 ESP1_SEARCHMODE-WEAK X Search mode for historical search
I_SELCRIT_IP CCIHT_IP u 276 Selection criteria
I_VALDAT RCGUADM-VALTO D 8 SY-DATUM X Key date for validity

Paramètre Reférence Type Long. Description
E_RECORDS_FOUND SYST-TABIX I 4 No. of entries found

Paramètre Reférence Long. Facultatif Description
E_KEY_TAB CIHAL_APIFIND_KEY_TAB_TYPE 0 Record numbers of injury/illness log entries found
I_PERSON_TAB CIHAL_PERSON_TAB_TYPE 0 X List of personnel numbers for search
I_RESTRICTION_TAB CIHAL_APIFIND_KEY_TAB_TYPE 0 X Restriction via record numbers

Exception Description
INTERNAL_ERROR Internal program/system error

Functionality
This function module is used to search for injury/illness log entriesvia data for personsinvolved.
The search is executed using the parameters entered by the user viaCCIHT_IP.
The function module has the following parameters:

  • I_SEARCHMODE (CCIHS_FASEL-SEARCHMODE)

  • Search mode for the historical search, default value is 'w' = weak.
    • I_SELCRIT_IP (CCIHT_IP)

    • A data record of the table for persons involved (CCIHT_IP) with searchparameters. The search parameters are linked with AND. The search ispossible using the following parameters:
      Reference object (REFOBJ)
      Role of person involved (IPTYPE)
      Person involved (IPPERS)
      External/internal person involved (IPPFLAG)
      • I_VALDAT (RCGUADM-VALTO)

      • Only data valid on this date is read. The parameter is only taken intoaccount if I_DATERANGE is initia.
        • I_DATERANGE (RCGDATERANGE)

        • If I_DATERANGE is filled, the historical search is run.I_DATERANGE contains the time period for the historical search.When searching with I_DATERANGE, only the search mode 'w' = weakis permitted.
          • I_RESTRICTION_TAB (RCGSTDRECN)

          • Restriction to the search by predefined record numbers. If no recordnumbers are passed, the search is run on all records of theinjury/illness log header.
            • I_PERSON_TAB (CIHAL_PERSON_TAB_TYPE)

            • Restriction to the search using a predefined list of personnel numbers.If no numbers are passed, the search is run on all records.
              • E_KEY_TAB (RCGSTDRECN)

              • All injury/illness log record numbers found are written to this resulttable.
                • E_RECORDS_FOUND (SY-TABIX)

                • Returns the number of record numbers found in E_KEY_TAB.

                  Notes
                  The search for a discrete "valid from" or "valid to" date within theheader record I_SELCRIT_IP is not supported. These values areused for selection in conjunction with the parameters I_VALDATand I_DATERANGE.
                  The function module does not support a search via the change number.Before you call the function, the "valid from" date of the changenumber must be set in the parameter I_VALDAT.

562708Performance optimization in search and read modules