Fonction SAP CBIH_ER30_ER_FIND_BY_NEXTRA - EHS: Find Risk Assessment Entries Using Next Date

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_DATERANGE RCGDATERANGE u 16 X Time period for historical search
I_NEXTRAREC CCIHS_NRADSEL u 17 Search criteria for date of next risk assessment
I_SEARCHMODE CCIHS_WASEL-SEARCHMODE C 1 ESP1_SEARCHMODE-WEAK X Search mode for historical search
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 Number of exposure log entries found

Paramètre Reférence Long. Facultatif Description
E_KEY_TAB CIHEX_ERFAPI_KEY_TAB_TYPE 0 Record numbers of log entries found
I_RESTRICTION_TAB CIHEX_ERFAPI_KEY_TAB_TYPE 0 X Restriction using record key

Exception Description
INTERNAL_ERROR Internal program error

Functionality
This function module is used to determine risk assessment recordnumbers. To do this, a search is run using the parameters entered bythe user for the date of the next risk assessment.
The function module has the following parameters:

  • I_NEXTRAREC (CCIHS_NRADSEL)

  • Search parameter for the next date. More search parameters are linkedwith an AND logic operation.
    • I_SEARCHMODE (CCIHS_WASEL-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_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.
          • E_RECORDS_FOUND (SY-TABIX)

          • Returns the number of risk assessment keys found.
            • I_RESTRICTION_TAB (CIHEX_ERFAPI_KEY_TAB_TYPE)

            • Restriction to the search by predefined risk assessment record numbers.If no risk assessment record numbers are passed, the search is run onall records of the risk assessments.
              • E_KEY_TAB (CIHEX_ERFAPI_KEY_TAB_TYPE)

              • All risk assessment record numbers found are entered in this resulttable.

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

                Further information

                • Type group CIH01

                • Type group CIHEX

                • Type group CIHER