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

Similar Messages

  • I need to execute a formatted search when the field loses focus

    Is this even possible?  I do NOT want to force the users to press shift-f2 every time to validate/search on every field on the form.  This is absurd.  How can I trigger a formatted search on a field when it loses focus?
    I tried activating menu item #7425, but it's not executing the one on the field that loses focus, but a different one.  I guess it only works on the active field??
    I tried catching an earlier event, but after it executes the formatted search on the right field, it places the value on whatever field just gained focus instead of the one it was assigned to.
    Any ideas here?  We cannot force our users to press shift-f2 on all these fields!
    The only other idea I have is to not use a formatted search but instead try to create some sort of popup form with a grid and my own query.  There has to be an easier way, right?

    Bryan:
    I use the following on a KeyDown event for when the User tabs out of a field after entering data if the data they entered is not valid.  Perhaps you could try this in the LostFocus event:
    g_B1Connection.Application.SendKeys("+")
    Also, I have used this in the KeyDown event:
    DisplayLookup("txtWO0")
    Private Sub DisplayLookup(ByVal objText As String)
            Try
                WOItem = WOForm.Items.Item(objText)
                WOItem.Click(SAPbouiCOM.BoCellClickType.ct_Regular)
                g_B1Connection.Application.SendKeys("+")
            Catch ex As Exception
                g_B1Connection.Application.MessageBox(ex.Message, "Ok", 1)
            End Try
        End Sub
    Thanks,
    EJD

  • 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

  • Remove  Formatted Search on the field or Delete Formatted Search

    How to Delete or Remove the Formatted Search set on the Field ?
    Appreciate your help.

    Alt-Shift-F2
    Without search
    Update

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

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

  • 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 working Partially on SDK Field

    I have a text field on the Service call screen called
    "A"
    I need the field to be updated with a value taken from the Item Master table, U_A field.
    I have created my query as below,
    SELECT I.U_A FROM OITM I
    WHERE I.ItemCode = $[$33.0.0]
    and set a formatted search on the field A in the Service Call screen to refresh regularly when the Item No field changes.
    The Formatted search does NOT fire when the item number changes.
    It fires only when I do Shft + F2
    HOWEVER if I try the formatted search on a system field on the same screen such as the Description field, then the Item Number Change fires the formatted search.
    Does anyone know of this resriction, or a workaround please?
    appreciate your help.
    Thanks,
    Indika

    Hi Felipe,
    The problem happens when I use the formatted query on a text field I created using the SDK only. It works on any other SAP field.
    as I mentioned, if I press Shift + F2 then it works regardless.
    I tried this on the Item Master screen too with the same result. of course I changed the query to $[$5.0.0].
    Threrefore I don't think it has anything to do with the query syntax , rather the SDK field.
    in any case here is the code (vb6) I used on the Item Master
    Private Function temp(ByRef pval As SAPbouiCOM.ItemEvent) As Boolean
        Dim oItm As SAPbouiCOM.Item
        Dim oForm As SAPbouiCOM.Form
        Dim oRelateItm As SAPbouiCOM.Item
        Dim iRelateItmHt As Integer
        Dim oEdtBox As SAPbouiCOM.EditText
        Set oForm = mObjSBOApplication.Forms(pval.FormUID)
        With oForm
            '---text
            Set oItm = .Items.add("maxGstT", it_EDIT)
            Set oRelateItm = .Items("76") 'closed on date edit box
            oItm.Left = oRelateItm.Left
            oItm.Width = oRelateItm.Width
            oItm.Top = mObjSBOApplication.Forms(pval.FormUID).Items("36").Top   'item group top
            oForm.DataSources.UserDataSources.add "dsmaxGstT", dt_SHORT_TEXT
            Set oEdtBox = oItm.Specific
            oEdtBox.DataBind.SetBound True, "", "dsmaxGstT"
        End With ' With oForm
    End Function
    Message was edited by: Indika Dekumpitiya (spelling)

  • Include the "created by" field in formatted searches

    Hello
    Very stupid question : how do you include the "created by" (usersign) field in a formatted search for marketing document ? Where do you find the variable numbers since this field is not visible on screen ?
    Thanks for your help
    Fabrice

    HI Milton Rafael Mazzali ,
    $[USER] will display user number only.
    First decided where u want to display user name. Create a formatted search for that field with this Query  "SELECT T0.U_NAME FROM OUSR T0 WHERE T0.INTERNAL_K = $[USER]" and select auto refresh when customer code/name changes.
    This will work.
    Regards
    Ramesh Kumar

  • Extra Formatted Search per field?

    Hi Experts,
    Currently we have a formatted search on Sales Orders which runs if you press SHIFT+F2 when in the item code field (or press the magnifying glass).
    It shows us the most recent items that the customer has purchased.
    Is it possible to add another formatted search to that field which will run if we use a different shortcut (i.e. SHIFT+F3)?
    Thanks
    Greig

    Hi Greig,
    A nice feature from you post.  However, one UDF can only assigned one FMS for current B1 design.  You probably need to create another UDF if you have another logic.
    Thanks,
    Gordon

  • Formatted search on User Table

    Hi..,
          I need to set formatted search for user table which is @DCNR . My Requirement is that i need to  Pick CST NO from BP Master  . In my user screen i had taken CARDCODE value using CFL which is binded to the field U_ven in the table @DCNR.Using this CARDCODE value i need to pick CSTNO from BP master to the user screen which is binded to the table (@DCNR).My Query is as follows but it is not working,
    SELECT crd7.taxid1 from crd7 inner join @dcnr on crd7.cardcode  = @dcnr.u_ven where crd7.cardcode = $[@dcnr.u_ven]
    U_VEN field contains card code value.
    Do i need to follow some other terms in order to write formatted search on user table.
    Hope some one would help to fix this problem.
    thank u,
    -Ashok Krishnan

    Dear Mr Krishnan,
    As a starting poing I would suggest reading these documents regarding UDF and Formatted search:
    https://websmp108.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_HIER_KEY=701100035871000437965&_OBJECT=011000358700004463532006E&_SCENARIO=01100035870000000183&
    https://websmp108.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_HIER_KEY=701100035871000437965&_OBJECT=011000358700003625432006E&_SCENARIO=01100035870000000183&
    let us know if they were usefull.
    Kind Regards,
    Marcella Rivi
    SAP Business One Forums Team
    Edited by: Paul Finneran on Aug 14, 2008 1:15 PM

  • Formatted Search on Document Tax.

    Hello All,
    Can I assign a Formatted Search on the Document Tax(That field is always Diabled).
    If there is a way to do it please let me know.
    Thanks in Advance
    Manish Chaudhary

    Hi Manish,
                  U can assign formatted search for any field in B1 system. If u want to disable that field, u have to goto form settings and select table format Tab, select Tax field and then selct the check box Visible and uncheck the Active.
    Thanks,
    Suresh Yerra.

  • Formatted Search defined on an item added with the UI API

    Hello,
    I have added an Edit Text with the UI API on the Sales Orders form. It is visible and enable.
    I have linked a Formatted Search to this Edit Text.I have indicated to refresh the value on Supplier Name changed.
    I have linked the same formatted search to the Remarks field with the same conditions of launching.
    When I change the BP name, the formatted search on theremarks field is launched, but the formatted search on the Edit Text is not launched.
    Why the formatted search on the Edit Text is not launched when the condition for refresh is true?
    Thanks for your help.
    Best regards,

    Hi,
    This is a simple Edit Text which is not bound.
    I can launch manually the formatted search, but it is not launch automatically!
    It seems that SBO can't launch automatically FS on user forms and user items.
    I have tried to define a FS on the Fixed Asset master data form and you can only launch the Formatted search manually.

  • Golden arrows in a formatted search

    Hi
    I have a simple query that works fine and returns the golden arrows so I can drill into the documents.
    I then created a header UDF on the sales order and put a formatted search on that field.  The formatted search is set to use that query with no auto refresh. So the user will come to that field and hit Shift F2.   That also works fine the problem is when the results pull up there the golden arrows are no longer there.  Is it possible to retain the arrows in this situation?
    Thanks.

    Jared,
    This is a shortcoming with Formatted Searches where the link arrow will be lost. 
    I am not aware if there is a way to retain the link arrow.
    Suda

Maybe you are looking for

  • Multiple Oracle Clients on Same Machine for different apps

    I was not able to find info that answered this so sorry if I missed something that explains this. At our site we have many applications some I know lots about some I'm not even aware of because we have mulitple sites. The application I develop uses a

  • Adobe Reader XI won't launch, can't download or open existing PDF files.

    Running Windows 7 and have had no trouble with PDF files until few weeks ago.  Now Adobe Reader Xi won't execute and I can't download or open existing PDF files using Adobe.  Interesting that I can open existing PDF files unsit PaintShop Pro X4 but n

  • TO_NUMBER and ORA-01722 invalid number pls delete

    I cannot see where to delete a post I made. I found out my problem. It was in my NLS settings. Decimals were set to be commas instead of periods. please disregard this post, and delete if you are a moderator I recently tried to bring in lat/long coor

  • Which is better for loading?

    Hi, In our applications, in most of the places we are loding some animated swfs in our mxmls. So, in this place we are using 1.<mx:Loader source="...../xxx.swf" /> is this will be better or 2.<mx:Image sorce="@Embed(...)" > 3. <mx:Image contentPath="

  • AddressBook API or documentation buggy?

    I started a simple utility application using Address Book api. I load the contacts from network and I was able to create person records and add to address book, but 1. ABAddressBookHasUnsavedChanges returns false after all these 2. I call ABAddressBo