Fonction SAP CBIH_FA30_FAL_FIND_BY_HEAD - EHS: Search for Injury/Illness Log Entries via Header Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_DATERANGE RCGDATERANGE u 16 X Time period for historical search
I_FLG_FILL_EXTERROR ESP1_BOOLEAN 0 ESP1_TRUE X Indicator: Fill extended error information table
I_SEARCHMODE CCIHS_FASEL-SEARCHMODE C 1 ESP1_SEARCHMODE-WEAK X Search mode for historical search
I_SELCRIT_FALH CIHAL_FAL_APIFIND_WA_TYPE 0 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_RESULT_TAB CIHAL_APIFIND_KEY_TAB_TYPE 0 Record numbers of injury/illness log entries found
I_IAL_TAB CIHAL_KEYTAB_TAB_TYPE 0 X List of incident/accident log entries for search
I_RESTRICTION_TAB CIHAL_APIFIND_KEY_TAB_TYPE 0 X Search area: Restriction via record numbers
I_WKA_TAB CIHWA_WAFAPI_KEY_TAB_TYPE 0 X List of work area keys for search

Exception Description
INTERNAL_ERROR Internal program/system error

Functionality
This function module determines all injury/illness log entries (recordnumbers) that fulfill the specified search criteria for theinjury/illness log header data table (CCIHT_FAL).
The function module has the following parameters:

  • I_SEARCHMODE (CCIHS_FASEL-SEARCHMODE)

  • Search mode for the historical search, default value is 'w' = weak.
    • I_VALDAT (RCGUADM-VALTO)

    • Only data valid on this date is read.
      • I_SELCRIT_FALH (CIHAL_FAL_APIFIND_WA_TYPE)

      • A data record of the injury/illness log header with search parameters(extended by date intervals). Several search parameters are linked withAND. The search is possible using the following parameters:
        Injury/illness log entry (FAID)
        Injury/illness log entry type (FATYPE)
        Plant assignment (FAPLANT)
        Single object status (FASTATUS)
        Entry location for injury/illness log entries (FALOC)
        Date when aid was given; exact or over period (FADAT, FADATFROM,FADATTO)
        Time and date of aid given (FATIME)
        First-aider (FAHELPER)
        First-aider (external) (FAHELPERFLG)
        Event date; exact or over period (EVDAT, EVDATFROM, EVDATTO)
        Event time (EVTIME)
        Accident work area (RECNTWAH)
        Accident location (ACLOC)
        Description of accident location (ACLOCDESC)
        Created on; exact or over period (CRDAT, CRDATFROM, CRDATTO)
        Created by (CRNAM)
        Changed on; exact or over period (UPDDAT, UPDDATFROM, UPDDATTO)
        Last changed by (UPDNAM)
        Time and date of ceasing to work (OFFJOBDATFROM, OFFJOBDATTO)
        • I_FLG_FILL_EXTERROR (ESP1_BOOLEAN)

        • If this indicator has the value TRUE, the function module fills theextended error information table. The default setting for the indicatoris TRUE.
          • 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_WKA_TAB (RCGSTDRECN)

            • A list of work area keys can be passed. This is used to furtherrestrict the injury/illness log record numbers.
              • I_IAL_TAB (RCGSTDRECN)

              • A list of incident/accident log entries can be passed. This is used tofurther restrict the injury/illness log record numbers.
                • 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.
                  • E_RECORDS_FOUND (SY-TABIX)

                  • Returns the number of record numbers found in E_RESULT_TAB.
                    • E_RESULT_TAB (RCGSTDRECN)

                    • All record numbers found in the injury/illness log are written to thisresult table.

                      Notes
                      The search for a discrete "valid from" or "valid to" date within theheader record I_SELCRIT_FALH 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.