Hi everyone,
I am looking for a BAPI, Function Module... that can be used to create or set a trigger point for an operation, with the same behavior as when maintaining the trigger point manually in CA02.
The requirement is to develop a custom API (segw) that should be able to set the trigger point for a specific operation in a routing .
I have searched for relevant BAPIs/function modules but haven't found a clear released fm that performs the same operation as CA02.
Does anyone know of a standard BAPI, FM, .... that can be used to create/set an operation trigger point programmatically?
I would also appreciate any guidance on which standard SAP classes/function modules are used internally by CA02 for maintaining trigger points, or the recommended approach for implementing this without directly updating the database tables.
Thank you
Request clarification before answering.
Hi,
Short answer: there is no BAPI, released function module or API that creates or changes a trigger point on a routing operation. I checked the standard objects on an S/4HANA 2020 system and on a newer release (read-only). The only way that runs exactly the CA02 logic is a batch input of CA02 itself.
Where trigger points are stored
What CA02 uses internally
What I checked and why it does not help
Recommended approach
In your SEGW DPC method, record CA02 in SHDB and run it with CALL TRANSACTION 'CA02' USING lt_bdcdata MODE 'N' UPDATE 'S' MESSAGES INTO lt_messages, then map the messages to the OData response. This goes through MST_EDIT, the buffer and CN_VB_MLST_POST with all checks of the transaction. If you work with change numbers, fill the change number on the CA02 initial screen, since MLST keeps AENNR and DATUV. How the change number behaves for trigger points depends on customizing (ECN_MST), which I did not check.
You are right to avoid writing MLST directly: that skips the number range, the change documents and the update task.
Two caveats: a batch input depends on the screen layout, so test it after upgrades, and I did not test the CALL TRANSACTION from inside a Gateway service, only read the source.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.