Fonction SAP CBIH_FA30_FAL_FIND_BY_INJURY - EHS: Search for Injury/Illness Log Entries via Injuries

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 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_INJ CIHAL_INJ_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_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 injury data for personsaffected.
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_INJ (CCIHT_IPEVINJ)

    • Search parameters for the search via injuries. The search parametersare linked with AND. The search is possible using the followingparameters:
      Main injury (MAININJFLG)
      Old injury (OLDINJFLG)
      Body part (BODYPART)
      Description of body part (BODYPARTDESC)
      Injury type (INJURY)
      Description of injury type (INJURYDESC)
      • I_VALDAT (RCGUADM-VALTO)

      • Only data valid on this date is read.
        • 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_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_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_RESULT_TAB (RCGSTDRECN)

              • All record numbers found in the injury/illness log are written to thisresult table.
                • E_RECORDS_FOUND (SY-TABIX)

                • Returns the number of record numbers found in E_RESULT_TAB.

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