Skip to Content
author's profile photo Former Member
Former Member

regarding report

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.

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 04:54 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 05:56 AM
    Add comment
    10|10000 characters needed characters exceeded