Ansicht
Dokumentation
CBIH_IA30_IAL_DELETE - EHS: Delete Incident/Accident Log Entries
TXBHW - Original Tax Base Amount in Local Currency CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
General
This function module is part of the Application Programming Interface (API) of the EH&S component Industrial Hygiene and Safety.
It is used to delete a group of incident/accident log entries or a group of subobjects of incident/accident log entries. Here, delete means that the Delete indicator (DELFLG field) for the objects is set. The objects are not deleted physically.
This module only sets the deletion indicator within the buffer data. Only when the function module CBIH_IA30_IAL_SAVE_TO_DB is called and a COMMIT WORK is subsequently transmitted does the system definitively update the modifications in the database.
Note
Objects that are stored in SAP-internal database tables (characteristic values and long texts, for example) cannot be deleted by this module.
Interface
Input
The calling program can use indicators to specify which subobjects of an incident/accident log entry are to be deleted. These indicators are arranged according to the following logical hierarchy:
Indicators
| Corresponding
| table parameters
-------------------------------------|---------------------------
|
I_FLG_HEADER
| X_API_HEADER_TAB
|
|
|--I_FLG_ACTION
| X_API_ACTION_TAB
|--I_FLG_IALVAL
| X_API_IALVAL_TAB
|--I_FLG_INVPERS
| X_API_INVPERSONS_TAB
| |
|
| |--I_FLG_AFFPERS
| X_API_AFFPERSDAT_TAB
| |
|
| |--I_FLG_AFPVAL | X_API_AFPVAL_TAB
|
|--I_FLG_INJURIES | X_API_INJURIES_TAB
|
|
|--I_FLG_FREETEXT
| X_API_FREETEXT_TAB
The calling program first determines which subobjects are to be deleted by setting the corresponding Boolean parameters to TRUE ("TRUE" and "FALSE" are defined as constants in the Include CBUI09). Then the calling program determines the corresponding table parameters with the subobjects to be deleted. To do this, the table parameters must be filled as follows:
- The RECN field must be filled in each row.
- Below the incident/accident log header level, the RECNROOT field must be filled in each row.
- Below the incident/accident log header level, the foreign key fields for the higher-level subobjects must be filled.
The function module independently determines the dependent subobjects for each subobject to be deleted and also deletes them. Furthermore, all locks required are set.
It is not advisable to fill a table and a lower-level table (in accordance with the above hierarchy) at the same time, since the function module deletes the contents of the lower-level table and refills it with the subobjects that depend on the contents of the higher-level table.
Output
Boolean parameters indicate whether errors occurred when the subobjects were being processed. The following errors can occur:
- Lock error: E_FLG_LOCKFAIL = TRUE
- Processing error: E_FLG_ERROR = TRUE
- Processing warning: E_FLG_WARNING = TRUE
Flow Logic
- Input data is checked.
- Locks are transmitted and input data is completed in such a way that complete subobjects of incident/accident log entries are always deleted. (The data is read using CBIH_IA30_IAL_READ.)
- Delete indicators are set using the BUF_WRITE functions of the buffer layer (with CBIH_FA42_IAL_BUF_WRITE, for example).
Possible Exceptions
- NO_OBJECT_SPECIFIED: No objects were specified for deleting
- PARAMETER_ERROR: Table for specified object missing
- INTERNAL_ERROR: Internal processing error
- CONVMODE_SET_FAILED: Character conversion error
Parameters
E_FLG_ERRORE_FLG_LOCKFAIL
E_FLG_WARNING
I_ADDINF
I_FLG_ABSENCES
I_FLG_ACTION
I_FLG_AFFPERS
I_FLG_AFPVAL
I_FLG_CHECK_ONLY
I_FLG_FILL_EXTERROR
I_FLG_FREETEXT
I_FLG_HEADER
I_FLG_IALVAL
I_FLG_INJURIES
I_FLG_INVPERS
I_FLG_RESTRICTIONS
I_FLG_ROOTCAUSE
X_API_ABSENCES_TAB
X_API_ACTION_TAB
X_API_AFFPERSDAT_TAB
X_API_AFPVAL_TAB
X_API_FREETEXT_TAB
X_API_HEADER_TAB
X_API_IALVAL_TAB
X_API_INJURIES_TAB
X_API_INVPERSONS_TAB
X_API_RESTRICTIONS_TAB
X_API_ROOTCAUSE_TAB
Exceptions
CONVMODE_SET_FAILEDINTERNAL_ERROR
NO_OBJECT_SPECIFIED
PARAMETER_ERROR
Function Group
CBIH_IA30TXBHW - Original Tax Base Amount in Local Currency ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 8921 Date: 20240523 Time: 113708 sap01-206 ( 92 ms )