Ansicht
Dokumentation

CBIH_ER30_ER_FIND_BY_HEAD - EHS: Find Risk Assessment Entries Using Header Data

CBIH_ER30_ER_FIND_BY_HEAD - EHS: Find Risk Assessment Entries Using Header Data

BAL_S_LOG - Application Log: Log header data   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is used to determine risk assessment record numbers. To do this, a search is run using the parameters entered by the user for the risk assessment header.

The function module has the following parameters:

  • I_ERHREC (CIHEX_ERHAPI_WA_TYPE)
A data record of the risk assessment header with search parameters. More search parameters are linked with 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' = weak is 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 on all records of the risk assessment header.
  • I_ERSTATUS_TAB (CIHEX_EXPREG_STATUS_TAB_TYPE)
This table contains the status of risk assessments. If entries are included in this table, the search is restricted to those risk assessments that have a status listed in this table.
  • I_WKA_TAB (CIHWA_WAFAPI_KEY_TAB_TYPE)
Restriction to the search by predefined work area record numbers. If no work area record numbers are passed, the search is run on all records of the risk assessment header.
  • E_KEY_TAB (CIHEX_ERFAPI_KEY_TAB_TYPE)
All risk assessment record numbers found are entered in this result table.

Notes

The search for a discrete "valid from" or "valid to" date within the header record I_ERHREC is not supported. These values are used for selection in conjunction with the parameters I_VALDAT and 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 change number must be set in the parameter I_VALDAT.

Further information

  • Type group CIH01
  • Type group CIHEX
  • Type group CIHER




Parameters

E_KEY_TAB
E_RECORDS_FOUND
I_DATERANGE
I_ERHREC
I_ERSTATUS_TAB
I_RESTRICTION_TAB
I_SEARCHMODE
I_VALDAT
I_WKA_TAB

Exceptions

INTERNAL_ERROR

Function Group

CBIH_ER30

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 3345 Date: 20240523 Time: 094823     sap01-206 ( 46 ms )