The BAPI BAPI_BUS1240_CREATE used to create incidents in EHS module is no longer available in S/4 HANA system. Could you please let me know if there is any alternative function module to create the Incidents.
There is an advanced module available for Component Extension SAP EHSM Incident Management to handle incidents in later version of SAP EHS.
please check the current supported modules, SAP EHS Industrial Hygiene and Safety is not supported in S4HANA. Recommendation would be to align with Later versions by doing adjustment/ migration. Refer SAP Market place Notes.
Thanks and Regards
This BAPI is for the old / classic EHS Incident / Accident application. This has been upgraded to less and therefore is not available on S4/HANA Systems!
You would need to convert this functionality to the new module called Component extension for SAP Environment, Health, and Safety Management (SAP EHS Management).