2005 Nov 16 5:45 PM
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
2005 Nov 16 7:06 PM
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
2005 Nov 17 7:41 AM
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
2005 Nov 17 8:03 AM
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
2005 Nov 17 9:56 AM
I am going to use BAPI_PROJECT_MAINTAIN that i think that doesn´t need to launch bapi_ps_initialize.
Thanks