‎2006 Oct 10 5:35 AM
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
‎2006 Oct 12 8:24 PM
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
‎2006 Oct 12 8:24 PM
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
‎2006 Oct 12 8:43 PM
You have to call BAPI_TRANSACTION_COMMIT once for each call to BAPI_0050_CREATE.
Rob
‎2006 Oct 12 8:55 PM
Hi,
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = X_RETURN .
Thanks,
Ramakrishna