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

Performance problem with BAPI_0050_CREATE

Former Member
0 Likes
765

Hi,

I encounter a problem which i do not know how to solve it. I am calling BAPI_0050_CREATE function module to create the document for budget. In the internal table, i have 5 record, for each of the record in the internal table, i will call this function module once. after executing the program, only the first record has the document being created successfully but the rest of the record will not be able to create. after calling the BAPI_0050_CREATE function module, i also call the BAPI_TRANSACTION_COMMIT function module.

Is there anyone who can suggest me a solution?

Thanks,

Xiu Lian

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
562

What error/return message are you getting for the remaining four records? You may want to pass parameter WAIT = X when your call the BAPI COMMIT function module in case you have some kind of lock contentions from the previous call.

Thanks,

Sagar

3 REPLIES 3
Read only

Former Member
0 Likes
563

What error/return message are you getting for the remaining four records? You may want to pass parameter WAIT = X when your call the BAPI COMMIT function module in case you have some kind of lock contentions from the previous call.

Thanks,

Sagar

Read only

Former Member
0 Likes
562

You have to call BAPI_TRANSACTION_COMMIT once for each call to BAPI_0050_CREATE.

Rob

Read only

venkata_ramisetti
Active Contributor
0 Likes
562

Hi,

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'

IMPORTING

RETURN = X_RETURN .

Thanks,

Ramakrishna