Formatted Search on User Defined Table

Dear Experts,
I have the following formatted search query on a user defined table : select $[dbo.[@SALES_BUDGET].U_AcctCode]
It throws an error when I attempt to execute it. What's the proper way to write formatted searches on User Defined Tables. Please advice.
Kind Regards

This works very well on the delivery docs :
  select  $[ODLN.DocNum] 
   on the header fields of a delivery document, Why not this
select  $[SALES_BUDGET.U_AcctCode]  
on a field in the User defined Table  ? Is it the syntax ?
Edited by: MARTIN KAMAU on Sep 27, 2010 2:28 PM

Similar Messages

  • Formatted Search on user-defined items

    Hi everyone,
           I have to edittext item, editA and edit B. I created a formatted search on edit B but with a condition depending on the value of my editA. My query results to an internal error. Below is my code. Thanks
    SELECT T0.[Field1] AS [Field1]
    FROM [dbo].[@TABLE]
    T0 WHERE T0.[Field2] = [EditB]
    What is the right format for getting the value of [EditB] during run time?
    Regards,
    Omann

    Hi,
    Create the User Query and Save it with some name...
    Declare @Item varchar(20)
    Set @Item = Replace(RTRIM($[$editA.0.0]),'*','') + '%'
    SELECT T0.ItemCode AS 'Item Code', T0.ItemName AS 'Item Description' from OITM T0 WHERE T0.ItemCode
    like @Item
    Assign the Query to the User Defined Item i.e for editB Item in the FORM
    With Regards,
    MadhuSudhana Rao.G

  • Formatted Search in User Define Field (UDF)

    Hello everyone...this is really puzzling and hope someone can help...2007A/000/PL42...
    1. We created a UDF on the OITB Table (Groups) called U_GrpDescrip
    2. We created a UDF on the OITM Table (Item Master) called U_IGrpDescrip
    3. We want the system to auto populate the U_IGrpDescrip (Item) with the value U_GrpDescrip (Group) everytime the Item Group is changed on the Item Master Data Window.
    So,
    1. We wrote this query...SELECT T0.U_GrpDescrip FROM OITB T0 WHERE T0.ItmsGrpCod = $[$39.0.0]
    2. Opened up a Blank Item Master Data Window.
    3. Placed cursor in the new U_IGrpDescrip
    4. Hit ShiftAltF2
    5. Selected "Search in Existing User...Saved Query"
    6. Double clicked on the appropriate FMS Query
    7. Checked the Auto Refresh
    8. Selected Item Group from the displayed list of fields
    9. Selected "Display Saved..."
    10. Update and then closed out the Item Master Data Window
    Now here is where it gets interesting...
    1. We go to the Item Master Window and change the Item Group and hit Update. Button on IMD Window changes to OK.
    2. The U_GrpDescrip from the OITB table does NOT change
    3. However, if we click the "Magnifying Glass" TWICE in the new field on the Item Master Data Window the description DOES change to the appropriate description on the OITB table...
    Can anyone help out here - this is really puzzling because we effectively use Formatted Search on other windows and they work fine, but this one seems to be a horse of another kind..
    Thanks for reading and thanks ahead of time for helping
    Zal

    Hello everyone - thanks for responding...
    I finallly figured out what is happening - and this is interesting
    1.  The field it is supposed to populate is on the main window of the Item Master Data (not on the side window of UDFs).
    2.  The field was placed there with Boyum.
    3.  When I do the formatted search in a test field that IS on the side window, the FS works perfectly.
    So - it seems if you use a FS in a moved field created by Boyum, it might not work - and now I turn my attention to what Boyum is doing.  Might not even need a FS with Boyum!!!
    Thanks to all who read and gave their suggestions - now you get your points!!!
    Take care - Zal

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

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

  • 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

  • How to fill the records from a User Define Table to PO item Grid

    Hi To all,
    I need to fill data from User Define table records into Purchase Order Item Grid.
    I created an UDF Filed in PO - Header Part - "PRS"(Filed Name)
    By using Formatted Search in itemcode column, i called a query,
    "Select itemcode, qty from (@user define tablename) where PRS = $http://OPOR.U_PRS"
    For eg:
    Output from querry
    ItemCode Qty
    ABC 1
    DEF 2
    DFG 7
    SDGD 9
    By using formatted search it is filling only first data in to itemcode column in PO Grid.
    Please help, how can i fill ALL the data in to my PO Grid?
    Thanks in Advance
    SAGAR

    The easisest way is to create datasource and the result bind to grid.
    Datasource:
               oDBDataSource = oForm.DataSources.DBDataSources.Add("@usertablename")
                Dim xoConditions As SAPbouiCOM.Conditions
                Dim xoCondition As SAPbouiCOM.Condition
                xoConditions = New SAPbouiCOM.Conditions
                xoCondition = xoConditions.Add
                xoCondition.BracketOpenNum = 1
                xoCondition.Alias = "u_zn"
                xoCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                xoCondition.CondVal = "cond"
                xoCondition.BracketCloseNum = 1
                oDBDataSource.Query(xoConditions)
    binding (example for matrix, in grid is simillar)
                oMatrix.Clear()
                Dim cols As SAPbouiCOM.Columns
                Dim column As SAPbouiCOM.Column
                cols = oMatrix.Columns
                column = cols.Item("colX")
                column.DataBind.SetBound(True, "@usertable", "u_x")
    oMatrix.LoadFromDataSource()
    hoep it helps
    Petr

  • Item Code Auto Generation Based on User defined Tables

    I need the Item code like
    PRODUCT TYPE-ITEMGROUP-ITEMCODE-SUBITEM-BRAND-COLOR  e.g .FG-01-01-00-001-00.
    I created the following User define Tables and link to Item Master data
    U_PRO             - FOR PRODUCT TYPE
    U_GROUP        - FOR  ITEM GROUP
    U_ITEMCODE    - FOR ITEMCODE
    U_SUBITEM       - FOR SUB ITEM
    U_BRD              - FOR BRAND NAME
    U_COLOR         - FOR COLOR
    i need a formatted search in Item code to fetch the codes from the user defined  table
    i tried with the following
    SELECT T5.[Code]'-'T2.[Code]'-'T3.[Code]'-'T4.[Code]'-'T0.[Code]'-'T1.[Code] FROM [dbo].[@BRD]  T0 , [dbo].[@COLOR]  T1, [dbo].[@GROUP]  T2, [dbo].[@ITEMCODE]  T3, [dbo].[@SUBITEM]  T4, [dbo].[@PRO]  T5 INNER JOIN OITM T6 ON T5.Code = T6.U_PRO WHERE
    T5.[Code] = T6.[$U_PRO] AND 
    T2.[Code] = T6.[$ U_GROUP] AND
    T3.[Code] = T6.[$U_ITEMCODE] AND
    T4.[Code] = T6.[$U_SUBITEM] AND
    T0.[Code]  = T6.[$U_BRD] AND
    T1.[Code]  = T6.[$U_COLOR]
    showing errors. Can any one help me regarding this. I badly need the query for Auto generation of Itemcode

    Hi,
    How can you assign those UDF value without ItemCode in the first place?
    Thanks,
    Gordon

  • Practical limitations to user defined table

    Hi all,
    I am thinking of setting up a user defined table which will have 5 columns and around 45,000 rows.  It will be used in a simple formatted search to retrieve the value in column 5 when the values in columns 3 and 4 match an item code and an invoice header code on an invoice. 
    Will a table of this size slow things down significantly?
    Regards, David.

    Hi David,
    It shouldn't be that slow, but if you're worried about performance, you can also add indexes (keys in SBO) to the UDT.
    For that go to User-Defined Field - Managment (I'm using SBO 2007), select the table and press the button Keys. Make sure no one else is connected for you to add the index (not even an add-on), otherwise you'll get an error.
    Hope this helps,
    Ian

  • How to create a Foreign key relationship between 2 user defined tables...

    Hi Folks,
    I have created two user defined tables... Where in i want to create foriegn key relationship between the 2 tables.... Can anyone guide the step by step procedure to do this scenario...
    Any help would be highly appreciated...
    Thanks

    Hi
    1.  In the 2nd table call the field of the 1st table which is a primary key.
    2.  Give the same field and dataelement name.
    3.  Select that field and then click on the foreign key field icon which is beside Search Help button.
    4. Then give short text, and the 1st table name.
    5. Then in the below box give the 2nd table name and 2nd table field name which you have called from 1st table.
    6. Then click on copy, then u will be able to see Check table name and check table field name beside foreign key table name.
    7. Then again click on copy.
    Regards
    Haritha.

  • Error creating user defined tables: Ref count (-1120)

    Hi all !
    I have to create user defined tables per code, so I wrote <b>2 main functions</b>, first <i>to create a table</i> (with TableName,TableType and TableDescription properties)and  and <i>second to add fields</i> (to a certain table which is sent as parameter).
    I call these functions to create multiple tables. For the first 6 tables it works totally ok. But beginning from the 7th table it gives that "<b>Ref count for this object is higher then 0.</b> " (-1120) error. All parameters are ok just as the first 6 tables.
    Found such an explanation like below in help files.
    <i>The DI API allows only one instance of a meta data object at a time. This maintains data integrity by preventing any manipulation of a business object while modifying the object's user fields. Therefore, verify that no other DI object is active except the meta data object.</i>
    But why do I get such an error after sixth call of the function (but not beginning from the second table )?

    Gül,
    Have you tried doing some grbage collection?
    Search for a topic: "Add Usertables and Fields while having a recordset"
    HTH
    Juha

  • Can we Customize Edit User-Defined Table Screen in Fusion Application

    Hi All,
    We have a requirement to add a ADFDI functionality to the 'Edit USer-Defined Table' screen by adding a 'Mass Upload' Button.
    Normally for Some of the screens (Fusion Compensation) i am seeing 'Personalize -> Edit Current Page' Option on Menu items on top. But on 'Edit User-Defined Table' i am not seeing this option in 'Personalize' Menu.
    So the questions is is this screen Customizable in Fusion Application? If So What will be EAR file which we need to use for Customization.
    The screen where we need to add ADFDI Functionality is under 'oracle/apps/setup' path.
    Can anyone point me to the Exact EAR on this and also let me know if we can customize it or not
    Thanks
    Kaja

    Generally the code structure can be observed run-time [url https://blogs.oracle.com/fadevrel/entry/finding_code_artifacts_for_customization]using the composer, however in your case the content comes through a portlet in which case the method does not work as you cannot drill down to the specific region details in the composer. Based on a search through the code I think the regions you are interested are:
    <li>hcmPayroll/userTables/ui/public_html/oracle/apps/hcm/userTables/ui/page/UserTableSearch.jsff --> This is the details page with header "Manage User-Defined Tables"
    <li>hcmPayroll/userTables/ui/public_html/oracle/apps/hcm/userTables/ui/page/ManageUserStructure.jsff --> This is the details page with header "User-Defined Table: <TABLE_NAME>"
    These would presumably be in EarHcmPayroll. I'll see if I can find out how the portlet content can be observed from the RT application..
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Insert to User Defined Table

    Guys.. How can i insert my data to my user defined table (Master Document), i have write code:
    Set oUserTable = oCompany.UserTables.Item("TR_MD_FAKPAJAK")
    oUserTable.Code = "1"
    oUserTable.Name = "TORO"
    oUserTable.UserFields("U_field1").Value = "toro"
    oUserTable.UserFields("U_field2").Value = "toro"
    oUserTable.UserFields("U_field3").Value = "toro"
    oUserTable.UserFields("U_field4").Value = "toro"
    oUserTable.UserFields("U_field5").Value = "toro"
    Dim retval As Long
    retval = oUserTable.Add
    If retval <> 0 Then
        oCompany.GetLastError lErrCode, sErrMsg
        MsgBox lErrCode & " " & sErrMsg
    Else
        MsgBox "Masuk"
    End If
    my question is, when i run always display error "-4002 To Generate This Document, first defined the numbering series in Administration Module",
    any idea guys ??
    Thx

    Hi Ria,
    Unfortunately you cannot insert data in to a UDO table using the DI API (by marking your table as a 'Master Document' table you have made your UDT part of a UDO). It is one of the current limitations with working with UDOs. All data must be entered through the UI (ie manually).
    If you just want to store data in a UDT then it is best to create the table as 'No object'. You can then use the DI API to read and write data to your table. However, you do lose the UDO functionality (eg no automatic saving or searching etc).
    Kind Regards,
    Owen

  • How to pop-up a text box for a grid item on a user defined table?

    Hello,
    I have a user defined table with a grid & one of the columns is for comments. What I'm trying to do is to pop up a text box when double clicking in the column field. This would be the same as the Item Details column in the Sales Order ittems grid.
    Thanks,
    Ron

    Please post your question on SDK forum.  Only SDK could meet your need.
    Thanks,
    Gordon

  • Print Layout to User Defined Table

    Hello guyz..
    I want a make preprinted for my user query from user defined table where the header information is from another query.
    I guess, the base template User Report (system) can only show the repetitve data from one query but the header area is not,
    could you help, showing the header information from another query ??
    Thanks Regards

    Ria
    The word is that you cannot use the PLD with user defined tables (i wish it was possible).  So in any case to do that you have to use third party tools such as Crystal Reports and Reporting Services

Maybe you are looking for

  • Open DNS? Why do we have to do this, all of a sudden?

    I'm one of the folks who has been experiencing this inexplicable hanging/not loading web pages and slower connection since I upgraded to Snow Leopard and the new Safari. I did this DNS thing, which is fine, I understand what it means - but I never ha

  • Using data source in adf application.

    Hi , JDev version : 11.1.1.6.0 I am planning to use data source in the application  , but there is an issue facing while running with data source. Exception in thread "main" javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.j

  • Problem with jar file & loading manifest file

    Hi Friends i developing one application using java Swing i deploying the whole application using the jar Utility. but while installing & deploying this application on my machine & on the another machine error occured which showing that failed to load

  • ITunes cannot see calendars

    I have encountered a problem with iTunes in syncing calendars. Until recently there was no problem. Now when I select sync calendars I get the following: No Calendars Found-Calendar syncing cannot be enabled because there are no calendars available.

  • Restricted Group as like as domain admins

    I have configure Restricted Group in GPO in mydomains.com. So I added a group called 'ABC_Support' and on the second box (This is group is a member of) was Administrators. in ABC_Support group, there is one user called 'tech_admin'.  Result: GPO was