Formatted Search - BOM

Hi There,
I was wondering if anyone could assist on the following formatted search related query.
On the Bill of Materials screen I have added a UDF to the Header where I will do some calculations. But before that I have to be able to select the OITT.Code (BOM Code) and be able to use it in my query.
I know that in Marketing documents I can use $[$38.1.0] to get the Item code on line level, but how do I get it on Headers?
If anyone can assist it would be greatly appreciated.
Kind Regards,
Wynand Cilliers.

For the Header level fields the Column parameter does not apply.  Therefore it would be
$[$Field.0.Type]
For OITT.Code, that is displayed on the screen as Product No. use
$[$4.0.0]

Similar Messages

  • Issue with Formatted Search and Sales BOM

    Good afternoon,
    One of our customers uses a Formatted Search on the Sales Order row to lookup the Project Code stored against the Item.
    This works very well, except for when a Sales BOM is selected.  I assume the FS lookup is working correctly, but the screen is quickly refreshed to list all the component items related to the BOM.  This process appears to overwrite the contents of the Project field.
    We wish to keep this functionality, but retain the FS lookup results in the Project column.  Could the order of the process be changed so that the BOM refresh occurs prior to the FS lookup.
    Thanks
    Greig
    Edited by: Greig Burrows on Jul 21, 2010 5:57 PM

    Hi,
    For metadata, which metadata are you not seeing? Are they custom properties within the PDF, and have you checked if you have crawled properties matching these?
    I know there's issue with last modified on PDF's (http://sharepointfieldnotes.blogspot.no/2013/05/understanding-and-getting-sharepoint.html) 
    Thanks,
    Mikael Svenson
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • Formatted search on BOM how to access variable field from matrix?

    hi,
    i have assigned a formatted search to the Quantity field on the BOM. its as follows.
    declare @width numeric (19,6)
    declare @height numeric (19,6)
    declare @lenght numeric (19,6)
    set @width = Convert(numeric(19,6), $[$3.50.92])
    set @height = Convert(numeric(19,6),$[$3.51.93])
    set @length = Convert(numeric(19,9),$[$3.52.91])
    SELECT @width * @height * @length
    but when its executing i am getting internal error.
    Thanks in Advance,
    Vasu Natari.

    Hi,
    are you sure, that in @width , @height and @length is some value and not null?
    Try it as
    declare @width numeric (19,6)
    declare @height numeric (19,6)
    declare @lenght numeric (19,6)
    select @width = Convert(numeric(19,6), $http://$3.50.92)
    select @height = Convert(numeric(19,6),$http://$3.51.93)
    select @length = Convert(numeric(19,9),$http://$3.52.91)
    SELECT convert(numeric(19,6), isnull(@width,0) * isnull(@height,0) * isnull(@length,0)) as result
    Petr

  • Formatted Search on Order Grid with Bill of Materials templates

    This is for 2005A SP01 PL45 (latest patch as of now).
    We have a few formatted searches on the order details that trigger automatically when the item code changes.
    These queries work fine if the items are not part of a bill of materials.
    The queries trigger ok when we use the regular item codes for regular customers when monitoring the item code column.
    However, if you have a BP Catalog customer with a BOM then only the last row of the bill of materials fires and the rest of them do not.
    I tried bypassing this problem by making the queries monitor the Item Description.
    This still worked for stand alone items, but didn't work for bill of materials in either of the case.
    Bottom line:
    A. Formatted searched fire ok on either item code or item description if items are not part of a bill of materials.
    B. When they are part of a BOM, then
    - if we monitor the item code then they trigger ok for regular customers but only trigger on the last row if using BP Catalog codes;
    - if we monitor the item description then they do not trigger at all for either of the customers.
    Any suggestion on how to handle formatted searches for Bill of Material Templates with BP Catalogs?
    Thank you!
    Liviu

    Well, it is a Bill Of Materials "Template" type...
    Go to Production, Bill of Materials, select a product, quantity 1, select the BOM Type as Template and add two other items underneath it, each with quantities of 1.
    Save.
    Go to BP Catalogs, select one BP and add some names for these three items. Check the box to use BP Catalogs for that BP.
    Go to sales orders, add the query above to the free text column, set it as per the scenarios to trigger automatically on Item Code.
    Start two sales orders for this BP and for a regular one.
    Load the BOM item and observe the formatted search results.
    Repeat for the second scenario (where the formatted search triggers on the item description).
    Hope this helps.
    Thank you!
    Liviu

  • 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

  • Help needed for Formatted Search

    Hai Experts,
    would like to ask you some clarification on Formatted Search. In the
    query I found $http://$44.2.1 given in the criteria part.
    In some articles it was mentioned that, the 44 meant for the table
    connected with the form and 2 is field index and so on.
    Can you please explain how to find out those numbers and field index.
    I need to work out planty of FMS to fetch data into
    UDF automatically based on user input.
    Regards
    Anand

    Hi Anand,
    You may check these threads first:
    Re: Vendor default GL FMS help
    Re: Runtime data calculation
    Thanks,
    Gordon

  • Formatted Search - Restrict to Only One Customer on Activity Window

    Hello Experts:
    Am trying to create a formatted search to provide a suggested RMA Number on the Business Partners > Activity window in a UDF.
    While in Activity, the user should get a list of ONLY the one customer they are currently working with.  So if C0001 is being used in the Activity window, the list should show all suggested RMA numbers just for that customer of C0001, not any other customer. 
    When I use the following it shows all customers.
    --FMS 6BP Automated RMA Number
    SELECT
    T1.[CardCode] + ' - ' + ltrim(str(T0.[ClgCode]))
    FROM OCLG T0
    INNER JOIN OCRD T1
    ON T0.CardCode = T1.CardCode
    ORDER BY
    T1.CardCode Desc,
    T1.[CardCode] + ' - ' + ltrim(str(T0.[ClgCode])) Desc
    When I put in WHERE T1.CardCode = $[$ 9.0.0 ] in the right place it shows nothing...
    Any ideas on how to make only the one current customer in Activity window appear in the list???
    Thanks in Advance - Zal

    Thanks Istvan and Gordon...
    Istvan - that is the same as my SQL - just do not know how to show the $[$... correctly in this forum - it always goes to that http thing.
    Gordon - tried to use your SQL but it gave me an error of "Internal Error (-1003) Occured [Message 131-183] every time I tried to click on the magnifying glass.  However, due to your last line in the SQL it gave me an idea that eventually they were OK with - namely, the highest number to the top of T0.ClgCode...
    Thanks again guys - Zal

  • Formatted Search for Delivery Date field in SO not working

    Hi All
    Can anyone help me as to why my formatted search is not working?
    I am currently using SAP B1A SP01 Patch 19.
    I have created a user query as follows:
    SELECT $ [$10.0.DATE] + 5
    When I add this to the delivery field within the Sales Order and bring through the saved query which I set to auto refresh when the Posting Date field changes and to Display Saved Values it doesn't work.
    Any ideas?
    Thanks and best wishes
    Gail

    HI Gail,
    If I am not mistaken you want to add days to the posting date...if that is so then try this out:
    SELECT $[ORDR.DocDate.DATE]+5 From ORDR T0 For Browse
    Set The indicator to Auto Refresh when the fields change
    Nagesh

  • Formated search

    Hi all,
    In Dunning Wizard, step 5, I want to make a formated search to select only some documents. The Query I need is complicated so I tried to do Select ' '  or Select 'N' or Select 'Y' in all this examples when I do "Shift F2" nothing happens. Even with auto Refresh nothing happens. Perhaps Formated Searchs dont work on CheckBox Fields.
    How can I solve this?
    Any help will be apreciated.
    Best regards,
    José Silva
    Edited by: José Silva on Jul 16, 2010 12:45 PM

    HI SILVA,
    plz paste ur query ...
    then we update in query.
    Thanks,
    JRAJPUT

  • How to club 2 queries in one formatted search query

    Hi All,
    I have inserted a formatted search in the stock transfer for chnaging the 'From warehouse' based on series.
    I have written following query for same,
    SELECT $[$18.1.0]='08' WHERE $[OWTR.series] ='46'
    It is working Fine
    I want ot use same concept for selecting other based on other warehouse
    e.g
    SELECT $[$23.5.1]='02' WHERE $[OWTR.series] ='45'
    But I am not able to club these queries on one formatted search query can anybody help to group it in one formatted search query....
    Thanks and Regards,
    Atul Joshi
    Edited by: Atul Joshi on Dec 23, 2008 5:20 PM

    Hi Atul,
    You could define the quey like this
    SELECT
    CASE
             WHEN $[OWTR.series]='46' THEN '08'
             WHEN $[OWTR.series]='45' then '02'
    end
    from OWTR
    Regards,
    Vijay kumar
    SAP Business One Forums Team

  • Is there a way to NOT have the data from a formatted search highlighted

    Hi all,
    I have a formatted search that returns a big chunk of data, some comments that are then added to. When the fs is fired, it returns the data, but all of the data is highlighted so when the user starts typing they overwrite the data that was just returned. I know they could just hit the right arrow key or click their mouse at the end, but they don't do that half of the time. I also know they could use ctrl-z or undo when they do this, but they don't do that either. It would just be nice if they could fire the fs and when the data is returned, the cursor would be at the end of the data.
    Any thoughts?

    I don't think there are any options for you to change default system behavior like this.  What you may do is to change your FMS logic to get only one record if possible. Post your query here if you can.
    Thanks,
    Gordon

  • 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

  • Auto-refresh formatted search is not working properly...

    I have created a User Defined Field in Item Master named: FLD1 (Alphanumeric 30)
    Then I have created a User Defined Field in Marketing Documents Row: FLD1 (Alphanumeric 30)
    Now I want as follows u2013
    In Marketing Documents if I select any Item, the value saved in FLD1 in the Item Master will come automatically in the Field FLD1 of the Marketing Document.
    I did as follows u2013
    I have created a formatted search for the above marketing document (in Sales Quotation) for the field FLD1 as follows u2013
    Option: Search in Existing User-Defined Values according to Saved Query
    Query: GetItemFLD1 (SELECT $[OITM.U_FLD1] )
    Option: Auto Refresh  -
    When Exiting Altered Column
    Field: Item Description
    Option: Display Saved User-Defined Values
    But the above is not working automatically --- after saving the document if I click on the Formatted Search Marker then the value comes otherwise not.
    Can any one please explain the reason behind?
    for SAP B1 2007 B SP0 PL7
    Edited by: Narottam Das on May 5, 2009 1:53 PM

    Check this thread for explanation of Syntax of FMS:
    [Refer to Sales Order From Payment Means;
    Refer Suda Sampath  reply that explains clearly

  • Formated Search: Auto refresh with two conditions.

    Hi,
    I've created a Formated Search in one of my column.
    I defined my formated search as :
    - Auto refresh "When Exiting Altered Column" Item No.
    - Display Saved Values.
    Now how can I make it Auto refresh with two conditions?
    - Auto refresh "When Exiting Altered Column" Item No.
    And
    - Auto refresh "When Field Changes" Customers/Vendor Code.
    - Display Saved Values.
    Is there any way to make it work?
    Thanks In Advance.
    Bruce.

    Hi Bruce,
    You could try this trick.
    You need to execute SELECT1 in Col1 when Item No. column is altered or the Customer code is changed.
    Then, in the Item No. column asign a new Formatted Search which selects the Item No. column value (Its value) when the Customer code is changed.
    And in the Col1 asign a formatted search that acts when the Item No. column is altered.
    I think this should do the trick.
    Let us know if works.
    Regards,
    Ibai Peñ

  • 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

Maybe you are looking for

  • Idoc (async) - soap (sync) - file (async)

    Hi. I have a flow from idoc (async) to webservice (soap sync) and I want the response from soap to be written in file (async). I want to do this without BPM and I have read some posts about using modules RequestResponseBean and ResponseOnewayBean. Ca

  • Panther or Tiger: which is better for iBook 600?

    Hi, I will have my aunt's old iBook for maintenance here over the weekend, and I wondered if anyone has any comparative experience on Panther (10.3, currently installed) and Tiger (10.4) on a 600MHz iBook. I know, I am lazy, but I don't look forward

  • Error message in 2006 screen

    Hi, when i am assing the quota in 2006 a screen with error message come just before the 2006 screen -- Error message --     "No validity Intervel for key 2  30  30 " regrdas rj

  • HT2674 What does error code -36 mean?

    I have a folder that was transferred from my previous computer, and when I try to delete it, it reads that there are 40 items in the folder, but I can't see them. When I try to delete it in the trash, a pop up states that I cannot continue because th

  • PC Restore, iTunes and looking for my old iPhone Applications

    I did a PC Restore in my PC and I have to reinstall again all the software programs I reinstall iTunes and I get my account but iTunes is not able to recognise my old iPhone configuration. I can not view the Applications I bought !! The iTunes recogn