07-06-2009 11:01 AM
hi
A problem has occured in BAPI shows the person id who are using that BAP 'BAPI_MATERIAL_SAVEDATA'
we didi'nt have any session to lock the material.
when we run the program another material gets lock
need suggestion to sorrt out this problem ...
07-06-2009 11:41 AM
hi Alex
try to use some BAPI transaction commit and rollbak fuction s given below or
you can choose the enque and deque fucntions for your BAPi
BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK
if the problem still persists you can refer the below link as refernce and can solve your problem
https://wiki.sdn.sap.com/wiki/display/Snippets/Tutorial%2CMM01UploadusingBAPI
07-06-2009 11:05 AM
07-06-2009 11:10 AM
Hi Alex,
How are you running the BAPI? is it in a custom program? If yes, try putting after your BAPI this BAPI:
BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK.
Hope this helps.
Best Regards,
Benedict
07-06-2009 11:15 AM
Hi Alex,
Please check whether you are using BAPI_TRANSACTION_COMMIT after calling BAPI_MATERIAL_SAVEDATA.
If the problem still persists, use the ENQUE and DEQUE func. modules before & after calling the BAP respectively.
U can look into the following modules:
MM_ENQUEUE_DOCUMENT
Hope it helps
Regards
Arnab.
07-06-2009 11:33 AM
Hi,
As suggested by others you can call BAPI_TRANSACTION_COMMIT. If it doen't work, then write this command
wait up to 5 seconds after every material is processed
Regards,
Sandhya
07-06-2009 11:41 AM
hi Alex
try to use some BAPI transaction commit and rollbak fuction s given below or
you can choose the enque and deque fucntions for your BAPi
BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK
if the problem still persists you can refer the below link as refernce and can solve your problem
https://wiki.sdn.sap.com/wiki/display/Snippets/Tutorial%2CMM01UploadusingBAPI