Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dump - COMMIT_IN_OS_EVENT

Former Member
0 Kudos

Hi,

I have done enhancement to re trigger release strategy for PO whenever Quantity is decreased.

Our system have recently got upgraded to EHP7.

Before upgrade every this was working fine, but after upgrade it is giving dump - "COMMIT_IN_OS_EVENT".

I have created Z of BAPI_PO_RESET_RELEASE. In this BAPI, on FM is called -

ME_PURCHASE_DOCUMENT_DATA_SAVE.

In this FM, one perform is there - PERFORM buchen(sapmm06e).

In this Perform, COMMIT WORK is giving dump.

Can you please help me on this.

You can refer screenshot for reference.

Thanks,

Nikesh commit.jpgdump.jpgfm.jpg

13 REPLIES 13

raymond_giuseppi
Active Contributor
0 Kudos
" I have created Z of BAPI_PO_RESET_RELEASE. In this BAPI, on FM is called 

Your Z-FM is not a BAPI. Does it wraps a transaction, analyze your z-code.

Hints: You could try to either use the I_NO_COMMIT parameter of the called FM, call it in another LUW, call the standard BAPI. (or check current status of application to set this parameter: already in process of commit don't set it, already in update task raise dump solution no longer valid, etc..)

0 Kudos

Hi Raymond.

Thank you for the quick reply.

Yes that Z fm is not an BAPI but the whole code inside this Z FM is copied from BAPI except that authority check block.

I didn't get your hint.

Can you please elaborate it.

Thanks,

Nikesh

0 Kudos

Did you apply changes provided by SAP in the original BAPI during the upgrade, else could you consider using some enhancement spots to add your own authority-checks or to add those in simple wrapper of the BAPI?

0 Kudos

Dear Raymond,

This time I m using standard BAPI instead of Z.

But still same dump is coming.

But if I m running the BAPI separately in SE37, then it it not giving dump and PO release strategy got reset successfully.

0 Kudos

Where are you calling the BAPI from (some BAdI method?)

0 Kudos

Hi Raymond,

I have done enhancement in class - CL_OS_CA_COMMON &

method - IF_OS_CA_SERVICE~PREPARE_FOR_TOP_TRANSACTION

0 Kudos

Could you execute the BAPI and the BAPI_TRANSACTION_COMMIT in DESTINATION 'NONE' followed by an explicit call of RFC_CONNECTION CLOSE?

0 Kudos

I used this, but my PO release strategy does not reset.

0 Kudos

Did you get some messages in RETURN (not always 'E' type, but can be a 'S' or 'W' message such as 'not released because xxx')

0 Kudos

Copying SAP standard to a Z object is very bad practice and can cause a lot of problems, especially during upgrades. Please reconsider whether you can achieve your requirements differently. E.g. by performing an auth check before calling the BAPI. Or wrapping the BAPI in a Z fn module. Or enhancing the BAPI at an explicit or implicit enhancement point. Or changing the standard. All of these are preferable to copying the standard Z object.

Matt Billingham

SAP Community Moderator

0 Kudos

No such message Raymond.

0 Kudos

Thank you Matthew.

I have call standard BAPI now , but it is giving same dump at same place.

0 Kudos

Then try to wrap call of BAPI and its commit in a RFC FM executed IN BACKGROUND UNIT.