Block item unit price from decrease in a A/R Invoice

Dear experts !
How can I prevent a sales user to decrease an item unit price in an A/R Invoice for a customer for which a special price (based on quantities) was defined. The user can increase the item unit price in the A/R Invoice for that customer.
Thanks for your precious help.

Hi yves,
try below in transaction notification:
if (@object_type = '13') and (@transaction_type IN ('A', 'U'))
BEGIN
IF exists (SELECT * FROM INV1 T0  INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode and  T0.[PriceList]=*2*  WHERE isnull(T0.[Price],0) <> isnull(T1.[Price],0) and t0.DocEntry=@list_of_cols_val_tab_del)
          Begin
               SET @error = 30
               SET @error_message =N'Unit Price  can`t be different than price defined Price List'     
          end
END
Change price list number (bold ) in above query to price list number you want.
you can check price list number using query
Select * from OPLN
- listnum column.
Thanks,
Neetu

Similar Messages

  • Hide Unit price from sales order for sales user without change authorization of document setting

    Hi all expert
    Hide Unit price from sales user without change authorization of document setting.
    I have also refer this note
    SAP B1 2005 Purchas Order,Good Reciept PO'S, and Unit Price Block
    but sill I had not getting my proper solution.
    I want to restrict sales person to see & access unit price. Here I know option of block authorization of document setting but its not good option because , In future ,if sales user wants to changes forms setting in future so Its become problematic for user. so I want do this without restrict user for form setting & only hide unit price table from him/her. also He/her able to access form setting with out unit price.
    Please reply
    Amol Nikam

    Hi Experts,
    Please Tell me Is there any option "Hide Unit price from sales order for sales user without change authorization of document setting"
    Regards/Thanks
    Amol

  • Invoice Item Unit Price

    I need to find the field that has invoice item unit price. I know NETWR is net value, but I am looking for unit price of each item.

    Hi Megan,
    It should be VBRP-CMPRE and NOT VBRK-CMPRE.
    This field value (VBRP-CMPRE) should be equal VBRP-NETWR/VBRP-FKIMG.
    Regards,
    Ferry Lianto

  • Warehouse inventory item unit price

    Dear All,
    would like to ask about a question, hopefully someone can kindly help on this.
    in my b1 inventory setting, it use Moving Average, Each warehouse have it own moving average.
    there is 3 warehouse, A,B and C. warehouse C is used for receiving the Returned Goods.
    there is a Sales Order for Goods1 at $10 issue from warehouse A. and then due to some reasons the Goods1 need to be Returned to warehouse C, it should use warehouse C's unit price (let's say is $3), but it used warehouse A's unit price (let's say is $7 due to using moving average, it is not $10). it only happen SOMETIMES...
    i really have no idea when will it use warehouse A price and warehouse C price.
    and how to set the inventory setting? i mean how to set each warehouse have it own moving average?? usually shouldn't all warehouse use the same moving average among each item??
    sorry for so many question, but i really need help because the system consultant really set it up in messy and i cannot get much help from this consultant. i need to trouble shoot each problem for the operation users.
    Thank you very much.

    Dear Tac,
    Two issues regarding how to understand Moving Average:
    1. The current value of the item in the warehouse will not be changed before any transaction posted to this specific warehouse.  It is equal to On Hand x Item Cost (in this warehouse)
    2. Any new transaction will be posted based on the item value in the document (such as delivery and return), not related to any current value in the warehouse.  The new average will be calculated based on
    New Current Value = Existing value + New Value
    The new item cost = New Current Value / New On Hand
    Hope you got a clear picture
    Thanks,
    Gordon

  • Getting Unit Price from Net Price by dividing with Quantity.

    Good Day Guys,
            I have a requirement, wherein I've got to find the Unit Price Per Item, by Dividing Net Price with the Quantity.
    Currently, Quantity field (MENGE) is of type  QUAN.
    Let me tell you what I experience when i divide by type QUAN:
    I have  Net Value        :       87405.32
    I have Quantity Value  :       2.000 (Data Type - QUAN)
    When I divide ( 87405.32 /  2.000 ), I see that I am getting, a value which is 43.72.
    ( It should acutally be, 43702.66 ).
    So, On seeing the value 47.02, I multiply by 1000 and I now get the value 43700.00
    Now, I see the Decimals, the Units, and the Tenths, are all replaced by zeroes, by doing so. This still is a problem, cause I don't get the exact value of 43702.66
    I guess, I need to find a function module that will change this quantity of  2 which of type QUAN to Integer, in order to get the exact value.
    Would it be possible for any of you, to give me a suggestion as to what i can do, to obtain the exact value, and if there is any function module that will convert QUAN type to Integer.

    Hi,
        Actually, I did not explain well i guess.
       What is happening is that I am getting these values, from an excise table,
    J_1IEXCDTL.
    For Net Price, from table J_1IEXCDTL.
          This has, Field               :  EXBAS,
                        Data Element   :  J_1IEXCBAS
                        Domain            : WERT7
                        Domain  WERT7 is of type, CURR.
    For Quantity this, from table J_1IEXCDTL.
            This has, Field:              :  MENGE
                          Data Element  :  J_1IMENGE
                          Domain           : MENG13
                          Domain MENG13 is of type, QUAN
    So, if you do lv_result = lv_price / lv_qty, then you won't get 43702.66. Instead, you'll get 43.72.

  • Update Unit Price from Catalog

    Hello,
    We have a external catalog wich contain some products with scale prices, so when one of these products are added to a SC, initially its transferred from the catalog with the right price considering the scale price.
    But if the quantity of the item is changed in the SC, than the unit price does not change according to the scale price in the catalog.
    Is there some automatic check in place for this kind of situation ?
    Is there some way to sincronize the prices from the catalog with the prices in SC while changing the SC ?
    Regards,
    Alexandre Padeti

    Thumb Rule - You should not change the quantity and price for items brought via External catalog.
    There is no automatic sync as a catalog item is session based. Once the item is brought back to SRM the hook URL is lost.

  • How to have item unit price in BP currency during sales invoice creating ?

    Hi all,
    is there a way when you keypunch a sales invoice to have the unit price automatically converted to customer currency (as it is done for total amount of the invoice line) ?
    Thanks for your help.
    Regards

    Hi,
    Welcome you post on the forum.
    You have 2 options at least:
    1. Set up a price list for the BP to use the BP currency.
    2. Add a Formatted Search to do conversion by formula.
    Thanks,
    Gordon

  • Terms user query Changes in unit price in purchase order and a/p invoice

    Dear sir
         please give me a term user query for , if any changes in unit price in purchase order and a/p invoice

    Hi,
    Try this:
    SELECT  Distinct ' true'
    FROM adoc T2
    JOIN ado1 T0 ON T2.docentry = T0.docentry AND T2.Objtype = '22'
    JOIN por1 T1 ON T1.docentry = T0.docentry AND T1.Linenum=T0.Linenum
    WHERE  $[$38.14.number] != T0.Price
    Thanks & Regards,
    Nagarajan

  • Unit Price in Item Master Data

    Step no.1) At time of Defining Item Master Data  we are Defining Unit Price say<b> 2,000</b> <b>INR.</b> Data Saved in Price List 01.
    Now with this information I am Preparing Purchase Order.After Selecting Specific Item unit price is reflecting in P.O by default, Then I modified Unit price from 2000 INR to 2500 INR in P.O.
    Step no 2)  I received material by Goods Receipt PO
    Step no 3) When I am posting A/P Invoice based on GoodsReceipt PO in invoice the original Master Data Unit price is Reflecting.
    Now vice versa I made another Transaction also in Another System.
    In Step no 3 it is reflecting the Unit Price of Purchase Order.
    Can I know why it gives different Information for same type of Transaction. Does I followed wrong System.
    Regards
    Narender

    Please confirm the following.
    Once you select a Price in PO it should carry all the way through at the AP Invoice and should not change unless changed manually.
    Are you copying the PO >  Goods Receipt PO > AP Invoice
    And when copying to Goods Receipt PO or Invoice you are not changing the price or Pricelist
    Pls let me know
    Suda

  • Sql query unit price

    Hello Together,
    how can i find the unit price for an item with an query.
    I used this query:
    SELECT $[$34.0.68] FROM [dbo].[OITM]
    WHERE
    OITM.ItemCode = '10000-0000'
    but with the result '0' as price but in the item i have 5 $ as unit price.
    Thank you and best regards
    Edited by: Serkan Er on Oct 22, 2009 1:59 PM

    OH ok,
    i just want possibilitty to select the actual unit Price from the item master data.
    In the item master data we put in the field Price_List:  pricelist_1.
    Concerning this field the system shows us the Unit-Price for this item which is in the pricelist_1.
    In SQL i can find a table named OPLN - the records are only the information pricelist1, pricelist2 , e.g.
    how can i find the details to this records - for example pricelist_1
    is there a related table ????????????????

  • Pull price from second price list

    Hi Everyone
    We have an issue where one customer wants the price from their pricelist and the price from the standard pricelist.
    It's not the same discount on each item so I can't just create a pricing condition for the customer.
    So what I was hoping to be able to do is run the Quote as normal using the customers pricelist in the final amount column.
    Then on the smartform I was going to write some code to pull the price from our standard pricelist into its own column.
    Problem is that I haven't been able to find the tables or how to get from pricelist to material price
    Thanks in advance

    Hi Jelena
    I'm not an SD person so I may be using the wrong terminology or I could have misunderstood how this works
    What I mean by price list is when you creating a quote if you go to the header details under the SALES tab there is a box PRICING AND STATISTICS with a drop down box for choosing a different price list.  Or you can go to the ITEM DATA under the SALES B tab there is a drop down box for PRICE LIST for the item.  Which I thought was where the document got the price for the materials (but I could have misunderstood).
    Here we have an option of what we use for a standard price lets call it the US price list
    Or we can select a price list for this specific customer lets call it C price list.
    I want the document to use the C price list to determine the price for each material.
    Normally we have some pricing conditions for a customer discount which we use like so using the standard price list US price list then apply the customer discount conditions to get the net price. Either that or discount can be set for the customer that is applied to everything at the same flat rate. Which I was told was the normal way to do things.
    So the document has a unit price then applies whatever kind of discount to get the net price, which both print on the output to show the difference.
    Now what we want since this customer buys so many different materials from us and the discounts is in a range from 0 to 20% (i think) for each material.  We want to us the price list C in the document apply no flat rate discount and no pricing condition discounts.  Then on the output we want to pull the net price from the document as normal.  But on the output instead of pulling the unit price from the document (which would be the same as the net price) we want to pull the UNIT PRICE from the US price list.  That way for this customer the user entering the quote will not have to add the correct discount %  pricing conditions to each material on every quote.
    So what I was wanting to do in the smartform was  use the material number entered in the document to go get the price from the US price list but I'm having trouble finding the tables which I can do this in. 
    I hope that clears it up some

  • GL account for Unit Price changes A/R Invoice

    Hi,
    I need to know where the GL accounts are determined for Item unit price changes. My problem is as below:
    I have a delivery created for 2 material items. After creating the delivery, we want to reduce the unit price from 2600 (default) to 2500 per unit. ( this is without going into the discount column) as we wnat to reflect the same in the deliver note printout.
    When this is copied to an A/R invoice and then and we try to add this, an error is generated saying "GL accout missing".
    Can any one help to tell me which account this is exactly and where this is entered. we are using SAP B1 2005 PL50.
    Thanks in Advance !

    Hi Nirushad.......
    Its in Administration> Setup> Financials> GL Account Determination> Inventory Tab--> Price Difference account.
    First check the Set GL Method of what
    For checking this go to Administration--> System Initialization > General Setting> Inventory Tab and Set GL Method
    If its Warehouse wise then go to warehouse where transaction is happening and put the Price Diff. Acct in accounting Tab
    If its ItemGroup wise then go to ItemGroup where transaction is happening and put the Price Diff. Acct in accounting Tab
    If its Item Level wise then go to Item Master Data where transaction is happening and put the Price Diff. Acct in Inventory Tab
    Regards,
    Rahul

  • FMS Query to Validate Unit Price on PO Screen

    Hello Experts,
    I am hoping someone has come across a query like this.
    On the Purchase Order I want to validate the unit price field by running a FMS query against it.
    What I would like to be able to do is :
    (Qty Field) X (UDF field which would be weight) X the list price of the item on the line
    So Qty 10 X the UDF field which is 1 X the List Unit Price of the item which then goes into the Unit Price field after the FMS query has run.
    Is this possible?
    At the moment I can run it against the unit price in the field but obviously this does not check the unit price from the Pricelist
    SELECT $[$38.14.number] * $[POR1.Quantity.number] * $[POR1.U_U_Weight]
    Although this works the first time you run it - it calculates correctly but if you run the fms again it keep mulitplying the figure - is there a way to stop this
    Any suggestions would be appreciated
    thanks

    Hi Rahul,
    The code in the first message got messed up -
    However here it is -
    SELECT $[$38.14.number] * $[POR1.Quantity.number] * $[POR1.U_U_Weight]
    I also tried your code and get the same result - the first time you run it it calculates the amount ok.
    But it does not stop at that point - if you click on the FMS link again it takes what is in the unit price field and calculates it again - so it will keep going which is not ideal.
    More importantly though
    Is there a way I can get the query to check the list price for the item first and then multiply it X Qty and then by the Udf Field which is weight

  • UNIT PRICE in Sales Order

    Hi Experts,
    I have created a sales order web service through Di-server.In posting my sales order i am entering the Customer Code,Doc Due Date,Item Code,Qty(web application).
                                          So,my problem is the unit price for an item is calculating by the back end itself even if i pass any amount from the front end.Is there any solution to take the unit price amount by what the amount that i have entered in my front end
    regards,
    shangai.
    Edited by: shangai Nights on Jul 29, 2008 8:40 AM

    Hi Bintha Joshi,
    iam not updating.....i can't able to insert the unit price from my front end(asp.net)....even if i pass any amount just by default it's taking by the factor calculation(OPLN & ITM1) calculation.
    UNIT PRICE column in sales order...
    regards,
    shangai.
    Edited by: shangai Nights on Jul 29, 2008 11:52 AM

  • Unit price for invoice

    Hi Experts,
    I want to get unit price for invoice line items from BSEG table.
    How to get it.
    What is the unit price field for invoice line items.
    Regards,
    Sangeeta.

    Hi Sasi,
    Should I take the line item amount(WRBTR) for unit price from bseg table?
    Regards,
    Sangeeta.
    Edited by: Sangeeta on Dec 29, 2008 8:00 AM

Maybe you are looking for