Formatted search - open quantity

Hi.
Can someone please provide a formatted search that calculates the open quantity within an sales order? I know there already is a function for this, but my problem is that I have to use quotes before making the sales order. Then my open quantity will be based on what's left inside the sales quotation.
Does someone know how to calculate the open quantity when considering only the values inside the sales order?
Thanks and regards,
Runar.

Hi.
Thank you for swift reply. I think this query fetches the open quantity based on the original quote? Correct me if I'm wrong?
I need to fetch the open quantity only based on what is on the salesorder. So open quantity should be whats orignially on the salesorder minus what has been delivered.
Any ideas?
Thanks.

Similar Messages

  • Weight Formatted Search on Invoice

    Hi all,
    I need to have the weight of the items on the Invoice screen. The problem is that I have a formatted search on Quantity field and with this, the Weight of the Items do not appear. When I delete the Quantity formatted search, then the Weight appears automatically.
    The FS on the quantity field is: SELECT 0
    The FS on the Weight field is: SELECT ISNULL(T0.[T0.SWEIGHT1],0) FROM OITM T0 WHERE T0.ITEMCODE = $[$38.1.STRING]
    Is it possible to have the FS on the quantity field and at the same time having weight appearing automatically?
    Thanks,
    Pedro Santos

    Pedro,
    What is the link beween the Weight UDF and Quantity field on the Invoice rows.
    Are you trying to make the quantity 0 when the user enter the item and then when the quantity is changed the Weight FMs on the Weight column should fire.
    How is the refresh set on both of these fields.
    Also what do you mean by when remove quantity FMS the weight FMS works?
    Suda

  • 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 to calculate GP%

    Hi, all
    I put a formatted search Query to define GP% (UDF) in Sales Order row. My query is:
    SELECT (($[$38.21.NUMBER] / $[RDR1.QUANTITY.NUMBER]) - $[$38.37.NUMBER]) / $[$38.37.NUMBER] * 100
    38.21.NUMBER = Open Amount
    RDR1.Quantity.Number = Quantity
    38.37.NUMBER = Gross Profit Base Price
    I want the result is exactly same with Gross Profit of order table - GP % (right click Sales Order interface - Gross Profit...). The calculation is defining correct at GP% UDF. But when 38.37.NUMBER is 0 price, the UDF is come out 0 instead of 100 (At Gross Profit of order table, the GP % field is 100).
    Reason I put formatted search is want defined GP % at alert management. Thanks.
    Regards
    Cheh Lu

    Hi Chehlu............
    Its a staandard functionality of SAP. It gives GP at Sales level based on valuation method.
    You have to just right click on the form and select the Gross Profit option.
    It will give you GP on Sales Order.
    Regards,
    Rahul

  • How to display an error message after validation in Formatted Search?

    Hi SBO experts,
    if an error is detected on validation in a Formatted Search, how to display an error message to the user entering the data?
    Thanks & Regards,
    Raghu Iyer

    i created a formatted search query & attached it to the field 'Quantity' at Line Item level in Sales Order screen. just for testing purpose, i eneterd the following code lines in the query validating 'Quantity'
    if $[$38.11.0] > 50
    begin
    select @error = 1
    select @error_message = 'Vendor code cannot begin to X sign.'
    end
    the system throws the error : Internal error (8180) occurred [Message 131-183]
    actually, i need to display an error message to the user if Quantity is not in multiples of the OITM.SalFactor2
    if $[$38.11.0] % (SELECT T0.[SalFactor2] FROM OITM T0 WHERE T0.[ItemCode]  = $[$38.1.0]) > 0
    begin
    select @error = 1
    select @error_message = 'Error in Quantity.'
    end
    but, this expression to get the remainder itself seems to have some error
    $[$38.11.0] % (SELECT T0.[SalFactor2] FROM OITM T0 WHERE T0.[ItemCode]  = $[$38.1.0])
    i guess, % operator is used for modulo (to find the remainder of one number divided by another.) ? am i right ?
    Regards,
    Raghu Iyer

  • How do i deduct dates using formatted search with a query

    Hi Experts,
    I would like to know how to get the date difference using query and formatted search. Below are the details:
    1. I have created 3 Header UDF's composed of 2  Date type fields and 1 Quantity field.
    2. The first one is for the Original Date, the next one is for the Payment Date and the Last one is for the No. of Days Lapsed.
    What I would like to do is automatically compute for the number of days from the original date to the payment date. What query syntax should i use to achieve this?
    Thanks,
    Yvette

    Hi Yvette,
    It should be something like;
    DATEDIFF (day, T0.[createDate], T0.[closeDate] ) as 'Aging'  This is just an example. You may add your udf's instead of dates.
    Thanks,
    Joseph
    Edited by: Joseph Antony on Jul 2, 2010 1:53 PM

  • Using Form Variables in a Formatted Search

    Hi everyone, I'm relatively new to SAP B1 and just trying to get some info. I have created a few formatted searches, but I am having trouble with this one in particular.
    I am trying to get the 'Business Partner Type' Field under Business Partner Master Data (BP Type, [Form=134 Item=40 Pane=0 Variable=1 OCRD,CardType] to change the user defined fields category displayed [Form=-134 Item=9 Pane=0 Variable=62]
    For example, when CardType is Vendor ('S' value), I'd like the user defined fields category 'vendor'( '1' value) to show
    Here is my query
    SELECT CASE
    WHEN $[$40.0.1]='S' THEN '0'
    ELSE WHEN $[$40.0.1]='C' THEN '1' END
    Which is then assigned as a formatted search to that field.
    I was trying to find some sort of definitive guide on form variables and formatted search queries; if anyone can point me in the right direction, I'd appreciate it (I have seen the $[$x.y.z] variables but I am not 100% sure on their usage).
    Thanks in advance

    Hi,
    Try this:
    SELECT CASE  $[OCRD.CardType\]
    WHEN 'S' THEN '0'
    WHEN 'C' THEN '1'
    END
    Please also response for your previous open thread. You may just close it if you do not like the answer.
    Thanks,
    Gordon

  • Function modules for open quantity

    Hi Experts,
    I am having requirement,i have to calculate the open quantity for particular item in the range of dates like 01/02/2008 to 28/02/2008 and 05/03/2008 to 05/04/2008(depending on the user input).
    I have searched function modules:
    MONTHS_BETWEEN_TWO_DATES
    FIMA_DAYS_BETWEEN_TWO_DATES
    Please suggest me,Which of this function modules suits for my requirement?
    Is there any bapi for calculating open quantity for particular period of time?
    Regards,
    Bharath.

    Hi ,
    Open Qty of  particular item  ? is that PO or SO?...
    regards
    Prabhu

  • Formatted Search Query for BatchNo

    Dear All,
    I am using the following query as formated search for Identifying the batches availble during the creation of  Delivary document
    in a user defined column at row level. When i click on this field it's showing the Batches for the Item with Zero Qty also.
    I need to display only the batches where the QTY >0. This query displaying even the Zero Qty Batches also. Please help me to modify the below query for getting the above. Below is the  query .
    SELECT distinct  T4.[BatchNum] FROM [dbo].[OIBT]  T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode INNER JOIN DLN1 T2 ON T1.ItemCode = T2.ItemCode INNER JOIN ODLN T3 ON T2.DocEntry = T3.DocEntry INNER JOIN IBT1 T4 ON T0.BatchNum = T4.BatchNum AND T3.DocNum = T4.BaseNum INNER JOIN OWHS T5 ON T0.WhsCode = T5.WhsCode WHERE T0.[ItemCode] = $[$38.1] AND  T4.[WhsCode] = $[$38.24] AND T0.[Quantity]>=$[$38.11]
    Regards
    Srini

    i removed that T5, But It's  showing the  Batches where the qty in the main warehouse for that batch is Zero.That batch was actually present in another warehouse. And also when i am working on other warehouses it's showing the batches in the main warehouse where the qty is present.
    Regards
    Srini
    Edited by: Srini on May 11, 2010 10:24 PM

  • Formatted Search disapear information when uptade to SAP v8.8

    Hi, my dear experts:
    This time have a question a bout my DB that was update from 2007 to V8.80.235 pl 17 before the update all formatted search work with out any problem, uncluding on this new version but in some record (in production orden) several fields disapear the information, when remove the formatted search the information without any problem appears again.
    Some body know what need to do, I appreciate you help.
    Regards
    Ricardo Castro

    Gordon this is one of formatted seach asigned.
    if ($[owor.status] = 'P')
    SELECT T0.[Quantity] FROM ITT1 T0 WHERE T0.[Father] = $[owor.itemcode] and t0.code = $[wor1.itemcode] and T0.[ChildNum]  = ISNULL($[$37.15.number]-1, 0)
    else
    Thanks

  • How to activate formatted search

    Hi,
    I want to activate a formatted search when I open a form.
    Is that possible?
    Thanks
    Fabio

    Fi Fabio,
    ->> IF you assign the FMS in UDF on Document.
    ->> Auto Refresh of any field(for ex. AutoRefresh of Customer/Vendor Code or DocDate ).
    -> Assign the Refresh Regularly.
    Ex.
    1. Goto the UDF and Clcik ShiftAltF2.
    2. Select the SEARCH BY SAVED QUERY.
    3. Assign the FMS Query.
    4. Select the AUTO REFRESH WHEN FIELD CHANGES.
    5. Select Customer/Vendor Code or DocDate
    6. Check the
    Refresh Regularly

  • How to Define and Use Formatted Search in Sap Business One 2007

    Hi
        Any Document on How to Define and Use
    Formatted Search in Sap Business One 2007.
    Thanks

    Hi Manish,
    It is Very simple Procedure of defining FMS(Formatted Search)
    in SAP 2007B Same as SAP 2005B & SAP8.8 Version
    Do this,
    ->> Open the require Document.
    for ex. IF you add the UDF in Marketing Document(Sales/Purchase)
    1. Goto the UDF (or) any Default(Original) Field and Click ShiftAltF2.
    2. Select the SEARCH BY SAVED QUERY.
    3. Assign the FMS Query.
    4. Select the AUTO REFRESH WHEN FIELD CHENGES.
    5. Select the require Auto refresh field
    6. Check the Refresh Regularly (or) Display Saved Values.
    Regards,
    Madhan.

  • Formatted Search - Search in existing values

    Hi,
      In formatted search we have an option "Search in Existing values"
      i need to know in which table the values we enter in this screen gets stored?
    Manoj

    Hi Manojkumar,
    You need to turn on the "System Information" from within the "View" menu on the main toolbar (or as Juha said, use CtrlShiftD), but then go into the "Define New" option on the table.
    This will open the linked form and when you hover over the data you are interested in the lower left hand side the screen will give you details of the table and field ID  that you need for your query.
    Hope this helps,
    Julian

  • Formatted Search query

    Hi all,
    We have the following formatted search defined in OITM under Item Desc (foreign language):
    SELECT T1.DocNum AS 'Doc No', T1.CardCode AS 'BP Code', T1.CardName, T2.ItemCode, T2.OpenQty AS 'Open Qty', T2.WhsCode
    FROM [dbo].[ORDR]  T1 INNER JOIN [dbo].[RDR1]  T2 ON T1.DocEntry = T2.DocEntry INNER JOIN OITM T3 ON T2.ItemCode = T3.ItemCode
    WHERE T2.ItemCode = $[OITM.ItemCode] AND T2.OpenQty > 0
    When run, we get a pop-up window with the relevant information. My question is, is there a way to make the T1.DocNum something which can be drilled down on?
    Thanks alot!!
    Rajiv Agarwalla
    G.Mckenzie & Co

    Hello Rajiv,
    I think only the Choose From List pop-menu is available in SAP.  For me, the Choose From List is a user-friendly feature because you can find or search through codes.

  • Formatted Search (FMS) Hotkey

    I have a formatted search that I am forever using. Is there a way to link it to a key to execute when pressed?
    I've played around in the user menu and can have the query manager open on a hotkey, but not a specific Query.
    Any thoughts are appreciated!!
    -Scott
    Edited by: Paul Finneran on Sep 18, 2008 12:44 PM

    Hi Scott,
    I don't think it's possible to assign a hotkey to trigger any specific formatted search, the only other way to trigger a formatted search is to press shift+F2 whilst in the field, this has the same function as executing the formatted search.
    Kind Regards,
    Matt

Maybe you are looking for

  • Mid-2010 unibody 15-inch  macbook pro battery life

    The battery on my son's mid-2010 15-inch unibody macbook pro has a cycle count of 360 and shows its condition is "normal." What is the normal battery life on this computer? The reason I'm asking is that the trackpad is malfunctioning and he was told

  • Need help with Adobe Reader 11.0.0.8 and Group Policy Objects

    I am trying to deploy Adobe Reader 11.0.0.8 using Adobe Reader. I am using the AcroRead.msi I found in C:\Program Files (x86)\Adobe\Reader 11.0\Setup Files\{AC76BA86-7AD7-1033-7B44-AB0000000001} HOWEVER Instead of installing 11.0.0.8 it installs 11.0

  • Wireless - ipw2100 on laptop

    Hello there, I'm a new arch user and I'm having trouble setting up the wireless on my laptop. I followed the guidelines on the wiki but it still doesn't work, so I would appreciate it if someone could help. I disabled the router's protection, so I kn

  • Spark list removeChildAt error

    I'm trying to remove an item from the spark List called books like so: books.removeChildAt(books.selectedIndex); but i get an error when i execute the method: Error: removeChildAt() is not available in this class. Instead, use removeElementAt() or mo

  • Administrator option in Analytics

    I am not sure what was change but I can no longer see the Administation option in analytics with the highest level login we have or any other for that matter. Any ideas how to fix this? We use external table authentication. I've tried adding all appl