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.

Similar Messages

  • How to activate several Formatted Search Forms !!

    Hi Guys,
    I have a problem concerning the manipulation of formated Search Forms. Actually when using the ActivatMenuItem() method, one needs a UID of the items to be activated. And I would like to use this method to activate several formated Search Forms but I don't know how to get the UID of those formatted Search Forms.
    While searching on the Forum, I have seen that some developers used following command SBO_Application.ActivateMenuItem("7425");
    I tried that and it works, but it only activates the first formatted Search Form saved in the CSHS table. My problem is how to activate the other formatted Search Forms and how to access their UID.
    Thanks in advance for Responding
    Bop

    Formatted searches are tied to an individual field on the screen.
    They are not launched by individual UID's, there is only one formatted search menu UID - 7425.
    The actual screen that is called is based on which field the focus is currently in.  If you are in form UID "1", field UID "1" it will call the formatted search (defined in CSHS) for Form 1 / Item 1.  If the focus is currently in field UID "2", it will call a different search.  If there is no formatted search defined on CSHS for the current field, then it will display a dialog asking if you want to create one.
    If you want to open other formatted searches for different fields in your form, simply place the focus on them before calling ActivateMenuItem("7425").  You can do this using the Click method.
    John.

  • 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?

  • 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

  • Formatted search in other form

    Helo for all,
    A have a question. Is possible make a formatted search in a field in the other form?
    Ex. I'm on screen of invoice and i want get a value of field the other screen (Purchase Invoice).
    Is possible? How To?

    Hi,
    as much as i know formatted searches don't work between different opened forms.
    i suggest you to make a small addon for this.
    regards
    David

  • Formatted search - how to get table or form name

    Hello,
    I'm trying to create a generic query for modifying "Journal Remark" on different documents (Goods receipt, invoices ...) thru a formatted search
    My problem is that I want to customize the "remark" according to the current document.
    is there a way to get the table name or the form number in a query ? or should I to create a different query for each document ?
    Regards

    Hi....
    If you activate the System Information from Menu Bar> View> System Information. Then when you move the cusrsor from any of the document you get some variable values which displays the ID of forms colums and rows.
    You can get this information for your FMS. There is no need to create no. of FMS for each Document. Just take the variables into the FMS and apply to the same ID documents.....
    Regards,
    Rahul

  • Problem with formatted search on UDO Form

    Hi,
    I've created an UDO and in the lines I have the fields ItemCode and ItemName. In the ItemName field I have a formatted search configured the next way:
           -Search by Saved Query
               -QueryName
           -Auto refresh when existing altered column
               -ItemCode
           -Refresh regularly
    This formatted search works fine when I do <shift> + F2 in the field. But when I change the field ItemCode and get out of the field it doesn't execute the formatted search.
    Any ideas?
    Thanks in advance, regards
    Vanesa

    Hi Vanessa,
    Firstly (and I'm not giving lessons on sucking eggs) does this work when run as a query with the $ field replaced with a litteral value that you know exists in the table you're searching (surrounded by single quotes)?
    The reason I say this is that I have had a few where as opposed to giving an error I've been hitting shift+f2 with absolutely NO feedback via error messages.
    Which form is this within? How have you used the variable element in the query?
    Is it possible for you to show the query? Along with details on which form you're using it in?
    Hopefully be able to help with more info,
    Julian

  • Trigger Formatted Search on Freight Form

    Has anyone gotten a formatted serch to fire on the Sales Order - Freight form based on the document total changing in the main Sales Order form?
    Scenario - we set the Freight to a fixed amount $50.00.  If the document total goes over $500 then we want to set Freight=$0.00 using a formatted search (i.e. shipping is free when the order is above a certain amount).
    In troubleshooting I tried to use SELECT $[$29.0.0] and also tried SELECT $[$-29.0.0] to see if the FMS could even return the Document Total on the freight form but it doesn't seem to be linked. 
    Anyone gotten this to work?
    -Frank

    I already tried using
    SELECT $[$29.0.Number]
    Results in Internal error 3006.
    I also tried setting the FMS to SELECT '0.00' with Auto Refresh enabled on When Field Changes = Document Total just to see if the FMS would fire when the main Sales Order total changed.  FMS would not fire.
    Appears to me that the freight form is in some way disconnected from the main Sales Order form as it relates to FMS.
    Anyone gotten this to work outside of going to SDK?

  • Formatted search on payment form

    Hi Experts!
    I would like to make a formatted search on payment forms-both outgoing and incoming- which copies the partnername or the accountname according to the doctype into the journal remarks field.
    I've created a query but it doesnt work. It runs error.
    SELECT case when $[ORCT.doctype]='A' then $[RCT4.Descrip] else
    $[ORCT.Cardname] end
    Please, can you help whats wrong with this?
    Thank you in advance!

    Try this
    SELECT CASE WHEN $[ORCT.DocType] = 'C' THEN $[$32.1]
    WHEN $[ORCT.DocType] = 'S' THEN $[$32.1]
    ELSE $[$71.2] END
    Good luck

  • Create Formatted  Search by code in a user form

    Hi, I want to create a formated search in a user form but it doesnt work using my form id (STEC_EXTRAS) as the search.FormID.
    I created the formatted search by SAP (Shift+F2) and in the table of formatted searches the formid appears as 2000001000
    ¿Where is the relation between my id and the id SAP uses?¿Any SAP table or conversion rule?
    Thanks for the possible help.

    Hello,
    When You create a form, the id (Type) can be set up by  Add function, ..... it is staring form 2000000000 ...
    Maybe Your "ID" STEC_EXTRAS is the Unique ID of the Form...... not the Type
    Public Const WM_USERFORM As Integer = 2000000000 ' User defined forms minimum ID
    Public Const YOURFORM As Integer= WM_USERFORM + 1 ' My form id will be  2000000001 
    oForm = m_SBO_Application.Forms.Add("MYFORM", SAPbouiCOM.BoFormTypes.ft_Sizable, YOURFORM - WM_USERFORM)
    'this is the same as
    oForm = m_SBO_Application.Forms.Add("MYFORM", SAPbouiCOM.BoFormTypes.ft_Sizable, 1)
    ' or the same as
    Dim creationPackage as SAPbouiCOM.FormCreationParams
    creationPackage  = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
    creationPackage.UniqueID = "MYFORM"
    creationPackage.FormType = YOURFORM
    creationPackage.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
    oForm = SBO_Application.Forms.AddEx(creationPackage)
    If you use  STEC_EXTRAS as FormType, You will see in the CSHS table STEC_EXTRAS as the FormId
    Dim creationPackage as SAPbouiCOM.FormCreationParams
    creationPackage  = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
    creationPackage.UniqueID = "MYFORM"
    creationPackage.FormType = "STEC_EXTRAS"
    creationPackage.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
    oForm = SBO_Application.Forms.AddEx(creationPackage)
    Regards
    J.

  • Dynamic SQL an Form values in formatted Search

    Hi all,
    Can I create Dynamically the where clause of a query (for a Formatted Search) finding that into a UDF of another table, and then store all in a Varchar(300) variable and use that variable as parameter of an EXEC?
    Sorry for my bad explanation, it takes less time attach the query ...
    so here it is:
    declare  @pol as varchar(8)
    set @pol = $[ORDR.U_PolProj]
    declare @internal_q NVARCHAR(300)
    select  @internal_q = T0.U_CondPol
    from [@PRG_CEN_POL_PROJ] T0
    where Code = @pol
    declare  @itcode as varchar(100)
    set @itcode = $[RDR1.ItemCode]
    declare @sql NVARCHAR(300)
    select @sql = 'select  result =  count(ItemCode)
    from OITM T0
    where T0.ItemCode = ''' + @itcode +
    ''' and ' + @internal_q
    exec(@sql)
    Could someone tell me what's wrong with this formatted search?

    resolved!!! It works

  • Formatted Search totaling several fields on unsaved form

    Hello Experts! I am trying to create a formatted search to total several UDF's, at the row level of a quote, without first having to save the record. HELP. I have tried everything except the correct syntax.
    $[38.U_COSTPLUS.1] * $[38.Quantity.1]     And I tried
    $[QUT1.U_COSTPLUS] * $[QUT1.Quantity]     And I tried
    $[$149.38.U_COSTPLUS] * $[$149.38.Quantity]  
    Any suggestions? How can I total several fields for a row, without first having to save the document?
    Thanks folks!

    Presuming that you are trying to use this formatted search on a row level field of a marketing document and U_COSTPLUS is a numeric field.
    The syntax would be $[$38.11]*$[$38.U_COSTPLUS]
    NOTE: Quantity field is column 11 - you may also spell quantity as $[$38.Quantity]. You were missing the '$' before 38.
    Good luck
    Suda

  • 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

  • SelectInputDate component in a search form - JDev 10.1.3.0.4

    Cheers to all of you buddies in this valley of tears, have a good day
    I have a table that contains a date column, and a search form to do "query by example" and its date field is a "selectInputDate" with its date chooser.
    The date column in the table is formatted as yyyy-MM-dd (assigned in the underlying BO).
    I assigned a "convertDateTime" with a pattern yyyy-MM-dd to the selectInputDate component.
    At this point, the page works correctly. I select a date and get the appropiate results.
    The problem rised when adding a validator to the "selectInputDate" component.
    I added a "validateDatatimeRange" validator and binded the Maximum and Minimum values to two java.util.Date fields (minDate and maxDate) defined in a session managed bean named depSessionBean. The binding was done using EL as #{depSessionBean.minDate} and #{depSessionBean.maxDate}. The effect is that the date chooser only enables dates within the range (good).
    The problem arises when I click on the "Execute" action button. All I get is a lovely error complaining about date conversions.
    The attached converter returns a String that is correctly used to query the data but the validator expects a java.util.Date (it does not accept String values).
    So, am I missing something? How can I get the converter and validator to work together?
    Thanks a heap for any help.
    A.Gurisatti
    This is the error I get when executing the query (2006-08-14 is the chosen date):
    500 Internal Server Error
    oracle.adfinternal.view.faces.convert.ConvertException: Could not convert instance:2006-08-14 of type:class java.lang.String into type:class java.util.Date
         at oracle.adfinternal.view.faces.convert.GenericConverterFactory.convert(GenericConverterFactory.java:189)
         at oracle.adfinternal.view.faces.validator.DateTimeRangeValidator.validate(DateTimeRangeValidator.java:27)
         at oracle.adf.view.faces.component.UIXEditableValue.validateValue(UIXEditableValue.java:378)
         at oracle.adf.view.faces.component.UIXEditableValue.validate(UIXEditableValue.java:206)
         at oracle.adf.view.faces.component.UIXEditableValue._executeValidate(UIXEditableValue.java:522)
         at oracle.adf.view.faces.component.UIXEditableValue.processValidators(UIXEditableValue.java:302)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at javax.faces.component.UIForm.processValidators(UIForm.java:170)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Frank,
    Thanks for your reply and yes I'm using BC (I allways forget that important piece of information).
    Unfortunatelly I still have a few doubts:
    - I suppose that assigning a pattern to a date column in a BO is for display purposes and in some cases to have the right conversions in where clauses. In this case, choosing yyyy-MM-dd (that is the default) is a coincidence and in this case, you are right it is superfluous. But suppose we use dd/MM/yyyy. In this case, the date will be rendered with this new pattern. Even more, I suppose that in a query by example, when building the where clause, JDev expects the given date to be a string with that same pattern (dd/MM/yyyy). So, we have the first conclusion: The selected date must be a String with the given pattern. That is why I assigned a converter to the selectInputDate component.
    I did some tests and concluded: The patterns in the BO and in the converter assigned to the selectInputDate component must match or the query won't work.
    The second step is to narrow the date range. The way I found to do it is by assigning a datetime validator to the selectInputDate component. This validator expects java.util.Date values for its min and max dates, and the date chooser works well (by enabling only dates between the given range).
    The problem rises when you submit the form. At validation time you have: a date expressed as a formatted String (needed for the query) and a validator expecting a java.util.Date to perform the validation. So, you get a casting error.
    All this is what I understood and concluded about the situation and, of course I could be completelly wrong.
    If my steps for configuring the search parameters are correct, there must be a way to do the String - Date casting and avoid the error.
    If my approach is wrong then there must be a correct approach for this kind of situation.
    Thanks a lot for your help,
    A. Gurisatti

  • Problem With Formatted Search.

    Hi to all,
    I have linked a formatted search to a UDF that lies at row level in AP Invoice. This field is used to display the Sales  Order Price. The requirement is that from SO we create a purchase order and subsequently create a goods receipt and AP invoice.. Now in invoice it is showin perfectly fine whether it is copied from goods receipt or purchase order.. But in the purchase order and goods receipt screen this query will not work. And the same query used in AP invoice is being linked to these documents. Is there any work around for this?? Is it possible to run queries based on the form numbers?? If so ho do i pull the form number in the formatted search query??
    Please Help!!!!
    Regards
    Aris

    I recommend creating separate queries for each document.
    ie
    1 formatted search to lookup price on sales order from AP Invoice
    1 formatted search to lookup price on sales order from GRPO
    1 formatted search to lookup price on sales order from PO
    then change the lookup to pull fields from the document that you are using as a reference.
    when you are building the formatted searhes start by returning the values that are you are using as a reference. That way you are sure that you are pulling the correct information.
    Then layer in the lookup to the sales order.
    If you get stuck I recommend that you copy and paste the formatted search in SQL Server management studio and replace the variables refereces with real values.
    In my experience troubleshooting queries is more effective when using SQL Server management studio. (the error reporting is better).

Maybe you are looking for

  • Report priniting issue

    Hi,      After executing a report iam trying to print the output but instead of printing it's going to the spool, i want this to be printed directly.iam getting this problem after upgrade is there a way to print directly.Please guide Thanks

  • CC runs under Mac OS 10.6.8; not under Yosemite 10.10.2

    We are on a secure network via a proxy server. Adobe CC desktop app installs and works fine on Win 7 machines and on our older Macs running OS 10.6.8. However, on our new Macs running Yosemite 10.10.2, and the same proxy config as the older Macs and

  • What can be erased from internal once iTunes has been copied to external?

    I was running out of internal space so i decided to run my iTunes from an external hd... now I just need to know what folders or information is safe to erase from my internal hd.

  • Drill up in Crystal Report

    I have a Crystal report in which we have used hyperlink say the report gets drill down from level1 to level10 i can able to drill down till last level..... But how can i drill up, ie going to previous level i have not used univerese for designing thi

  • Providing a Read-Only Version of OEM to App Developers

    Hello forum... In perusing OEM with one of our developers, he noticed when looking at Top Activity that one of his queries was using the wrong index and it helped him resolve a long-standing speed issue in his app. My dilemma now is that they want ac