Application Development and Automation 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: 
Read only

Dump - COMMIT_IN_OS_EVENT

Former Member
0 Likes
3,574

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
3,057
" 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..)

Read only

0 Likes
3,057

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

Read only

0 Likes
3,057

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?

Read only

0 Likes
3,057

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.

Read only

0 Likes
3,057

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

Read only

0 Likes
3,057

Hi Raymond,

I have done enhancement in class - CL_OS_CA_COMMON &

method - IF_OS_CA_SERVICE~PREPARE_FOR_TOP_TRANSACTION

Read only

0 Likes
3,057

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

Read only

0 Likes
3,057

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

Read only

0 Likes
3,057

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')

Read only

0 Likes
3,057

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

Read only

0 Likes
3,057

No such message Raymond.

Read only

0 Likes
3,057

Thank you Matthew.

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

Read only

0 Likes
3,057

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