‎2008 Dec 06 7:13 AM
Hi all,
I am trying to release a WBS element by calling the BAPI's in the following sequence:
BAPI_PS_INITIALIZATION
BAPI_BUS2054_SET_STATUS
BAPI_PS_PRECOMMIT
BAPI_TRANSACTION_COMMIT
But BAPI_TRANSACTION_COMMIT gives me a dump saying that precommit
was not executed properly.
I went into debugging and saw that precommit_ok flag is set to 'N' but it should be set to 'Y'.
Please tell me why this is happening.
Thanks and regards,
Nishant
‎2008 Dec 06 11:29 AM
Did you analyze the ET_RETURN table parameter of [BAPI_PS_PRECOMMIT|https://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_ps_precommit&cat=sdn_all] (and of [BAPI_BUS2054_SET_STATUS|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_bus2054_set_status&adv=false&sortby=cm_rnd_rankvalue] of course), was there an Error or Abend message ?
Regards
‎2008 Dec 06 7:19 AM
‎2008 Dec 06 11:21 AM
hi
just have a look at this wiki
this would help you
regards
Aakash Banga
‎2008 Dec 06 11:29 AM
Did you analyze the ET_RETURN table parameter of [BAPI_PS_PRECOMMIT|https://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_ps_precommit&cat=sdn_all] (and of [BAPI_BUS2054_SET_STATUS|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_bus2054_set_status&adv=false&sortby=cm_rnd_rankvalue] of course), was there an Error or Abend message ?
Regards
‎2008 Dec 06 12:12 PM
Hi ,
precommit should be called only if set_status is successfull , please have a look at that ..
‎2008 Dec 06 12:36 PM
Hi all,
Thanks for your valuable asuggestions.
The problem was at the functional side.They had some validations in
substitutions and rules.I checked the return and result tables and eveything worked fine.
Thanks and Regards,
Nishant