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]

Similar Messages

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

  • Display of document line items with user defined fields

    Hi all,
    I have created two user defined fields in CI_COBL structure and they are available on OBC4 screen. I maintained  optinal for entry in the screen layout. I posted one document with user defined fields and saved.
    Now the document is updated in BSEG table. I then display the document, and it display the doucment
    But when i double click on the one of the line items system gives an error that there is some problem in customising and entries missing in Table COBM.
    I checked OXK3 and see that in field information for user fields, it says entries maintained in table COBM.
    But still i couldnt display my line items in detail.
    Any solutions
    Thanks in advance
    Ram

    Yes your are looking at the correct sap note.
    Things look pretty straight forward in the notes documentation.
    1)Extend the VBKRED structure with the fields you want.
    2)Populate thse values in the user exit in program DBKMVF02 in FORM routine USER_EXIT_FUELLEN_XVBKRED.
    For extending a standard structure you need to create a zstructuree in se11 first and then append it to the standard structure.
    In your case you need to  extend VBKRED_EX1 structure rather than VBKRED.
    Regards,
    ravi

  • Problem Occurs when CFL is added with User defined field

    form-672-BOM
    item-3-datagrid
    U_EmpNo - user defined field column
    if i will give following codes under form load event will CFL bound with U_EmpNo
    or else plz suggest me with write codes
    oForm = SBO_Application.Forms.Item("672")
                oItem = oForm.Items.Item("3")
                oClmn = oItem.Specific
                oClmns = oClmn.Item("U_EmpNo")
                oClmns.DataSources.UserDataSources.Add("U_EmpNo", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
                MessageBox.Show("Did")
                AddChooseFromList()
                oClmns.DataBind.SetBound(True, "", "U_EmpNo")
                oClmns.ChooseFromListUID = "CFL1"
                oClmns.ChooseFromListAlias = "CardCode"

    hi

  • 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

  • Match codes and user defined fields

    Hi all,
    I would like to display match codes associated with user defined fields in tcode CJ20N. How do I do that:?
    regards,
    Mat

    Hi Ravi,
    I think I'm using the wrong terminology here...my apologies. Let me clarify. I will build a ztable that contains the field key from the screen and the values I want displayed in my drop down list. My search help will be linked to this table with an import parameter of field key. When the user chooses to view selectable values the search help will use the field key to filter the values in the ztable and display only those selectable values that match the field key. Does that sound correct?
    Mat

  • User defined fields in XL Reporter

    Hi
    I'm using SAP Business One 2007B PL:4,
    I cant able to enable User defined fields in XL-Reporter. How to enable this.
    Kindly help me in this.
    Awaiting for your response.
    Thanking You
    Best Regards,
    Gayathri.P

    Check this SAP Note: 976218  Upgrading XL Reporter with user defined fields exposed
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=976218]

  • User-defined fields for WBS

    Hi,
    Std SAP provides the following user-defined fields for WBS.
    4 numeric fields
    4 general fields
    2 date fields
    2 check boxes
    We would like to use as many as 20 numeric user-defined fields for wbs.
    Is there a way to do this?
    Thanks in advance.
    Manohar

    hi,
    It is not possible with user defined fields. You can achieve this using SPRO menu path Project System ->Structures->Work Breakdown Structure->Enhancement for Project Definition WBS lements -> Create customer specific fields in WBS.
    You have to use enhancement CNEX0007 to create the required fields.
    You will, ofcourse, need the help of an ABAPer to do this.
    Muraleedharan.R

  • 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

  • Binding a Check Box with a User Defined Field

    Hi everyone,
    i v created a user defined field (U_CheckPro)in the system table "OITM" with two values: Y for Yes and N for No. In relation to that i v also created a check box on the form "150" and would like to know how can i bind my checkbox with  my user defined field properly.
    The user would be than able to enable or disable the check box for each item (article). The user setting schould be than be active and valid in sbo-business logic, each time an item is selected. (for example in case of sales order ID 133, "OINV").
    Any helfpul hints? Samples would be welcome as well.
    Thanks and regards
    Alban

    > First of all you should remove the valid values
    > because checkboxes does not work with valid values...
    > Just give a default value.
    Hi Rasmus,
    thank you very much for your helpful hint. I guess my problem is solved by that - nevertheless here is my complete code sequence once again in case of possible errors.
    I would appreciate any additional suggestion for improvement of the same.
    Thanks and regards
    Alban
    >>>
    Private Sub AddItem()
            ' Test UserSource
            oForm.DataSources.UserDataSources.Add("U_CheckPro", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
            oItem = oForm.Items.Item("122")
            ' Adding a Static Text item
            oNewItem = oForm.Items.Add("StaticTxt2", SAPbouiCOM.BoFormItemTypes.it_STATIC)
            oNewItem.Left = oItem.Left + 20
            oNewItem.Width = 100
            oNewItem.Top = oItem.Top + 12
            oNewItem.Height = 25
            oNewItem.FromPane = oItem.FromPane
            oNewItem.ToPane = oItem.ToPane
            oNewItem.LinkTo = "CheckBox1"
            oStaticText = oNewItem.Specific
            oStaticText.Caption = "Test_Caption"
            ' Adding a Check Box item
            oNewItem = oForm.Items.Add("CheckBox1", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
            oNewItem.Left = oItem.Left
            oNewItem.Width = 20
            oNewItem.Top = oItem.Top + 15
            oNewItem.Height = 19
            oNewItem.FromPane = oItem.FromPane
            oNewItem.ToPane = oItem.ToPane
            oNewItem.DisplayDesc = False
            oCheckBox = oNewItem.Specific
            'binding check box to source
            oCheckBox.DataBind.SetBound(True, "OITM", "U_CheckPro")
        End Sub
    >>>

  • User defined fields in SC with searchhelp ?

    is it possible to link a searchhelp to user defined fields in a shoppincart ?
    I have already defined 2 fields in ZINCL_EEW_PD_ITEM_CSF which I can see and edit when I create a shoppincart, but for 1 field I would like to add a searchhelp which connects to the backend for retrieval of possible values. is this possible ?
    kind regards
    arthur de smidt

    Hi Arthur,
    Yes, this is possible
    Follow the below text in note 672960 User-defined fields 2
    ===
    Search results                                                           
    You have the option to see user-defined fields in the list of search     
    results. To specify them, use the following structures depending on the  
    document type:                                                                               
    Doc.type Set type Structure name                                  
           SC HEADER INCL_EEW_PD_SEARCH_HDR_CSF_SC                           
           SC ITEM INCL_EEW_PD_SEARCH_ITM_CSF_SC                             
           PO HEADER INCL_EEW_PD_SEARCH_HDR_CSF_PO                           
           PO ITEM INCL_EEW_PD_SEARCH_ITM_CSF_PO                             
           QUOT HEADER INCL_EEW_PD_SEARCH_HDR_CSF_QUT                        
           CONF HEADER INCL_EEW_PD_SEARCH_HDR_CSF_CNF                        
           INV HEADER INCL_EEW_PD_SEARCH_HDR_CSF_INV                                                                               
    Search criteria                                                          
    You can also use user-defined fields as search criteria. To do this, you 
    have to set fields XINPUT and XDISPLAY to 'X' in table ET_FIELDS for the 
    fields you want to use in BADI BBP_CUF_BADI_2 in method MODIFY_SCREEN.   
    The so                                                                   
    The fields defined this way are displayed if you choose the 'Extended    
    search' link.                                                            
    ===
    Also the below notes may help,
    752586     Customer fields in extended classic scenario             
    732112     CUF. Customer fields on item level disappear             
    728782     CUF. Account assignment fields disappear when openi      
    710474     CUF. User-defined fields on search screen                
    683684     CUF. Values are not transferred from input help          
    672960     User-defined fields 2                                    
    458591     User-defined fields: Preparation and use
    Kind Regards,
    Matthew

  • User defined field with Linked Table property

    Hi All,
    I know this has been posted several times but I cannot get this to work.  I am trying to add a user defined field and link it to a table. 
    I am getting the error "The field 'Related Table' should consist of 8 alphanumeric characters with no valid or default values " 
    Everything I check says that the code I am using is correct.  Is it possible the problem is that I am trying to connect to an SAP table instead of a user defined table.  Is it possible to link a user defined field to an SAP table?
    My code below:
                    oUserFieldsMD.TableName = "OITM"
                    oUserFieldsMD.Name = "SHP"
                    oUserFieldsMD.Description = "Must ship via"
                    oUserFieldsMD.LinkedTable = "OSHP"
                    oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
                    oUserFieldsMD.SubType = SAPbobsCOM.BoFldSubTypes.st_None
                    oUserFieldsMD.EditSize = 8
                    oUserFieldsMD.Size = 8
                    oUserFieldsMD.Mandatory = SAPbobsCOM.BoYesNoEnum.tNO
    Thanks
    Karen

    Hello  Karen,
    you cannot link a userfield to a system table. it has to be link to a user table.
    oUserFieldsMD.LinkedTable = "OSHP"
    when you have error, just try to do it using the same value in the application. If you cannot do it, it means you cannot do it neither with the DI
    Sebastien

  • User Defined Field with Link Type

    Hi,
    I am trying to create a user defined field to allow users to attach word documents to Item Master Data.
    I have successfully created a User Defined Field under master data with Type: Data, Structure: Link.
    It appears in the Item Master Data as I would expect. My questions relates to how to use this field. The first time I click on the field, a file browser window appears where I can select a file. Once I select the file I want I click ok and the path to this file appears in the field. The next time that I click on the field the file will open in its respective application.
    My question is: How when the field already contains a path to a file do I change this path so it points to a different file.
    Any help I can get on this would be greatly appreciated.
    Thanks
    Brian

    Hi,
    If you hold down Ctrl on your keyboard and then double click in the link it will allow you to browse to a different file.
    Regards,
    Adrian

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

Maybe you are looking for

  • Opening balances for excise registers

    Hi What would be the process for updation of excise registers with  opening balance. The transfer is from Legacy to SAP Regards Sanil

  • Different Apple IDs for iCloud on 2 iOS5 devices

    I have two Apple IDs. When setting up iCloud on myiPad I made the mistake of using a different Apple ID from the one I used on my iPhone, and there doesn't seem to be any way of reversing this so that they both access iCloud with the same Apple ID. A

  • Usage of PI SR in CE 7.2

    Hi, What are the configurations required in CE 7.2 to access PI wsdl published in PI SR. For this instance, I have create PI system in CE SR, but while I tried to search by selecting PI system, nothing displayed. I presume, I should display PI wsdl w

  • Painting Sharpness in an Adjustment Layer

    Is there a way you can paint in sharpness or blur for that matter? Can you use sharpness as an adjustment layer?

  • MySQL Error# : 2002 in Dreamweaver CS3

    I created a database in PHPMyAdmin for my site and when I try to connect to the DB from Dreamweaver I receive the error message # 2002 "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(s)" Does anyone have any idea how t