Skip to Content
author's profile photo Former Member
Former Member

DI API Problem in Patch 30-SAP 2007 A


I have created one UDF in the marketing documents(Type combo box and i set the default value to "-","-") and i am try to assign the new value to the UDF through DI API . I am getting the following error,

" 3 is not a valid values for property "U_BPProj". The valid values are "-","-"

Here 3 is my value.

my Coding

oSalesQuotation.Lines.UserFields.Fields.Item("U_BPProj").Value = strBPProject


I am using 2007A patch Level 30.

Thanks and regards


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 07:23 AM

    Hi senthilkumar,

    I must to add the value 3 in the ValidValue of the combobox before update.

    oCombobox.ValidValues.Add("3", "3");

    and then you can update your form.

    Hope i help you


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      as I wrote you already, when the value isnt inside valid values for user fieĊŻd, you will be not able to store them. Maybe in lower patch it worked, but it was bug.

      Before adding the new value you must exceed the valid values list for user field as

      oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)

      oUserFieldsMD.TableName = "table"

      oUserFieldsMD.Name = "name"



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.