You're using business object I_BATCHTP_2 to read, create, and update batches, but when trying to execute the obeject a dump occurs:
- Runtime Error: RAISE_SHORTDUMP
Application Component: LO-BM
SAP S/4HANA Cloud.
Standard system behavior.
Write access to the business object I_BatchTP_2 must not be mixed in the same transaction with calls to conventional function modules that also change batch data.
This also applies to the business object (BO) I_MaterialDocumentTP which cannot be used in the same transaction as I_BatchTP_2. The reason is that I_MaterialDocumentRecordTP is also calling some conventional function modules internally.
To be able to use both business objects, the calls have to be split into different transactions.
You can see more details in the following link from API Hub:
SAP Help - Objects Released for Developer Extensibility in Batch Management
Batch, API, service, dump, error, I_BATCHTP_2, API business hub, I_MaterialDocumentTP, characteristics, classification data. , KBA , LO-BM-2CL , Batch Management (Public Cloud) , LO-BM , Batch Management , LO-BM-FIO-2CL , Fiori UI for Batch Management (Public Cloud) , Problem