‎2010 Dec 14 8:48 AM
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.
‎2010 Dec 14 9:01 AM
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
‎2010 Dec 14 9:25 AM
Return is initial and no wbs hierarchy.
Just create a Project Definition.
‎2010 Dec 14 9:59 AM
‎2010 Dec 14 10:34 AM
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.
‎2010 Dec 14 5:38 PM
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 .