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

BAPI commit issue

Former Member
0 Likes
914

I did my PS maintain work as follows:

call function bapi_ps_init

call function bapi_project_maintain

if success

bapi_ps_precommit

bapi_transaction_commit

else

bapi_transaction_rollback

I set a breakpoint at the line of if success,

1) when the bapi_project_maintain was done, before the commit work. The PD has already created.

2) I cand rollback the bapi transaction although the code processed the bapi_transaction_rollback.

5 REPLIES 5
Read only

Former Member
0 Likes
708

What are the return values for bapi_poject_maintain? Are you using WBS element hierarchy

Edited by: K.Manas on Dec 14, 2010 10:05 AM

Read only

0 Likes
708

Return is initial and no wbs hierarchy.

Just create a Project Definition.

Read only

0 Likes
708

This message was moderated.

Read only

Former Member
0 Likes
708

BAPI commits the changes based on the value passed to the structure I_METHOD_PROJECT. Call to rollback the transaction after the BAPI call will not work. See the BAPI documentation for Details.

Read only

tushar_shukla
Active Participant
0 Likes
708

This is probably an old BAPI which does not require explicit commit to save the changes the database .

Read the BAPI documentation carefully. To save the changes you need to pass the correct values to field METHOD of I_METHOD_PROJECT parameter .