Jan Mille
29th January 2014, 10:14
Is it possible in LN to set a relation between an item and a customer, ensuring that this item is exclusively sold to this customer? In Axapta, I used to have this functionality for OEM items, blocking to sell the specific item to another customer, but I cannot find how to set this up in LN.

bhushanchanda
29th January 2014, 10:36
Hi,

In LN, its not possible to assign a BP to an Item exclusively.

The possible workarounds are:-

1.-For the 'Exclusive' item you have to enter one record in: 'Items - Sales Business Partner (tdisa0510m000)' for every Business Partner (Customers) and select the 'Blocked' check box. For the exclusive/unique BP this check box is not selected so you only can enter sales orders for this BP.
2.-Using blocking or warning Item Signals (tcmcs0118m000) you can control the authorization of the users to create a sales order for that item.

avpatil
31st January 2014, 16:26
We have customized this functionality in Baan IV where we have certain items available to certain Line of business. It is not a difficult customization to do so.

Arvind

JaapJD
31st January 2014, 16:44
You can code something like the following in a User Exit DLL (tdsls401ue):

function extern long ue.before.before.save.object(long mode)
{
if not mydll.item.can.be.sold.to.this.bp(tdsls401.item, tdsls401.stbp) then
dal.set.error.message("@It is not allowed to sell this item to this customer")
return(DALHOOKERROR)
endif
return(0)
}

Of course you have to code the logic to determine whether the item van be sold to that customer.