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

regarding report

Former Member
0 Likes
563

If you want to edit a custom field in BKPF, be sure you use a lock

object (EFBKPF, function modules ENQUEUE_EFBKPF and DEQUEUE_EFBKPF).

for the above scenario give me some example code.

how to change flag value using lockobjects.

regards,

prabhakar.

2 REPLIES 2
Read only

Former Member
0 Likes
479

Hi Prabhakar,

Lock Objects are used to Lock or prevent DataBase table from editing when some one edits it.

for example, If your code has some update task as you said which you have to do for BKPF you have to first Lock the DB table for others to Edit. Then once your task is been complete you release or remove the Lock.

Itab1 - Values to be updated or edit Custom Field in BKPF.

Select values(Need to be Edited) into itab1.

Call Function Module ENQUEUE_EFBKPF. This would Lock the DB for others to Edit.

Do the Editing Task(Update, Insert or Modify Whatever).

Once done Release it using Function Module DEQUEUE_EFBKPF.

Hope this would have helped you out.

Cheers,

Prashanth

Read only

Former Member