cancel
Showing results for 
Search instead for 
Did you mean: 

DI API Problem in Patch 30-SAP 2007 A

Former Member
0 Kudos
38

Hi,

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

oSalesQuotation.update

I am using 2007A patch Level 30.

Thanks and regards

Senthil.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I think that you set the valid values for "-","-" only in definition of UDF.

Former Member
0 Kudos

Hi Petr,

Yes, you are correct, But this coding was executed perfectly in Patch Level 15 the problem is in the patch level 30.

Regards

Senthil.

Former Member
0 Kudos

First of all, patch 30 was removed from SAP and instead of that is PL 35. Try it with this one.

Former Member
0 Kudos

Sorry, The patch level is 35 only.

Former Member
0 Kudos

So try in the UDF uncheck the chcekckbox Valid Values. It should works.

Former Member
0 Kudos

Hi Petr,

If i unchecked valid value check box , it would consider the normal edit text column in the Marketing document, But i want that column should be combo box type in marketing document. I have tried this patch level 37 but i can't succeed. Any clue abt this.

Regards

Senthil

Former Member
0 Kudos

Where you are using this combo? In rows or master?

If in master, you should the combo fill with your values with combo.validvalues

Former Member
0 Kudos

Hi Petr,

I want this combo in Line level, that means during run time dynamically i have filled the valid values. In UI i can able to do this, and the selected values are stored in the Line Tables. But if i am using DI API to assign any values then the system pop up the error message.

Actually this was working fine patch Level 15 the problem is only in Patch 35/37.

Regards

Senthil

Former Member
0 Kudos

Senthil,

if is it in lines, in each combo should be the same values to select. So if you define all valid values for that combo (user defined field, not only -,-), it must work.

I hope that setting of value is doing through

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

So if you dont have valid values for strBPProject, you should add the value first to valid values.

former_member187989
Active Contributor
0 Kudos

hi senthil,

Post your question in SAP Business one SDK forum.

Close this question.

Jeyakanthan