Trade Agreement By Item ID

Hello All,

I have a scenario where user selects itemid and inventory dimension ( the dimension can be all or any combinations) then its sales price has to be displayed automatically in a form which is similar to sales order form. I know to get the price from price disc table but is there any standard way to find prices by itemid and inventdimid. Any suggestion appreciated.



If you are using the salesLine in your form, then you can use priceDisc class to get the price , look here \Data Dictionary\Maps\SalesPurchLine\Methods\setPriceAgreement. Otherwise you need to extend this approach to the custom table rather you can get the data from the known tableā€¦