Formatted Search in Matrix

How to create a query for formatted search if my variable is in the matrix(some column and some row).
I would like the SAP user get a list of all Workorders for a Job, and Job is a cell in matrix.
Workorder value should be shown in another cell in the same row.
Thanks a lot,

Hi Pavel,
The document 'How to Define and Use Formatted Search' on the Service Market Place goes through defining and using formatted searches with queries. It also explains how to use fields in an active form in a formatted search, look at the section called 'Search by Saved Query' in the document.
To find this document go to
www.service.sap.com -> Channel Partner Portal -> Solutions - SAP Business One -> Support -> Additional Information - Documentation Resource Centre -> SAP Business One 2005 A SP 01 -> How to guides -> 'How to Define and Use Formatted Search'
This document also gives some examples of the types of queries which are used in formatted searches.
Hope this helps
Noreen

Similar Messages

  • Is it possible to fetch matrix column through formatted search in UDF?

    HI,
    Is it possible to fetch the value of first row of quantity column in user defined field through formatted search?
    SELECT $[$38.11.number]
      does work but in user defined column of matrix only. I have requirement that when there will be only one row in matrix, the quantity should be accessible in user defined field. and for this, the above query gives internal error.
    thanks and regards,
    Binita

    David,
    I used the query sent by you and further facing following problem. may be my filtering is on wrong parameter.
    SELECT $[rdr1.quantity] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[rdr1.itemcode]
    this query gives correct result when assigning to matrix column.
    when I applied the same query to user defined field, then after selecting the row as suggested by you, it does give value but, in this case, it takes it from rdr1 instead of from matrix.
    for example, I have selected item A001 in matrix. if that item is already there in rdr1, then it fetches its quantity from table instead of that provided by me in matrix's quantity column
    Please guide further,
    thanks in advance,
    Binita
    Edited by: Binita  Joshi on Jun 5, 2008 2:45 PM
    even
    SELECT $[$38.11.number] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[$38.1.0]
    is not working. no clues.

  • Formatted Search Matrix

    Good Day
    Experts:
    I am trying to buid a Formatted Search for a UserDefined field on the SalesOrder Content tab Matrix.  I need to reference the ItemCode and Whse columns in the Matrix.  I currently have the following Formatted Search that returns an internal error. 
    <b>Select U_ItemCode AS 'Item Code', U_WhseCode AS 'Warehouse', U_BinLoc AS 'Bin Location', U_Quantity AS 'Qty in Bin', U_QCHold as 'QCHold', U_Rcv as 'Rcv', U_Ship as 'Ship' FROM [@TEMBIN] where U_ItemCode = $[$38.1.0] and U_WhseCode = $[38.24.0]</b>
    If I replace the attempted column reference with the actual values in the row and run the query, the correct results are shown in the Formatted Search window.
    I have searched the forum and did not find a solution.  Does anyone have information on what I may be doing wrong?
    Thanks,
    Ed

    Hi Ed,
    There's a typo in the syntax on your second field reference. It should read $[$38.24.0]. You're missing the $ inside the bracket. Hope that helps.
    Regards,
    Andrew.

  • Get matrix row data and put it into header field with formatted search ???

    Hi All,
    I ask your help concerning the following:
    On an invoice matrix I want to check all Itemgroup Codes of all items in the rows, if there are some rows' items with ItemGroupcode 101 and some others with anything else, then header field should be Y, otherwise N.
    My main problem is: how do I put a matrix row data to a header data with checking all rows in the matrix?
    A minor problem is that I can't get the formatted search to work on all rows when the formatted search is assigned to the user field in header.
    If I put the formatted search to a row field then the row field is filled with the proper value, but the same query assigned to the user field in header works only on the first row.
    What am I doing wrong?
    SELECT USEDPROD= CASE T0.ItmsGrpCod  WHEN 101 THEN Y ELSE N END FROM .[OITM] T0 WHERE T0.ItemCode = $[$38.1.0]
    (SBO 7.6)
    Any suggestions are welcome.
    Thanks.
    Bálint

    Dear Adele,
    Thanks for the answer. The major one cannot be solved. OK, I'll try to get a workaround.
    However I still do not understand why my query does not work in all selected rows, just in the first row, i.e. if I assign the query to a header field and I'm positioned in the first row it's OK, but when I add a new item to the second row or any of the next rows, the header field is not updated at all.
    Why is that so? Do you have any idea?
    Bálint

  • Can I reach specific line in a matrix using formatted search syntex

    I'm trying to get data  from screen in a specific line in a document. when i use $[$38.1], for example, in the formatted search it always gives the value in the row that the cursor is on., however i am trying to reach a line without requiring the user to have the cursor on that line. when i do that i always get the first line, is there a way to reach a spesific line?
    thank you,
    Sara

    Sara,
    You cannot reach a specific line.
    Regards,
    J.

  • 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 Searches Not Working on a PC

    Dear Experts,
    I have a case where formatted searches for one particular computer are not working at all. All the connected computers are working as required with all the formatted searches.
    What PC requirment is need to facilitate FMS functionality ?

    Dear MARTIN,
    there Are two types of FMS Are used in the SAP B1.
    Dynamic Value :- Select  $[$20.24.number]
    In this Example 20 is the matrix Id 24 is the Col Id And Number show the type of the Value
    Static Value After Save the Document :
    Select $[Odln.Docnum]
    You can Also Call the Store procedure in the  SAP b1
    Thanks
    Dhiraj

  • Formatted search values

    Hello experts
    How can I get access to formated search form?
    How to return its marix values (it returns 3 values)? I can choose forms uniqal ID, but how can I get a specific row from it?
    Or how can I display the list of indexes after puttin "*" in the column? what conditions must column have?

    Thanks for your reply.
    1. Well I think I could just make an Matrix object (its an item of formatted search form) and return its rows, am I right?
    2. Could you explain me how to display list of indexes after putting * and tab in a matrix cell (I have no CFL)?  I know it is possible but how should I bind column or maybe do sth else to gain this functionality?

  • Formatted Search Forms

    Hi Guys,
    Thanks very much to John for the answer concerning the formatted Search Form.
    But I still have the problem that although the formatted Search has already been defined, the system is always asking if I would to define a new formatted Search,
    Has someone already face the same problem ?? and do you know to solve that??
    Thanks,
    Bop

    Did you define the formatted search by setting up the details in the standard prompt screen, or did you use SQL to update the CSHS table?
    If you did it by SQL updates, then it is possible you haven't updated all the fields exactly as required.  If for example you leave the ColID field blank because you are not dealing with a matrix it won't work and will prompt you to define a new search.  This field requires "-1" in it for the search to work.  Mistakes in the other fields can also cause the same behaviour.
    If you are doing it via sql, I would suggest that you first set it up through the standard dialog, test it and note all of the field settings.  You can then delete it and reproduce them all settings through SQL.
    It would be great if CSHS was exposed through the SDK - that would eliminate these types of problems.
    John.

  • How can i get totals in columns with formated searches

    How can i do this with SDK if it isn´t posible since formated searches

    This is not possible with formated searches.
    With SDK, depends on if it is Matrix or Grid, on if it is a system form/your own form. But basically, loop throw the form or datasource, and do the sumatory.
    Regards,
    Ibai Peñ

  • Formatted Search returns no values

    Good Afternoon
    Experts:
    I have a situation where I am using a Formatted Search on the BINS column of the Inventory Tab matrix for the ItemMaster Data screen.  It works great...displays the information I am looking for.  Here it is:
    Select T0.U_BinLoc AS 'Bin Location', T0.U_WhseCode AS 'Warehouse', T0.U_ItemCode AS 'Item Code', T0.U_Quantity AS 'Qty in Bin' FROM [@ITEMBIN] T0 where T0.U_ItemCode = $[OITM.ItemCode]
    <b>Issue:</b>
    If there are no entries in the @ITEMBIN table for the item in the ItemNumber field, the FormattedSearch box does not pop-up.  Good so far.  However, the screen changes to Update mode. 
    <b>Questions:</b>
    1)Is there some kind of "no result invisible" character that is getting returned back to the column behind the scenes? 
    2)How can I alleviate this behavior and just have the screen stay in OK mode if there are no results from the Formatted Search?
    Thanks,
    Ed

    John:
    I was not aware I could utilize that type of functionality in the query for a formatted search. Thanks for the suggestion...I will try it.
    Ed

  • How can change the query where clause values in formatted search

    Hi
    I have a formatted search with the below sql
    Select ItemCode,ItemName from OITM
    where ItemCode like 'FX%'
    how can I change 'FX%' to another value
    I tried to make it as paramter
    where ItemCode like $[ItemCode]
    but I am receiving an error
    sincerely yours
    Riade Asleh

    Try this:
    Select ItemCode,ItemName from OITM
    where ItemCode = $[$5.0.0]
    5 = Item number of form (On item master data 5 is item-number)
    0 = Column of item... since item 5 is no matrix 0 shoul be used.
    0 = Casting type (0 is default, but int, string and date is possible)

  • Formatted search on invoice

    I want to do a formatted search on a invoice, and i must get the LineNumber of each invoice line , and with this linenumber and the docentry, put a value in a userfield(the userfield is in each line) How can i get this linenumber? It's something like $[Item_number.Colum_Number]? Does it iterate itself through de lines?
    Thanks!

    Hi Miguel Angel,
    If you activate the debugging info, you can see that it is the 0 column, so it will be $[$38.0.0] .
    38 for the matrix object.
    0 for the column.
    0 fot the format.
    Regards,
    Ibai Peñ

  • Formatted Search Inconsistency

    Hi All,
    Quite frustrated with a formatted search at the moment. Your help is appreciated. I've got an amount and a percentage field. I want to work out the amount after discount.
    If I do this calculation in a matrix, it works fine, but on the header of a record it does not. Herewith my queries: (I have the same fields on header of invoice and on rows): Amount field is Units and Totals, Price and Perc field is Units and Totals, Percentage.
    In matrix (working):
    SELECT $[$38.U_Amount.Number] - ($[$38.U_Amount.Number] * $[$38.U_Perc.Number] / 100)
    On header (NOT working):
    SELECT $[$U_Amount.0.Number] - ($[$U_Amount.0.Number] * $[$U_Perc.0.Number] / 100)
    I have also tried with $[Table.Field], but that doesn't work on either header or lines.
    Please help,
    Thanks!!!
    Adele.

    OK, got it working.
    I didn't know you can do it this way, but the way I got is solved is as follows. 
    SELECT $[OINV.U_Amount.Number] - ($[OINV.U_Amount.Number] * $[OINV.U_Perc.Number] / 100)
    I thought the .Number was only for the notation of $[$Item.Row.Type]
    Now it's working!!!
    Thanks Ibai for the other notation and thanks Juha for suggesting the query window.
    Thanks for your help.

  • Problem in formatted search runing by code

    Hi all, this is my problem:
    I have a one formatted search in one column and i want run it in lost focus of other column. In the forun appear this code to do but something wrong occurs in my case. The formatted search seems run and in one moment the resul value appear in the matrix but in the moment dissapear and the old value remains. Why the formatted search result dissapear?
    this is my code:
    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_LOST_FOCUS && pVal.ItemUID == "38" && pVal.Before_Action == false && pVal.ColUID == "U_n_formato"&&KEYDOWN_NUMERO_FORMATOS)
                    oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount);
                    oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("38").Specific;
                    try
                        oMatrix.Columns.Item("11").Cells.Item(pVal.Row).Click(SAPbouiCOM.BoCellClickType.ct_Regular,0);
                        SBO_Application.SendKeys("+{F2}");
                    catch
                    //oItem.Click(SAPbouiCOM.BoCellClickType.ct_Regular);
                    KEYDOWN_NUMERO_FORMATOS = false;
    Thank you all again.
    Regards.

    Hi
    you can set the true value to KEYDOWN_NUMERO_FORMATOS = true.
    in Got focus event of  column uid "U_n_formato"
    regards
    senthil

Maybe you are looking for

  • I cannot scroll through my photos in iCloud on my pc

    Ok, I'm feeling like a complete idiot, but I have found no way to scroll through my albums or folders in the browser when I'm in iCloud.  I have to click on an individual picture and go through by using the arrows...which is very inconvenient when yo

  • Como puedo activar mi iphone

    ayudenme mi iphone no se puede activar dice que el servidor de activacion no esta disponible temporalmente que puedo aser urgente

  • SBS 370 2.1 Speaker

    My speakers power cable has broken. Creative doesnt stock this product anymore. Where could I order a new one elsewhere? Thank you for responding. Oliver Borowski

  • HT4519 I can't send mail from iPhone 4 checked settings and SMTP please can you help

    I can't send mail from iPhone I have checked the settings etc but still no joy. Can you help,please thanks.

  • Sound Card for the Mac Pro

    Hello, I've searched around but can't seem to find any definitive answer to buying a sound card for my Mac Pro. I want to plug in a guitar and microphone for garageband and voice overs on FCP. Any ideas? Thanks, Jake