ENQUEUE_EC_PROJ

Hi Experts,
I am facing below problem When executing the FM "ENQUEUE_EC_PROJ" in background for WBS element user status change in work flow.
It is not showing any lock objects ( i am using this in the WF to Change the WBS status i.e next Approver ). It is giving correct results when executing in the foreground.
Thanks

Hi Nanda,
I have a workflow for approving/releasing WBS, and I am using ENQUEUE_EZ_PRPS to get the lock. 
Regards,
Sue

Similar Messages

  • Error in "ENQUEUE_EC_PROJ"

    Hi Experts,
    I am facing below problem When executing the FM "ENQUEUE_EC_PROJ" in background for WBS element user status change in work flow.
    It is not showing any lock objects ( i am using this in the WF to Change the WBS status i.e next Approver ). It is giving correct results when executing in the foreground.
    Thanks

    try by setting MODE_PROJ_ENQ parameter as 'X' .

  • Lock for PRPS table(CJ20N) project.

    Hi
    I am trying to LOCK the project(table PRPS) using OPEN FI Func module.
    But its not possible.
    Below is my observation.
    using Below FM to lock
    L_V_PSPID = PRPS-PSPHI
       CALL FUNCTION 'ENQUEUE_EC_PROJS'
        EXPORTING
          MODE_PROJ_ENQ  = L_V_ENQMODE "E
          TYP            = L_V_ENQTYPE "P
          PSPID          = L_V_PSPID   " XXX-1234457  "project
        EXCEPTIONS
          FOREIGN_LOCK   = 1
          SYSTEM_FAILURE = 2
          OTHERS         = 3.
    When i execute in OPENFI, Lock record is created for XXX-1234457
    But when i update using transaction CJ20N, new lock record is created
    as XXX1234457(without hyphen) and lock is not done.
    Which parameter should be used in PSPID?
    Should i have to use PROJ-PSPID? or PRPS-PSPHI?
    Regards
    prince

    Hi Prince,
        CALL FUNCTION 'ENQUEUE_EC_PROJS'
             EXPORTING
                  TYP   = 'P'
                  PSPID = PROJ-PSPID
             EXCEPTIONS
                  FOREIGN_LOCK   = 01
                  SYSTEM_FAILURE = 02.
    The above functional module works fine and in your code remove the mode you r passing and you need to pass PSPID values not psphi.
    Regards,
    S.C.K
    Edited by: Chandrakumar S on Jan 12, 2012 2:49 PM
    Edited by: Chandrakumar S on Jan 12, 2012 2:50 PM

  • Lock all of PS Project

    I need to lock a PS project and all of its subordinate objects: PRPS, AUFK, AFVC, and if possible any schedules AFAB.
    The following code only locks at the Project and WBS level - Not for the Network Header or Activity.
            call function 'ENQUEUE_EC_PROJ'
                 exporting
                      mode_proj_enq  = 'E'
                      mandt          = sy-mandt
                      pspid          = i_proj-pspid
                      x_typ          = ' '
                      x_pspid        = ' '
                      _scope         = '2'
                      _wait          = ' '
                      _collect       = ' '
                 exceptions
                      foreign_lock   = 1
                      system_failure = 2
                      others         = 3.
    I want this lock to last for days and spanning logins so I do not want to just call CJ20n.

    Hi Jeff,
    I guess you can use the following for locking networks
    *ENQUEUE ORDER
        CALL FUNCTION 'ENQUEUE_ESORDER'
          EXPORTING
            aufnr          = l_afko-aufnr
            _scope         = 2
          EXCEPTIONS
            foreign_lock   = 1
            system_failure = 2.
    Regards,
    Maggie.

  • Unlock project definition

    Hi,
    I have used the following function module (ENQUEUE_EC_PROJ) to lock the project definition. The project was locked sucessfully.
         CALL FUNCTION 'ENQUEUE_EC_PROJ'
          EXPORTING
             mode_proj_enq    = 'E'          " Write mode
             mandt                  = sy-mandt
             typ                       = 'D'          " Project Definition            
             pspid                    = gv_project_definition
          EXCEPTIONS
            foreign_lock         = 1
            system_failure     = 2
            OTHERS               = 3 .
    But while unlock, I have used the function module: DEQUEUE_EC_PROJ . but this function module was not UN LOCKED the project definition. Do you have any suggestions how  to use this FM?
         CALL FUNCTION 'DEQUEUE_EC_PROJ'
          EXPORTING
            MODE_PROJ_ENQ       = 'E'
            mandt                           = sy-mandt
             typ                               = 'D'
             pspid                           = gv_project_definition.
    Thank you.
    Regards
    Pallavi

    I did not see anything incorrect. But, I think value of parameter typ should be 'P'. (P for ProjDef and H for WBS; the parameter is optional)

Maybe you are looking for

  • What is Verizon going to do for us?

    Obviously this phone has a lot of issues, everything from the phone not holding a connection, forced-closed apps, random lock-ups, reboots, etc. The Verizon Wireless web store seems to have a lot of these phones being sold as refurbished phones so I

  • How can i remove something from the favourite in finder?

    how can i remove something from the favourite in finder?

  • DECODE vs. CASE problem

    Hi, sorry to post what may end up being a very dumb question here. I'm trying to take a huge, complicated query that runs a ton of DECODE statements and turn it into something readible. However, I'm running in to a strange issue. To my mind, when I r

  • Media offline / file import failure

    Hi, I have my project created in Premiere CS6. Now i updated to CC. In my project, i imported a really short AE file into my Pr timeline. The whole vidieo worked fine. Now I just noticed that media (AE file) was reported media offline in Premiere CC.

  • I NEED TO CONTACT VERIZON BY EMAIL

    I'm abroad in another country right now and have a question about my bill, but do not have international phone access and live chat is not working for me. Any possible way to email someone from Verizon directly for help?