Skip to Content

Lock Business Partner for use while Create/Change using Workflow

Hi Experts,

I have a requirement to lock Business Partner (BP) for use during any change in CounterParty role. It should go for a 2 level Workflow approval.

I have created a custom workflow using BUS1006 -> Change method.

But i am not able to understand, there is also a standard workflow WS20000263 for action TRLOAPPROV getting triggered. Is it possible to block it using this standard worklfow.

If not, then how to lock the BP using my custom workflow ? which FM/BAPI to be used to Set/Reset Central Lock flag in status tab of BP ? Will it lock BP for use only by setting this flag ?

Thanks in advance,

Manoj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 28, 2017 at 09:20 AM

    Hi,

    There is BUPA_ENQUEUE and DEQUEUE function modules for locking business partners. You can do a where-used on these function modules to find out if they are used in methods and if so check table HRS1201 to see if standard tasks exist for these methods,

    If not then you have to create your own method and task and use it in your workflow model.

    Kind regards, Rob Dielemans

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Ivy,

      Thanks for your comment.

      I am doing it using BAPI_BUPA_CENTRAL_CHANGE in my custom workflow for BUS1006.

      lwa_centraldata-centralblock   = abap_true.
      lwa_centraldata_x-centralblock = abap_true.
      
      CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
          EXPORTING
            businesspartner = lv_businesspartner
            centraldata     = lwa_centraldata
            centraldata_x   = lwa_centraldata_x
          TABLES
            return          = lt_return.

      Thanks,

      Manoj

  • Aug 24, 2017 at 10:34 AM

    Hello Experts,

    I am trying to do it using BAPI_BUPA_CENTRAL_CHANGE in my custom workflow for BUS1006.

    But stuck at below point.

    We have to restrict our workflow for BP General and Counterparty Role specific field value changes only.

    Is their any FM/BAPI which can tell us, what last changes happened to a BP ?

    Also require a lock type which won't block already triggered transactions ( Ex. BANK account). It will only block new transactions after locking the BP.

    Thanks in advance,

    Manoj Mohanty

    Add comment
    10|10000 characters needed characters exceeded