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: 

Just clarification required in BAPI Transaction Commit

Former Member
0 Kudos

Hi All,

I can try this in DEV but just want to know whether it is possible before i move it to QA. In CRM system i see a BAPI that help us to save one business partner(BP) at a time. As of now there is no BAPI exist to save multiple partners at a stretch.

Issue:

If i commit after every BP then it is taking hours to complete my changes. So my question is!

what happens if i update the values for all BP and last if commit?

Does this work to save all BP?

Regards,

Gupta

1 ACCEPTED SOLUTION

former_member197622
Participant
0 Kudos

Hi Nagaraja

if all the BP where submited in the same LUW then the last BAPI_COMMIT will commit all.

Regards

MC

4 REPLIES 4

former_member197622
Participant
0 Kudos

Hi Nagaraja

if all the BP where submited in the same LUW then the last BAPI_COMMIT will commit all.

Regards

MC

0 Kudos

Thanks, i have tested as well in DEV it worked

0 Kudos

Hi MC,

I just have a question what do you mean by this ' If all the BP where submited in the same LUW" could you please explain a bit

Regards,

Gupta

0 Kudos

Logical unit of work, is how the sap memory works, if you submit a lot of BPs in the same space of memory and then you use a insert, update or delete in the database and then you commit, that commit will save all the changes that you have done

since you are using a single program to manage all the BPs they are in the same space unless lets say you add STARTING NEW TASK 'XXX' to your BAPI, that bapi will open another LUW, another process of work, and then you use the COMMIT in the program, that commit will not work over the BAPI because is in another process(another space of memory, another LUW).

Regards

MC