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

lock FM

Hi Guys,

I got an lock FM can anyone tell me how to use it i am updating the field S_VERSEQ by comparing fields VERSION & /BIC/S_PLANTYP

so pls let me know how to use it is the way i am using ir rite..??

CALL FUNCTION 'ENQUEUE_ED'

EXPORTING

MODE_/BIC/PS_DATVER = 'E'

  • /BIC/S_CBPDAT =

  • VERSION =

  • /BIC/S_PLANTYP =

  • /BIC/S_DATVER =

  • OBJVERS =

  • X_/BIC/S_CBPDAT = ' '

  • X_VERSION = ' '

  • X_/BIC/S_PLANTYP = ' '

  • X_/BIC/S_DATVER = ' '

  • X_OBJVERS = ' '

  • _SCOPE = '2'

  • _WAIT = ' '

  • _COLLECT = ' '

EXCEPTIONS

FOREIGN_LOCK = 1

SYSTEM_FAILURE = 2

OTHERS = 3

.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

CALL FUNCTION 'DEQUEUE_ED'

EXPORTING

MODE_/BIC/PS_DATVER = 'E'

  • /BIC/S_CBPDAT =

  • VERSION =

  • /BIC/S_PLANTYP =

  • /BIC/S_DATVER =

  • OBJVERS =

  • X_/BIC/S_CBPDAT = ' '

  • X_VERSION = ' '

  • X_/BIC/S_PLANTYP = ' '

  • X_/BIC/S_DATVER = ' '

  • X_OBJVERS = ' '

  • _SCOPE = '3'

  • _SYNCHRON = ' '

  • _COLLECT = ' '

.

its very urgent

points wil be rewarded

Ravi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2007 at 02:56 PM

    CALL FUNCTION 'ENQUEUE_ED'

    EXPORTING

    MODE_/BIC/PS_DATVER = 'E'

    • /BIC/S_CBPDAT =

    • VERSION =

    • /BIC/S_PLANTYP =

    • /BIC/S_DATVER =

    • OBJVERS =

    • X_/BIC/S_CBPDAT = ' '

    • X_VERSION = ' '

    • X_/BIC/S_PLANTYP = ' '

    • X_/BIC/S_DATVER = ' '

    • X_OBJVERS = ' '

    • _SCOPE = '2'

    • _WAIT = ' '

    • _COLLECT = ' '

    EXCEPTIONS

    FOREIGN_LOCK = 1

    SYSTEM_FAILURE = 2

    OTHERS = 3

    .

    IF SY-SUBRC <> 0.

    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    *<----


    Update code.

    MODIFY <YOUR TABLE > FROM <UPDATED WORK AREA>

    *<----


    CALL FUNCTION 'DEQUEUE_ED'

    EXPORTING

    MODE_/BIC/PS_DATVER = 'E'

    • /BIC/S_CBPDAT =

    • VERSION =

    • /BIC/S_PLANTYP =

    • /BIC/S_DATVER =

    • OBJVERS =

    • X_/BIC/S_CBPDAT = ' '

    • X_VERSION = ' '

    • X_/BIC/S_PLANTYP = ' '

    • X_/BIC/S_DATVER = ' '

    • X_OBJVERS = ' '

    • _SCOPE = '3'

    • _SYNCHRON = ' '

    • _COLLECT = ' '

    .

    To the ENQUEE & DEQUEE FM

    pass the particular field values/record to the respective Export parameters

    (usually the key field values is enough) to lock that entry and stoping others modifying that row.

    Reagrds,

    A.Singh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.