cancel
Showing results for 
Search instead for 
Did you mean: 

Lock Business Partner for use while Create/Change using Workflow

MKM
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186746
Active Contributor

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

MKM
Active Participant
0 Kudos

Hello Rob,

I am talking about below lock in BP transaction.

If i am putting a central block, then system is not allowing it to use in transactions.

Thanks,

Manoj

ivy_li
Active Contributor
0 Kudos

Hi,

For central block, it is stored in table BUT000-XBLCK. If it is supplier replicated from backend system, you have to block it in ECC side and then synchronize it (wiki https://wiki.scn.sap.com/wiki/x/-wQsG).

If it is a local BP, you may tick it directly in trx BP. I didn't hear about any standard workflow which could automatically block BP. This has to be achieved via custom program.

BR,
Ivy

MKM
Active Participant
0 Kudos

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

MKM
Active Participant
0 Kudos

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