Query - Formatted Search in a User Defined Field

Hi,
I am having some problems with a very simple query but it doesn't seem to work. I insert this formatted search in to my UDF I made called Cost. The query I am using is:
SELECT  $[$34.0.0] - (I had to use variable number because this Unit Price field in the Item master data does not have a field name associated)
It is supposed to grab the unit price from the screen, however it is always displaying zero when I query it, and when I put it in the UDF as a formatted search, it give me the internal error.
I would greatly appreciate your help.
Thanks

Question 1: Where is this Cost UDF defined.  Is it at the Marketing document Header or row level?
NOTE:
The field reference for the Unit Price column is incorrect.  When you mouse over the Unit Price column you should see the values for Item=xx  Colunm=xx
The syntax is $\[$Item.Column.Type].  Therefore for your case it should be $\[$38.14.Number]
The type prefix can be 0 if you are accessing a Alphanumeric column.
If you user field is at the Header level the Formatted Search Query might not work unless you highlight that whole row and then click on the header level UDF and press Shift+F2
How have you set the refresh options?

Similar Messages

  • Formatted search in the User defined table

    Hi All..
    I created two user defined table one is for document row and other is for document master.So in the master table created one column named as Sales order no and through formatted search call the sales order no in that column.Now i want that in my child table i want to show the those items which belongs to the selected sales order no in the master table.So how can i do that through Formatted search.Is there any query of it then please forward it..
    Thanks

    Ya Sure..
    I need some quality check on the items after delivery so i am trying to manage it through the user defined tables.I created two tables first is document type ,Second is Document type rows.Now i created 5 user defined field in both the table.Now i want to call my sales order and its items in the UDT.so i created one fms and call the sales order in the Document table now when i double click on the first row after that i am able to see the new table which is the document row table .Now i need the item code and description of the selected sales order in the document rows table.So how the items and description can come in the row type table through FMS..
    I hope now u r able to get my scenario..

  • User defined fields window / formatted search

    HI
    I 've created a user defined field in the marketing documents
    I want tO put the result of a query into this field :
    I use a formatted search in order to have the result :
    SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = $[$4.0]
    My query is based on CardCode(item 4), but when the user defined field window is open, the item 4 is the cross of this form and i have the result next :
    SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = N'RSRCButtonCloseBox'
    Thanks
    Sylvain

    Hi,
    It happened the same today for me, but using both, $[$4.0.0] and $[$4.1.0]... both of them return that RSRCButtonCloseBox....
    So, what is wrong here?
    Regards,
    Leo

  • Formatted Search with user defined fields??

    Hai everyone,
    I know how to use the search.. I did like this...
    SELECT U_Discount FROM OITM WHERE ItemCode = $[$38.1.0]
    But now i want to know the other way...ie.
    SELECT U_TVal FROM OITM WHERE U_Tcode='??????'
    the where condition is to be like this -I have 2 user defined fields
    1. U_TCode
    2. U_TVal
    I want to select the U_TVal where the U_Tcode= ????
    HOW TO SPECIFY THE USER DEFINED FIELD HERE like  this one $ $38.1.0 ....or is there any other method??
    Thanks
    Vibin

    Its Same..I didnt try your way but i tried this
    select oNHand from OITW where ItemCode=$[RDR1.ItemCode]
    Here in sales order- when an item selected the Stock in different warehouse will be listed in quantity...
    Try that
    $[Tablename.FieldName]

  • How do I refer to a user defined field in a query  (using $ notation) ?

    if i have a user defined field in Invoice header called U_Test, and if I need to read it using a query (to be used on a formatted search).
    I am not quite sure of the syntax. can anyone help please?
    I tried
    $[$U_Test.0.0]  which is the accepted way with fields with numerical ids such as $[$8.0.0] etc.
    appreciate any help,
    Indika.

    Hi all,
    Aliw, the 38 is not the form number, is the Item Number (which I guess is a matrix). In your case the User Defined Field is a line UDF. In Indika´s case is a header UDF.
    And that´s the issue. As the indika´s UDF is a header UDF, it lays in a different form (which is named "-" + Main Form Name). Formatted searches work with the $[$Field.Column.Format] notation ONLY in the same form. So, if you try to get the UDF from another UDF, it will work with that notation (they are in the same form). But if you try to get the UDF from the main form, it won´t find it (It is in another form).
    In that case you should use the other notation, as Andrea, Alexey and Salvador told you in the posts before.
    Hope this clears a bit the issue.
    Regards,
    Ibai Peñ

  • User Defined Field that gives the date output of the last price update.

    We would like to create a User Defined Field (UDF) with a Formatted Search (FMS) on the Item Master form that gives the date output of the last price update specifically the wholesale price.
    Last Price Update
    Pricelist 2 = Wholesale
    Is this feasible?
    If it is feasible what is the recommended approach?
    Current working UDF on Item Master.
    /* Date output is based on all the latest updates on the Item Master.*/
    select max(updatedate)
    from aitm
    where itemcode = $[oitm.itemcode]
    Resources that were helpful.
    1.(Note:1165947 - Tracking Item Price Changes.)
    2. Case 4-I6: Query on price updates. Mastering SQL Queries for SAP Business One By: Gordon Du

    Thank you Gordon,
    We are looking for the date output of the 'Last Price Update' based on 'Pricelist 2 = Wholesale' which is the challenge.
    These 2 are the parameters for the date output, I should have mentioned that in my original message.
    Last Price Update
    Pricelist 2 = Wholesale
    Per reading a bunch of other similar Forum Questions it looked like it is might not be possible to do. With there being no date on the AIT1 table and AITM.Updatedate is based on any and all updates not just last 'Last Price Update' and not sure how to use the loginstanc.
    Thanks,
    Vern

  • Retreve current form value in user define field

    Hi,
    I got a questions, please help.
    I want to retrieve values in current form, like the quantity and discount in Sales order, into a user define field with formatted search, is it possible?
    Many Thanks!
    Paddy

    This is the Syntax of FOrmatted Search Query. This syntax will work only with SBO.
    $[$38.11.0]
    38 Represents the Matrix(Table) in a Marketing Document
    11 Represents the Quantity Field in the Matrix
    0 Represents the Number Format.
    Place your Cursor on the Matrix and Press CTL + SHFT + D, you'll find the Column information in the Left side of the Status Bar

  • Issue while deleting user defined field in oim 11.1.1.3

    All,
    Made a mistake while creating user defined field called "Profile for" (loing to OIM -> advanced -> configuration -> User configuration). We are trying to delete it. It appears to get deleted from user attributes screen. But when we run LDAP User Create and Update Reconciliation Task we get the following error below:
    oracle.iam.ldapsync.exception.ProcessLDAPReconDataException: oracle.iam.ldapsync.exception.ReconEventCreationException: Thor.API.Exceptions.tcAPIException: Profile for - LDAPUser object does not exists for resource object
    Is any thing else need to be deleted adn cleaned up?
    thanks in advance,
    Prasad.

    How do i check what resource object the recon task is running against. here is what i found so far.
    I cannot find LDAPUser resource object when i query Resource Management -> Resource Objects in design console. Same thing with Manage Resource and search (here i only find Xellerate User, Xellerate Organiztion, USERS_GTC, and Installation) in OIM advanced administration menu.
    The LDAP User Create and Update Reconciliation job itself has the following parameters (batch size, last change number, OIM employee type, OIM User organization name, OIM user type)
    I also decompiled LDAPUserChangesReconTask and it is looking for LDAPUser metadata from MDS directly.
    Prasad.

  • Linking a User Defined Field in Items table

    How to Link a User Defined Field in 'Item Master Data' table, to my own User Defined Table?
    Example:
    In Item Master Data table, I want to add 3 User Defined Fields, for e.g, Country, State and Region.
    When the value of Country combo is changed, values loaded in State and Region combos should change automatically.
    I'm storing the relationship between Country,State and Region in my own user defined table. I want to load the comboboxes with a query from that table.
    Or, if there's no solution to the above problem:
    when the Item Master data table is opened, can we launch our own form?
    Is there a way to specify that?
    Please reply me back.. I'm a beginner learning SAP.
    With Thanks in advance,
    Geetha
    Key: Loading a user defined field through Query defined by us.

    Geetha,
    You should search this forum on user defined fields as you will find many posts that may assist you with your question.
    HTH,
    Eddy

  • User defined field that looks up a system table?

    I want to create a user defined field that looks up parts in the items table (i.e. OITM).
    I know I can use a formatted search and that works, but I don't want users to be able to edit the field after the item has been looked up and pasted into the field.
    In the user defined field menu, there doesn't seem to be a solution to this. The only solution I can think of is to create a user defined table and then move over the items, and then periodically have the table be updated from the master item table (OITM).
    Thoughts?

    Here is the stored procedure I wrote, but it doesn't seem to work:
    IF @transaction_type IN ('A', 'U') AND @Object_type = '97'
    BEGIN
    IF NOT EXISTS (SELECT T0.ItemCode, T1.U_Part FROM [dbo].[OITM] T0, [dbo].[OOPR] T1
    WHERE T0.ItemCode = T1.U_Part AND T1.DocEntry = @list_of_cols_val_tab_del)
        BEGIN
            SELECT @error = 1, @error_message = 'Testing'
        END
    END
    So basically, I have a UDF called U_Part in the Sales Opportunity form, which will have a formatted search to look up parts, but if a user changes the text to something else (which is possible because it's a basic text field), then this should look up what is in that UDF and check it against the Item Master and give an error if it doesn't exist. However it isn't doing anything.
    Any ideas?
    Edited by: Gary Rey on Jan 21, 2009 4:56 PM

  • User defined fields in Crystal layout

    Hi All,
    I want to add user defined field values in crystal  layout for Sales order, but its not listed in RDR1 tables there but it's available in SAP query manager view. How can i get that in Crystal reports. please suggest on this.
    Regards
    Sree

    You can then remove the key and the fields in the database will keep their correct definitions rather than varchar(max) which is causing the initial problems.
    Adding extra keys may uause performance issues if you leave them there for a large table.
    I have also had issues of varchar(max) fields causing database connection issues when running the reports in 8.81 PL07.
    Rob

  • Adding user defined field in print layout design of Bill of matrial Report

    I want to add "Drawing No" which is user defined field in Bill of Material report need immediate help .

    Hi,
    If you add the UDF in BOM-Title then the UDF will be in OITT table.
    If you add the UDF in BOM-Rows then the UDF will be in ITT1 table.
    You will find BOM-Title or BOM-Rows in Production Module (ie., in User Defined Fields --> Manage User Fields)
    In PLD, You can print the UDF if you search in the above said tables.
    Raja.S

  • User-defined field in existing table

    Hello,
    I would like to know if it is possible to add a user-defined field in an existing table.
    Actually, I would like to add a combobox with other types of partners than vendors, customers and leads and add a user-defined field in the OCRD table.
    Thank you
    Regards,
    Thibault

    Hello,
    Your answers help me a lot !
    My code is working, i.e. when I create a new BP and choose another type in my comboBox, the information is saved.
    When I search a BP who has this type, SAP find the good BP.
    But, I don't see where the data is stored, I don't see anything which make the difference between 2 BP with 2 different types in the OCRD table.
    So, where SAP can make the difference?
    Thank you
    Regards,
    Thibault
    Message was edited by: Thibault Romieu

  • AffectsFormMode property of User defined field in system matrix

    Hallo
    I added one UDF in System matrix of  service call id at panel  Solution.
    I  set formated search for that UDF field to populate Symptons data from  system knowldge base form (table).
    I set the fromatted search property for that UDF Column is Automatic.
    So when i nevigate record on Service call form, this UDF column fetch the value and so form goes in Update Mode.
    Please i want to   AffectsFormMode  property for that column, so i  have to get the form mode is "OK"
    How it is possible.
    Pleaase help me
    Narendra
    Edited by: NarenKD on Dec 28, 2010 12:24 PM

    Hi H2
    It is true,
    But When i  open 'Service Knowledge Base'  child form  by clicking ID Link Button in Solution Tab of Service Call Form
    and update that form (here symptoms field important for me),
    it does not change the state of Parrent Service call form  to update.
    Also there is not any link between this two table SCL1 service call  and OSLT Solution knowldege table In PLD.
    so i create Symptoms  UDF in matrix at solution tab of Service call form.
    also i create formatted search to fill this column.
    I set that formatted search as "auto refresh when field change"
    so when i navigate through service call records. it featches and put value in that UDF column and make form state "Update"
    I want to avoid it.
    means when i navigate the service call, when the value of  that UDF Is different then OSLT table then that Service Call goes to update state otherwise it have OK state.
    I used query in formatted search to fetch the value for UDF
    What will be the solution for this problem.
    Also tell me Can i call formatted search through program means can i give formatted search command (shift F2. or press formatted seach button) in program.
    Regards
    Narendra
    Edited by: NarenKD on Dec 29, 2010 9:41 AM
    Edited by: NarenKD on Dec 29, 2010 9:50 AM

  • User-defined field assignment  in Contact object

    Good Day
    Experts:
    I guess this might apply to all SAP Business Objects.  Specifically, I am working with the oContact object.  A User-defined field has been added to the OCLG table.  I need to populate the field with the current logged on User.  I see that I can do the following with the intellisense but I am not sure where to go from here.
    vContact.UserFields.Fields.Item
    I tried but I get a message "Expression is a value and therefor cannot be the target of an assigment:
    vContact.UserFields.Fields.Item("U_Creator") = (GetUserCodeSess(g_B1Connection.Company.UserName))
    It feels like I should be able to set the User-defined variable through the object but I don't think I am doing it correctly.
    Any helpful hints?
    Thanks,
    Ed

    Hi Robert,
    I think the only supported way is to give full rights to the users and block changing field in the Item Master Data form through your addon.
    A non supported way is to use a query to update the item master fields
    Regards
    Ad

Maybe you are looking for

  • Open PO and open PR

    hi frd. help me in this reply. parameter : plant,material no,company code,storage location. display: material no, material desc, UOM, ROL, warehouse, open po, open po qty, open pr no, open pr qty. how to do this guide me in this report. urgent..

  • Insert into NVARCHAR2 columns(ORA_01461, ORA-01026)

    Hi, Oracle8i Client 8.1.5 (OCI8) Oracle9i Client 9.0.1 (OCI9) Oracle8i/9i DB I want to insert strings into a table with two NVARCHAR2 columns with OCI. NLS_NCHAR_CHARACTERSET is UTF8 (DB). The provided String is encoded in Windows-1252. The supplied

  • Audio pauses/stops on lockscreen / homescreen

    When Safari is playing an embedded quicktime audio file, the sound is fading to mute when I close the smart cover. Also when I press the power button, the sound also mutes. When I then press the home button to view the lockscreen, the play button doe

  • Big sized files won't merge adjustments

    I have a file that has the resolution 3500x3500 px. First I have a  black background and then I have added some noise and now I'm going to  adjust it with levels. I open up the dialog box from the menu and make  the changes with preview and I can see

  • When opening new tab, a new window opens instead; 2nd window does allow you to open new tab

    boot up firefox, click to open a new tab, a new window opens up instead; in the original window, if you keep clicking to open a new tab it opens it in the 2nd window.