Skip to Content
Former Member
Apr 07, 2017 at 07:20 AM

Combobox not loading UDO Series


Hi All,

I have created UDO from source and it works fine with my test db ( loads proper series and next docnum) but same code when i execute on my Live DB is not loading any Series.

Below is my code :

oItem = this.UIAPIRawForm.Items.Item("cmbSeries");

oItem.DisplayDesc = true;

oComboBox = (SAPbouiCOM.ComboBox)(oItem.Specific); oComboBox.ValidValues.LoadSeries("PriceList", SAPbouiCOM.BoSeriesMode.sf_Add); oComboBox.Select("Primary", SAPbouiCOM.BoSearchKey.psk_ByDescription);

oItem = this.UIAPIRawForm.Items.Item("txtDocNum"); oItem.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Editable, 3, SAPbouiCOM.BoModeVisualBehavior.mvb_False);

oEdit = (SAPbouiCOM.EditText)(oItem.Specific);

int temp = this.UIAPIRawForm.BusinessObject.GetNextSerialNumber(oComboBox.Selected.Value, "PriceList");

oEdit.Value = temp.ToString();

version is : SAP 9.2 PL03

pls help me what is wrong in my code

Thanks in Advance