Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

a strange problem about original file upload


write a function to upload original of document master,

test user: test_user

importing parameter:dokar,doknr,doktl,dokvr


1. delete document master's having original file,and commit work with function BAPI_DOCUMENT_CHANGE2;

2.upload new original file with function BAPI_DOCUMENT_CHANGE2 too.

now problem is :

when I tested the function in execute (F8), return error is:

document is freezed by test_user

and result is original wasn't uploaded.

but,when I tested it in debug(Ctrl +F7), result is right,no any problem.

this situation is caused what reason?

please help me.

Former Member
Former Member replied


Are you using BAPI_transaction_commit function to commit the deletion of records to the data base.

After that, you use the new Bapi function to change the records. andn then again using bapi_transaction_commit to commit the changes.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question