Skip to Content
0

Lock Business Partner for use while Create/Change using Workflow

Jul 24, 2017 at 03:57 AM

279

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Rob Dielemans Jul 28, 2017 at 09:20 AM
1

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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

untitled.png (14.5 kB)
0

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

0

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

0
Manoj Mohanty Aug 24, 2017 at 10:34 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded