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

Similar Messages

  • 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

  • Cannot enable an user defined field as the type of link

    I created an user defined field and set it to the type of link. I want to link it to a external file.
    But only the "visible" checkbox of the UDF is available, the "enable" checkbox cannot be actived (displayed in grey).
    Can someone tell me how to do next?
    Thanks.

    I did a lot of tries but still failed.
    http://faculty.stut.edu.tw/~jywu/others/B1UDF1.JPG
    I want to know how to use the function marked in the red-box in the above link. What's that for?
    When i created a UDF using the setting, I can only set it visiable, cannot active it. 
    Furthermore, I cannot find any document expaining how to set these parameters in user defined field function.
    Can someone help me?
    Thanks.

  • How to use user defined object with linked button

    Hi experts
    Can I use user defined table data with linked button. If yes then how. plz give me sample examples.
    Regards
    Gorge

    If you have an UDO in your form, or any other, the FormDataLoad eventhandler should be used.
    Take care, it is not inside the eventhandler.
    for VB:
    Select SBO_APPLICATION in the classes, and select FormDataLoad event
    Private Sub SBO_Application_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent
    in C#
    Add a new eventhandler as
    // declaration
    SBO_Application.FormDataEvent += new SAPbouiCOM._IApplicationEvents_FormDataEventEventHandler(ref SBO_Application_FormDataEvent);
    // eventhandler:
    public void SBO_Application_FormDataEvent(ref SAPbouiCOM.BusinessObjectInfo BusinessObjectInfo, out bool BubbleEvent)

  • Can't remove a user defined field with DI API.

    Hi,
    I'm using the code below to remove a user field.  However, the first time I run it, I get the message that:
    "Ref count for this object is higher then 0"
    The second time I run it, I get the message that:
    "No matching records found (ODBC -2028)"
    As you can see, I am killing the UserFieldsMD object.  In fact, when the function is entered, the object is nothing but later instantiated with oCompany.
    The result in both cases is that the field doesn't get removed.  What am I missing?  Any ideas?
    Thanks,
    Mike
        Public Function RemoveUserField(ByVal FieldName As String, ByVal TableName As String, ByRef ErrMsg As String) As Boolean
            Dim Result As Boolean = False
            Dim Err As Integer
            Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
            Try
                If Not FieldExists(TableName, FieldName) Then
                    Result = True
                Else
                    oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                    With oUserFieldsMD
                        .TableName = TableName
                        .Name = FieldName
                        Err = .Remove
                        If Err Then
                            oUtilCompany.GetLastError(Err, ErrMsg)
                            If ErrMsg = "No matching records found (ODBC -2028)" Then
                                Result = True
                            Else
                                ErrMsg = "Was not able to remove field " & FieldName & " from table " & TableName & " programmatically." & vbCrLf & _
                                         "Please remove it manually using the Tools menu."
                            End If
                        Else
                            Result = True
                        End If
                    End With
                End If
            Catch ex As Exception
                Throw ex
            Finally
                KillObject(oUserFieldsMD)
            End Try
            Return Result
        End Function
        Public Sub KillObject(ByRef Obj As Object)
            If Not Obj Is Nothing Then ObjectRelease(Obj)
        End Sub
        Private Sub ObjectRelease(ByRef Obj As Object)
            'This routine releases objects that were acquired with oCompany.GetBusinessObject().
            System.Runtime.InteropServices.Marshal.ReleaseComObject(Obj)
            Obj = Nothing
            GC.Collect()
        End Sub

    Hi Mike,
    The issue with your code is that you are not calling the GetByKey method of the field object. Until you do this the FieldID property is 0 so when the Remove method is called it will not try and remove the correct UDF (if you run SQL profiler then you'll see that SBO is looking for the UDF based on the table and fieldID values).
    Something like the following works for me:
    private void DeleteUDF(string sTableID, string sFieldName)
        SAPbobsCOM.UserFieldsMD sboField = (SAPbobsCOM.UserFieldsMD)_sboCompany.GetBusinessObject(BoObjectTypes.oUserFields);
        try
            int iFieldID = GetFieldID(sTableID, sFieldName);
            if(sboField.GetByKey(sTableID, iFieldID))
                if (sboField.Remove() != 0)_sboApp.SetStatusBarMessage("Error removing UDF: " + _sboCompany.GetLastErrorDescription(), SAPbouiCOM.BoMessageTime.bmt_Short, true);
        finally
            System.Runtime.InteropServices.Marshal.ReleaseComObject(sboField);
            sboField = null;
            GC.Collect();
    private int GetFieldID(string sTableID, string sAliasID)
        int iRetVal = 0;
        SAPbobsCOM.Recordset sboRec = (SAPbobsCOM.Recordset)_sboCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
        try
            sboRec.DoQuery("select FieldID from CUFD where TableID = '" + sTableID + "' and AliasID = '" + sAliasID + "'");
            if (!sboRec.EoF) iRetVal = Convert.ToInt32(sboRec.Fields.Item("FieldID").Value.ToString());
        finally
            System.Runtime.InteropServices.Marshal.ReleaseComObject(sboRec);
            sboRec = null;
            GC.Collect();
        return iRetVal;
    Note that the parameter sAliasID is the field name without the U_ prefix.
    Kind Regards,
    Owen

  • [Ask] User Defined Field

    Guys, I have two questions here...Hope you guys can help me solving the problems...
    1. How to make user defined field that link to user defined table?
    2. Can I make Query with Inventory master data as a base?
    Thx guys...

    Hi Dear,
    You can do this through SDK also as
    1) Create one UDT named OCT_ITEMSUBGRP1 as
    CreateTable("OCT_ITEMSUBGRP1", "Item SubGrroup1", 0)
    Create Table Procedure is
    Private Sub CreateTable(ByVal txttablename As String, ByVal txtTableDescription As String, ByVal txtTabletype As Integer)
            Dim iRet As Double
            Try
                OCT_tables = OCT_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                If OCT_tables.GetByKey(CStr(txttablename)) = False Then
                    OCT_tables.TableName = txttablename
                    OCT_tables.TableDescription = txtTableDescription
                    OCT_tables.TableType = txtTabletype
                    iRet = OCT_tables.Add()
                    OCT_Application.SetStatusBarMessage("The Table " & txttablename & " is Added.", SAPbouiCOM.BoMessageTime.bmt_Short, False)
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(OCT_tables)
                Else
                    OCT_tables = Nothing
                End If
                If iRet <> 0 Then
                    OCT_Application.MessageBox(OCT_Company.GetLastErrorDescription)
                End If
                OCT_tables = Nothing
                GC.Collect()
            Catch ex As Exception
                OCT_Application.MessageBox(ex.Message)
            End Try
        End Sub
    Step 2) Creating the Linked Field
    Create_FieldLinked("OITM", "SubGrp1", "Company Classification", 0, 0, 8, "OCT_ITEMSUBGRP1", "")
    Create Linked Table Procedure is
    Private Sub Create_FieldLinked(ByVal txttablename As String, ByVal txtFieldname As String, ByVal txtFieldDescription As String, ByVal type As Integer, ByVal subtype As Integer, ByVal size As Integer, ByVal linktable As String, ByVal ValidField As String)
            'Create Instance of UserTablesMD object 
            OCT_FieldL = OCT_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
            Try
                OCT_FieldL.Name = txtFieldname
                OCT_FieldL.Type = type
                OCT_FieldL.Size = size
                OCT_FieldL.Description = txtFieldDescription
                OCT_FieldL.SubType = subtype
                OCT_FieldL.TableName = txttablename
                OCT_FieldL.EditSize = size
                If linktable <> "" Then
                    OCT_FieldL.LinkedTable = linktable
                    OCT_FieldL.Size = 8
                    OCT_FieldL.EditSize = 8
                End If
                IretCode = OCT_FieldL.Add()
                OCT_Application.SetStatusBarMessage("The Field " & txtFieldname & " is Added.", SAPbouiCOM.BoMessageTime.bmt_Short, False)
                If IretCode <> 0 Then
                    OCT_Application.MessageBox(OCT_Company.GetLastErrorDescription)
                End If
            Catch ex As Exception
                OCT_Application.MessageBox(ex.Message)
                System.Windows.Forms.Application.Exit()
            End Try
            OCT_FieldL = Nothing
            GC.Collect()
        End Sub
    Hope this will help you..
    Warm Regards,
    Mahendra

  • User defined field values doesnot show up in summary tab

    Hi,
    I have created my own stylesheet to display some of my user defined field values (associated with organization address book entry type) in the summary tab of the addressbook entry. But Groupwise 8.0 client FAILS to display any of the user defined field values in the summary tab FOR ONLY ORGANIZATION ADDRESSBOOK ENTRY types. NOTE: These organization addressbook entries are created using the C++ Groupwise object API. But the Advanced tab of these organization addressbook entry shows those user defined fields with values in it.
    Also Groupwise 8.0 Client is able to display the user defined field values in the summary tab for the PERSON ADDRESSBOOK ENTRY types, that are created using the Groupwise Object API. Also when I create a Organization addressbook entry using the Groupwise Client (NEW ORGANIZATION) and fill in the user defined field values using the Advanced tab or that addressbook entry, the summary tab displays those user defined field values.
    So there could be some problem in setting the user defined field value for the Organization address book entry using the Object API or it could be Groupwise 8.0 Client issue in displaying the user defined field values ONLY FOR ORGANIZATION ADDRESS BOOK ENTRY, WHICH ARE CREATED USING THE OBJECT API. I also tried to see the underlying XML data in the summary tab and that XML data is missing the USERDEFINEDFIELDS and CATEGORIES tag for the organization address book entry.
    I would like to know, if there is any need for special handling only for Organization addressbook entry in Groupwise 8.0 API. Any thoughts or help is really appreciated.

    Hi,
    Does anyone have an idea?? Think I have the same issue. Except, when I log in the client (ver. 802) then all the info is displayed. But when the user logs in on the same client and the same pc, he sees the xml info except the office address.
    Any help is greatly appreciated!
    Grtz,
    Joost Brenters

  • How to remove User Defined field in programitically

    Hi,
           How to remove user defined field in programitically. send the code
    Thanks,
    P.Suresh Kumar

    Hi,
    Please take a look at this thread:
    Re: Can't remove a user defined field with DI API.
    Kind Regards,
    Owen

  • 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

  • Linking the UDO of type document to user defined field

    I created the user defined field and i need to link the UDO of type document to that user defined field. How to link the UDO to user defined field.

    Dear
    do you mean to add a user defined field to an document type UDO? if this  is the case,
    1. create the UDT
    2. go to Tools-> customization tools->User Defined Fields-Management, expand User Tables, add the udf to the UDT
    3. register the UDT as UDO.
    best regards,
    xiaodan an

  • Error -5002 when adding linked user defined field using DI API

    Hello,
    When I try to add a linked user defined field using DI API I get the error number -5002 with description:
    "The field 'Related Table' should consist of 8 alphanumeric characters with no valid or default values"
    I Get the error when I use the Add method.
    What is the solution for this problem? I use SBO 2005 A SP1 Patch 18
    The code I use is (.NET C# 2.0):
    SAPbobsCOM.IUserFieldsMD uf = (SAPbobsCOM.IUserFieldsMD)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
    uf.Name = "S_BUCO";
    uf.TableName = "OPOR";
    uf.Type = SAPbobsCOM.BoFieldTypes.db_Memo;
    uf.SubType = SAPbobsCOM.BoFldSubTypes.st_Link;
    uf.LinkedTable = "S_BU";
    uf.Description = "Description";
    uf.Add()
    Regards,
    Jeffrey

    Hi Jeffrey,
    Your code above does not match the settings you are using in the UI. In particular, the type and subtype you are setting in code are not correct.
    To create the UDF via code, set the field types as follows:
    SAPbobsCOM.IUserFieldsMD uf = (SAPbobsCOM.IUserFieldsMD)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
    uf.Name = "S_BUCO";
    uf.TableName = "OPOR";
    uf.Type = SAPbobsCOM.BoFieldTypes.db_Alpha;
    uf.EditSize = 8;
    uf.LinkedTable = "S_BU";
    uf.Description = "Description";
    uf.Add()
    There's no need to set the SubType property as you require a regular alphanumeric field.
    Kind Regards,
    Owen

  • 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 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 as a Link

    Hi All.
    I have an issue I need clearing up with.
    We have created a user defined field in the Item Master data..
    This field is a link to an image.
    the location/path is different from the default image folder specified under the genreal settings window.
    The picture does not appear when you click on the link in the user defined field, we have discovered that the folder give a permission denied message when trying to access it over the network.
    Could this be the reason the picture does not show?
    Thanks
    Jerusha

    You should have Full Permissions to the 'B1_SHR' folder in your Server, so that this problem will not occur.

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

Maybe you are looking for