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 Problem

Former Member
0 Likes
677

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 ...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
638

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

5 REPLIES 5
Read only

Former Member
0 Likes
638

hai can u tell little clear what is the exact problem

m.a

Read only

Former Member
0 Likes
638

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

Read only

Former Member
0 Likes
638

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.

Read only

Former Member
0 Likes
638

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

Read only

Former Member
0 Likes
639

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