cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Delete EHSM Incidents?

Former Member
0 Likes
524

Hello,

I am looking for standard BAPI/Program/Function Module/Tcode to delete SAP EHSM Incidents,  so far I have found Tcode CBIH82 to do some action about incident but not sure whether I can delete the incidents and related data completely from Tables by using this tcode.  Also found BAPI  BAPI_BUS1240_DELETE and not sure this is going to do the job.

Appreciate if anyone can direct me for achieving this , Thanks.

Regards

Mani

Mani Nagarajan

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member191252
Active Participant
0 Likes

Hi Manikandan Naarajan,

BAPI_BUS1240_DELETE:


This method enables you to delete a set of incident/accident log entries or a set of subobjects of incident/accident log entries. Deletion means that the deletion indicator (DELFLG field) of the objects is set. Physical deletion is not performed.
If multiple restrictions are deleted, you can use the FLG_RESTRICTIONS_OH indicator to also delete the assigned restrictions in occupational health. The occupational health restrictions are then physically deleted from the database. The method calls the EH S Application Programming Interface (
API) of the Industrial Hygiene and Safety EHS component.

More details from other source:

http://www.se80.co.uk/sapfms/b/bapi/bapi_bus1240_delete.htm

__