Formatted search - Price list

Hello all,
My customer need to calculate a price of a row using an his particular algoritm.
I have planned to use a formastted serch in the field price, but I need also the price list as the "Form Settings --> Document --> Table --> Price List",
but I can't select this value.
Some one can help me?
Thanks

There is no way to set the field price list visible in a row. We solved it by inserting a udf into the row level of the documents and the combination with a formated search for the price list.
In our scenario u can choose from this udf with fms the price list. There is a second fms in the item price field with auto act. If you choose a price list, the item price calculate it selfs with the info from the udf.

Similar Messages

  • Formatted search - price/pricelist

    Hi.
    I have the followin query:
    SELECT T2.[Price]
    FROM [dbo].[OPLN]  T1 INNER JOIN ITM1 T2 ON T1.ListNum = T2.PriceList
    WHERE T2.[ItemCode] = 'A99'
    and  T1.[ListName] = $[OPLN.ListName]
    This gives me an error when running it as a formatted search on the item master data. My intention is to filter the price by both item code and by the current price list name in the item master data.
    Regards, Runar.

    Thank you Suda.
    I knew there had to be some easy way to do this.
    Anyhow, would you be able to provide me some information on where to find documentation and syntax for the provided query.
    SELECT $[$-34.0.NUMBER]
    Regards, Runar.

  • Formatted search - price

    Hi all experts.
    Can someone please provide me with a formatted search that fetches the price from the price field on item master data and selects it into a UDF on OITM.
    Thanks.
    Runar.

    Create a UDF in the Item Master and assign the following 'Formatted Search Query' to the UDF:
    SELECT T1.[PriceList], T2.[ListName], 
    T1.[Currency], T1.[Price] FROM [dbo].[ITM1]  T1
    INNER JOIN  OPLN T2 ON T1.PriceList = T2.ListNum
    where T1.itemcode=$[oitm.itemcode]

  • Formatted Search inside a Price List

    Hi,
    Is it possible to put a formatted search inside a Price List which will auto-update?
    I created a query which looks at Special Prices tables OSPP and put an FMS in Price List 10. However, this FMS does not auto-update - it only updates when I click the "magnifying glass" of the formatted search. It would be cumbersome to click all items one-by-one.
    Thanks,
    Ajay Audich

    Hi...
    I understand that your formatted search is applied to the price column in your list of Charges 10. You've proven that their execution is made when leaving the modified column "Manual"? ..
    This column can fill it with one and then clicking on the column header.
    Best regards,

  • Special Price + Formatted Search for Special Price.

    Hi all,
    Appreciate some help here.  Our client is using SAP B1 2007 Patch 38.  AU/NZ localization, Local Currency = AUD.
    Scenario:
    Item A, Price List 1 = $2795, Price List display = 4 decimals, Price List Currency = USD
    Special price for Item A has been set up as follows:
    Step 1 - Go to Item> Price List> Price and Volumne Discount
    Step 2 - The price and volumn discount screen opened. From the drop down, select price list and then select Item A by double clicking the line.
    Step 3 - Period Discount screen opened.  Valid from = 9th July 2008. Price = $2795.
    Step 4 - Double click the line, Volume Discount Price List open, with the following details maintained.
    Quantity=1, Discount=0, Special Price = $2795.
    Quantity = 10, Discount=7.1556, Special Price = $ 2595.0010
    Quantity = 100, Discount=10.0179, Special Price=$ 2514.9997
    Question:  we intend to put in Special price = $2595 and $2515, but SAP just does its own round up.  Is there a way to work around?
    Scenario 2:
    To deal with the problem from Question 1, we have created a formatted search in the sales order and formatted search to round up the value in Line Total.
    Column = Line Total
    Trigger by = Quantity
    Query = SELECT (case when $[$63.0.0]='USD' then Round($[$38.23.number],0) else $[$38.23.number] end)
    Column = Quantity
    Trigger by = Discount%
    Query = SELECT $[$38.11.1]
    The above set up works fine, if the user enter the quantity correctly the first time. 
    Eg:
    User enter Qty = 10, SAP will display Discount = 7.1556 % and Line Total = $25,950.00 (Round up from $25950.01).
    If user notice the quantity is wrong and then enter new quantity = 100, the discount remains at 7.1556%, it should be 10.0179%.
    Question: Is there a way to work around this?

    Hi Shawn ,
    1.First check the decimal setting
    a.Administration --> system intilisation --Document setting -- currency or by document --
    b.System initiliaisation ---> general settng --->Display
    c.Administration set up->Financial currency ---rounding --???
    Currency setting overides the rounding method of procedure B
    Scenario2
    Since your trigger is dicount percentage , You will not get the desired output from the formatted search . Try to get the trigger at quantity .
    Hope that helps
    Bishal

  • Formatted Search - Calculate GP Base Price for Non Inventory Items

    Hi Experts,
    On one of our customer's 8.8 PL 15 installation, requirement was to calculate GP for Non Inventory Items (on SO screen). Since SAP does not automatically calculates it we proposed and implemented following solution.
    1. Have all Non Inventory Items to be costed at Standard cost so that you can manually enter the cost in the Item Master.
    2. Write following formatted search on GP Base Price field so as to calculate the GP Base Price for the Non Inventory Items only. The formatted search must not make any changes to Inventory Items as we want system to calculate the GP automatically (just in case cost changes from SO to Delivery or Invoice).
    DECLARE @II AS nVarchar(1)
    DECLARE @COST AS Numeric(19,2)
    SET @II = (SELECT OITM.InvntItem FROM OITM WHERE OITM.ItemCode = $[RDR1.ItemCode])
    SET @COST = (SELECT     (OITW.AVGPrice * $[RDR1.NumPerMsr]) FROM     OITW WHERE     OITW.ItemCode = $[RDR1.ItemCode] AND
         OITW.WhsCode = $[RDR1.WhsCode])
    IF (@II = 'N')
    BEGIN
    SELECT @COST
    END
    3. Formatted search achieves what was originally required however if a user overwrites the Item Code (Inventory Item) in the SO then above formatted search clears the GP Base Price field and sets the GP basis for the item as "Manual". By obverwrite means user first selected item A0001 on line 1 and then entered A0002 on same line i.e. Line 1.
    My question here is what is wrong in the formatted search that is resulting in this behaviour.
    Any questions please let me know.
    Thanks in advance.
    Regards
    Devinder

    Hi Gordon,
    Thanks for taking out time to help me however Key requirement here is
    Write formatted search on GP Base Price field so as to calculate the GP Base Price for the Non Inventory Items only.
    Your query sets the base price for GP Base Price for Inventory Item to ZERO and Base Price By to Manual.
    Note that my Formatted search has a problem only when an Inventory Item line is overwritten. I am not sure if this is a problem with SAP itself rather than my query.
    Any other ideas please?
    Regards
    Devinder

  • Query help - Inventory, warehouse, Price List, AP PO, & wildcard search?

    Hi All,
    I have a query that does a lookup on inventory and returns useful info as onhand, committed, warehouse,
    various price list data etc. It is very useful for our telephone sales guys as they can see all the information
    they need in one quick search. There is a wildcard variable that searches both the ItemCode and ItemName
    fields to return possible results.
    I would like to add one further column to this query.. being the ETA (DocDueDate) of the most recent Open
    AP purchase order that relates to the Item.. if any. I want to return the rest of the result even if there is no
    AP Purchase Order open.
    I have posted two queries below. The first is the original query that works well. It offers wildcard search
    of the ItemCode and ItemName, but does not give me the ETA (DocDueDate) of any open AP Purchase
    orders for the item (what I want).
    The second query does give me everything thing I want returned, but only if I enter the exact ItemCode
    into the variable field. I can no longer do the wildcard search that I also want. Some of our codes are simply
    not practical to remember, and cannot be easily identified. this is why I need the wildcard search to look in
    both the Item and Name column and return possible matches.
    I have both queries below.
    This is the working original query...
    SELECT
    T0.[ItemCode],
    T0.[ItemName],
    CAST (T0.[OnHand] As INT) As ' Total On Hand', 
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=01) As INT) As 'Melb Whse', 
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=06) As INT) As 'Demo Whse', 
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=04) As INT) As 'Bill Car Stock',
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=05) As INT) As 'Brett Car Stock',
    CAST (T0.[IsCommited] As INT) As 'Committed',
    CAST (T0.[OnOrder] As INT) As 'On Order',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6) as 'RRP Inc GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=1) as 'RRP Ex GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=2) as 'Comp Ex GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=3) as 'Std Ex GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=4) as 'Pro Ex GST',
    T1.[ItmsGrpNam],
    T2.[FirmName]
    FROM OITM T0  INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod
    INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode
    WHERE T0.[ItemCode] Like '%%[%0]%%' OR  T0.[ItemName] Like '%%[%0]%%'
    ORDER by T0.[ItemCode]
    For Browse
    This is the new query with the AP PO DocDueDate lookup included. (Wildcard searches dont work anymore)
    SELECT
    T0.[ItemCode],
    T0.[ItemName],
    CAST (T0.[OnHand] As INT) As ' Total On Hand', 
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=01) As INT) As 'Melb Whse', 
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=06) As INT) As 'Demo Whse', 
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=04) As INT) As 'Bill Car Stock',
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=05) As INT) As 'Brett Car Stock',
    CAST (T0.[IsCommited] As INT) As 'Committed', CAST (T0.[OnOrder] As INT) As 'On Order',
    (SELECT TOP 1 T0.[DocDueDate] FROM OPOR T0  INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE T1.[ItemCode] = [%0] And  T0.[DocStatus] ='O' ORDER BY T0.[DocDate] Asc) As 'ETA',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6) as 'RRP Inc GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=1) as 'RRP Ex GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=2) as 'Comp Ex GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=3) as 'Std Ex GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=4) as 'Pro Ex GST',
    T1.[ItmsGrpNam],
    T2.[FirmName]
    FROM OITM T0  INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod
    INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode
    WHERE T0.[ItemCode] Like '%%[%0]%%' OR  T0.[ItemName] Like '%%[%0]%%'
    ORDER by T0.[ItemCode]
    For Browse
    As you can see in query 2, I used the same variable to attempt to lookup the DocDueDate from OPOR.
    This only works if I enter the variable exactly as ItemCode. No longer wildcard search.
    if anyone could offer any assistance it would be most appreciated.
    Best regards,
    John

    Hi István,
    Thanks! That works great.
    The only additional thing I need is to return the DocNum of the Purchase order (DocNum from OPOR). I attempted to do this by adding T.[DocNum] to your suggested query as per below... however it returns error "Only one expression can be specified in the select list when the subquery is not introduced wit EXISTS"
    SELECT
    T0.[ItemCode],
    T0.[ItemName],
    CAST (T0.[OnHand] As INT) As ' Total On Hand', 
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='01') As INT) As 'Melb Whse', 
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='06') As INT) As 'Demo Whse', 
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='04') As INT) As 'Bill Car Stock',
    CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='05') As INT) As 'Brett Car Stock',
    CAST (T0.[IsCommited] As INT) As 'Committed', CAST (T0.[OnOrder] As INT) As 'On Order',
    (SELECT TOP 1 T.[DocNum], T.[DocDueDate] FROM OPOR T  INNER JOIN POR1 Tt ON T.DocEntry = Tt.DocEntry
    WHERE Tt.[ItemCode]=T0.ItemCode And  T.[DocStatus] ='O' ORDER BY T.[DocDate] Asc) As 'ETA',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6) as 'RRP Inc GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=1) as 'RRP Ex GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=2) as 'Comp Ex GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=3) as 'Std Ex GST',
    (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=4) as 'Pro Ex GST',
    T1.[ItmsGrpNam],
    T2.[FirmName]
    FROM OITM T0  INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod
    INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode
    WHERE T0.[ItemCode] Like '%%[%0]%%' OR  T0.[ItemName] Like '%%[%0]%%'
    ORDER by T0.[ItemCode]
    For Browse
    Any ideas?
    Many thanks,
    John

  • Creating a Formatted Search in Item Master based on Unit Price

    Hi Experts,
    I have to create a Formatted Search for assigning the Standard Cost of Items as Selling Price-Selling Price*.05  i.e the Standard cost of the item should be set upon automatically equal to 5% less of Selling Price .
    I have created the following Formatted Search Query :
    SELECT ((SELECT $[$34.68.NUMBER])-(SELECT $[$34.68.NUMBER] *.05))
    and have assigned this FS to Standard Cost Field . I am not able to base it upon Unit Price field . This FS is correct but it is not automatically refreshing upon change of Unit Price and I have to manually update it(ALT+F2) . I guess the filed upon which it should be based upon is not correct .
    please guide me how to resolve this issue . How to base this FS upon Unit Price.
    Thanks and Regards,
    Pooja Singh.

    Hi,
    Actually I dont want to set upon the last No for the Series. What about the Sequence ? Administration->setup->financials->Tax->Sequence. Here also the same thing can be done but Location Specific. When I created 2 Series for the two different locations , I found that two different fields appeared on the screen Sequence Name Where I found the two sequences I defined for the two locations. If you have any idea about what this sequence is for and how far is it different from Document Series , please let me know.
    Thanks and Regards,
    Pooja Singh

  • Formatted Search - Purchase Order Lines, Price Field

    Hello Experts,
    I have wrote this formatted search for Purchase Order Lines, Price Field
    The problem is that i gets 0...
    What is wrong in it?....
    select
    case
    when T2.[ItemCode] Like N'u05D7u05DC%%' AND U_Thickness >= 1 AND U_Thickness <=3 then U_Contour*2.17
    end
    FROM OITM T0
    INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
    INNER JOIN POR1 T2 ON T0.ItemCode = T2.ItemCode
    WHERE T2.itemcode = $[$38.1.0[
    Thank You,
    Meital

    Hi.....
    Try this
    select
    case
    when T2.[ItemCode] Like N'u05D7u05DC%%' AND U_Thickness >= 1 AND U_Thickness <=3 then U_Contour*2.17
    end
    FROM OITM T0
    INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
    INNER JOIN POR1 T2 ON T0.ItemCode = T2.ItemCode
    WHERE T2.itemcode = $[$38.1.0]
    Regards,
    Rahul

  • Multiply price list per Business partner

    Hi
    does any one come accross information on how i assign Business partner 2 or more price list
    basicly what i want to do is  to give diffrent factors (price list) for diffrent Group of items , so each BP will have diffrent disscount for each group of items in the same time .
    Example :
    2 items from group  A will have Price List  50% disscount
    3 items from group  B will have Price List  45% disscount
    i want to assign  both Price List  for the same bussnies partner.
    Thanks
    yanivh

    Hi Zohar,
    I did something a while ago for a customer, the basics of it were as follows:
    Create a UDT to store the discount matrix
    Add a UDF to the UDT so that you can store the Customer Group
    Add a UDF to the UDT so that you can store the Item Group
    Add a UDF to the UDT so that you can store the Discount % for the combination of Customer & Item
    Add a formatted search to the Customer Group column in the UDT so you can lookup the OCRG table
    Add a formatted search to the Item Group column in the UDT so you can lookup the OITB table
    Then add a formatted search to the Discount % field so that it goes and gets the Discount % from the UDT where the Item Group is the Item group from the row item $\[$38.1.0\] and get the customer group from the BP on the form $\[$4.CardCode\]
    Hopefully that should give you a starting point for this and allow you to work out the rest yourself.
    Regards,
    Adrian
    Sorry, a couple of extra points, you can simplify this is you don't need to know the Customer Groups (e.g. all customers get the same discount %'s for the item groups)  or you can make this as complicated as you need it to be.
    Edited by: Adrian Johnson on Oct 20, 2009 1:45 PM

  • Qry:How to get different price for each price list (variable area) in order

    1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
    2- I add a location store from a table in line item and I want to see this area in order,.
    I 'm created 2 field location(item line and order), 1 table location
    I tried this for exemple : select $ [userfieldlocation.OITW]

    Thanks Suda for your answer,
    the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,     
    I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
    read carefully and imagine how (Management warehouse locations)
    I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data  line and an ather user field 'U_Location' in sales order
    I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
    or
    create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
    I think we will use all these tables
    @LOCATION
    PDN1
    OITM
    OITW
    OWHS
    RDR1
    Juste a another question : where you found this and What is: ' 38.1.0 '
    Is it in document (System information):Item=38 Pane=1 ??
    Thanks,
    Ouchen

  • Formatted Search with multiple conditions

    Hi experts,
    I am using a formatted search to update the Unit price in Sales Order. Query mentioned below.
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = '[$38.1.0]'
         and     T1.u_location = '$[$38.2000002049.0]'
    But while adding Item on Sales Order, it is showing error, Incorrect Syntax near  '$[$38.2000002049.0]'.
    Note: I have added an UDF named U_LOCATION( Alphanumeric, 10) in OPLN and selecting location in Price List through another FMS which is working perfectly.
    Please help in this regards.
    Thanks in Advance.
    Nabyendu

    Hi Nabyendu Saha..
    You said the u_location as alphanumeric the why you have given 0 for the field type in the FMS...
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = '[$38.1.0]'
         and     T1.u_location = '$[$38.2000002049]'
    or
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = [$38.1.0]
         and     T1.u_location = $[ordr.u_location]
    Try the above , hope helpful
    Regards,
    Kennedy

  • PLD - AR Invoice How to show another item price from a different price list

    Hi,
    I am trying to print a suggested price list price, which is different to the selling price being used on the item line i.e for Item ABC on line 1 of the invoice we would like to show the selling price (price list 1) as well as the suggested selling price (price list 2).
    How can we do this?
    Thanks
    Jacques

    Hi Jacques,
    I don't think it's possible in PLD. As an alternative, you could add a UDF with a formatted search, which picks up the suggested selling price, and you could show this UDF on the print layout.
    I hope this helps.
    Regards,
    Nat

  • Change price list in one document

    Hi all,
    How i can change the price list of a document? This document is not created yet and i need to change to others price list.
    If nobody knows the answer i`m going to change the prices of the lines one per one but inside the document the price list is no change.
    Any ideas?
    Thank you all again.
    Regards.

    Aitor,
    I expect that you do this by UI and not DI. If yes, you may do it in few ways:
    1. as I describe in my first post - raise menuid = 5890 (form settings), after for loads (formuid = 998) select in combo proper pricelist and emulate click to OK
    2. on pricfileds add formatted search based on some UDF - when to this UDF youll write id of pricelist, you may through selects in FS calculate the right price for all rows (when is the field blank, do nothing and sap will this override with own calculating)

  • Formatted Search for Sales Order

    Hi,
    I setup a formatted search in Sales Order unit price field.
    Condition required:
    If Sales Order is copied from Sales Quotation, unit price remains as per Sales Quotation unit price, else formula to calculate mininum selling price appllies.
    Here's the query:
    DECLARE @BASE_ENTRY INT
    DECLARE @PRICE NUMERIC(19,6)
    SET @BASE_ENTRY = ISNULL($[$38.45.0],0)
    SET @PRICE = $[$38.14.0]
    IF @BASE_ENTRY = 0
    BEGIN 
    SELECT T0.[AvgPrice]*(1+T0.[U_SPFactor])
    FROM OITM T0
    WHERE T0.[ItemCode]=$[$38.1.0]
    END 
    ELSE 
    BEGIN
    SELECT @PRICE
    END
    l have no issue if the Sales Order copied from Sales Quotation, however when enter the Sales Order manually the formatted search having error message:
    1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Error converting data type nvarchar to numeric.
    FMS execution failed on field '' with query name 'Get Minimum Selling Price (SO)'
    Looks like my query has error...

    Hi ,
    Try this below query and let me know your feedback,
    DECLARE @BASE_ENTRY INT
    DECLARE @PRICE NUMERIC(19,6)
    SET @BASE_ENTRY = ISNULL($[$38.45.0],0)
    SET @PRICE = $[$38.14.Number]
    IF @BASE_ENTRY = 0
    BEGIN
    SELECT T0.[AvgPrice]*(1+T0.[U_SPFactor])
    FROM OITM T0
    WHERE T0.[ItemCode]=$[$38.1.0]
    END
    ELSE
    BEGIN
    SELECT @PRICE
    END

Maybe you are looking for