Application Development 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: 

BAPI Problem

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

hai can u tell little clear what is the exact problem

m.a

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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