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

synchronism problem

Former Member
0 Likes
468

Hi!!

I am creating a project in PS, and i use bapi "project_def_create", but when i use bapi "BAPI_BUS2054_CREATE_MULTI", it doesn´t create my peps, but when i make debugging it, it runs, when i put a sentence wait it works too, i am trying to use the sm12 for seeing the blocked table for doing better, but i have to use BAPI_PS_INITIALIZATION, so it doesn´t delete the blocked table until i make the final commit, can anybody help me please?

Thanks in advance

4 REPLIES 4
Read only

Former Member
0 Likes
441

You might try using the BAPI_TRANSACTION_COMMIT function module called immediately after you execute the first function module. This should force the results of your function module into the database.

Note: I don't happen to have an SAP system available at the moment so the name of that FM might be off a little. If that's not the name exactly do a search in SE37 for BAPITRANSACTION* and you should find it.

Hope that helps.

Regards

Brent

Read only

0 Likes
441

To launch this bapi i have had to launch another bapi that is BAPI_PS_INITIALIZATION and if i make a commit work after my bapi but before BAPI_PS_PRECOMMIT i obtein a dump.

Thanks

Read only

Former Member
0 Likes
441

Put statement " SET UPDATE TASK LOCAL " , before the call to BAPI. Sometimes the locks are not released by update task which may cause the problem.

Cheers.

Sanjay

Read only

0 Likes
441

I am going to use BAPI_PROJECT_MAINTAIN that i think that doesn´t need to launch bapi_ps_initialize.

Thanks