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_PS_PRECOMMIT not working properly

Former Member
0 Likes
3,474

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

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,524

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,524

Hi,

Refer to this Link...

Read only

Former Member
0 Likes
1,524

hi

just have a look at this wiki

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abap%252bprogram%252bto%252bupload%252bw...

this would help you

regards

Aakash Banga

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,525

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

Read only

Former Member
0 Likes
1,524

Hi ,

precommit should be called only if set_status is successfull , please have a look at that ..

Read only

0 Likes
1,524

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