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

ENQUEUE / DEQUEUE

former_member599326
Participant
0 Likes
1,839

I want to use ENQUEUE / DENQUEUE  functionality before below BAPI.. how to use the same ?

    CLEAR gs_header_data.

     gs_header_data-deliv_numb = <fs_ekbe>-belnr.

     CLEAR gs_header_control.

     gs_header_control-deliv_numb = <fs_ekbe>-belnr.

     gs_header_control-dlv_del    = gc_x.

     CLEAR gs_delivery.

     gs_delivery = <fs_ekbe>-belnr.

     REFRESH gt_return.

     CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'

       EXPORTING

         header_data    = gs_header_data

         header_control = gs_header_control

         delivery       = gs_delivery

       TABLES

         return         = gt_return.


Basically I want to lock deliv_numb till updation from BAPI completes...

2 REPLIES 2
Read only

0 Likes
1,298

Hi Santosh,

First goto SE11,

There Create one LOCK OBJECT.

It will create 2 function module automatically, with names.

ENQUEUE_<lock object name>

DEQUEUE_<lock object name>

So before calling the BAPI call the fm ENQUEUE_<lock object name> to lock the object.

after calling the BAPI unlock the object by calling DEQUEUE_<lock object name>.

Regards,

Swaroop

Read only

0 Likes
1,298

NOTE : The Lock Object name should Start with EZ or EY.