We are facing an issue in backflush posting and Auto GR posting upon the confirmation of a production order. We are using a BAPI_PRODORDCONF_CREATE_HDR to do the production order confirmation. BAPI_TRANSACTION_COMMIT is called after the above FM call for technical reasons to do the commit. Here, as per the configuration set up in the system, a backflush (261 mvt) and Auto GR (101 mvt) will be triggered in the background.
Config in the system: Backflush indicator is set at material master level and Auto GR is enabled at control key level of the work center. In OPKC, Backflush and Auto GR is set to immediately online.
When the program comes across the commit statement inside BAPI_TRANSACTION_COMMIT, only 101 posting happens and 261 posting doesn’t happen. And we see a dump for the same in ST22.
A corresponding SM58 entry is also available with the same error.
Is there a way to get rid of these Dumps and the test freshup screen that it is trying to throw from the BAPI?
We had a similar configuration set up and with the same BAPI in one more client of ours. Everything seems to be working fine in the other system. Only difference is, the system with issue is in EHP5 version and the one where everything works fine is EHP7 version.