cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ERP - ECC: BAPI_0050_CREATE asynchronous execution

08-21-2026 12:55 PM
hadar_toledano Explorer
10 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

Hi, just wanted to share an issue I once dealt with, regarding this BAPI function.

I was working on a project in which a number of users could spend certain amounts of money from a certain budget, on the same time.

Screen 1: check availability of money in budget.
Call BAPI_0050_CREATE in test run mode.
Screen 2: spend money from budget. Call BAPI_0050_CREATE no test run, in background.

Problem was:
User A and user B checked the availability in screen 1.
A different session for each user.
Both received a success message.
However, when both of them spent the money on the same time (a difference of seconds), one of the BAPIs failed.

Why did it fail?
Because each user check availability in a single moment in time.
At the moment, there was enough money in the budget for only one of them.
But, because they tested it on different sessions, the BAPI didn’t consider their asynchronous executions.

FIX Web Dynpros:
Call function module FMKU_ENQUEUE to lock the budget from the current ECC session.
And check budget lock state in other sessions.

  • I don’t really have a good solution for this with ODATA requests, since no session is kept alive after code execution.

0 Likes

Accepted Solutions (0)

Answers (0)