Hi All,
I am creating a form.In that i want to maintain Document number for each form(each order)(like in sales order form (Document No. field)).
Please help me to maintain the document number either manually or by system generated.If u have code example please send.
I tried for Manage series and all.But i couldn't get.
Expecting ur reply soon
Thanks
V.Rangarajan
Hi V.Rangarajan,
I haven't used this code yet, but herewith an extract from the SBO SDK Training material which I think is related to your problem.
// create a combo box for the series oItem=oForm.Items.Add("SeriesName",SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX) // fill the combo with relevant series oComboBox.ValidValues.FillWithSeries(True, False, 0) new method oComboBox.DataBind.SetBound(True, "@MATH", "Series") // edit text to hold the numbering of the series oItem = oForm.Items.Add("SrValue", SAPbouiCOM.BoFormItemTypes.it_EDIT) oEditText.DataBind.SetBound(True, "@MATH", "DocNum") // get the next series number in add mode lNum = oForm.BusinessObject.GetNextSeriesNumber(CLng(str)) oEditText = oForm.Items.Item("SrValue").Specific() oEditText.String = lNum
I don't know if this will solve your problem, but hopefully it will put you on the right track.
Hope it helps,
Adele
Hi Adele,
Thanks for ur reply. I have already tried this.I think i am not following the correct steps.
Can u please explain the steps to do that.Like do we need to create UDO like that.
At their example they have given as @math ,how to like this.This
oComboBox.ValidValues.LoadSeries(True, False,0) giving as invalid arguments I tried with
oComboBox.ValidValues.LoadSeries(True, SAPbouiCOM.BoSeriesMode.sf_Add) this also giving problem
Please help me to solve this problem of generation doc number(either manually or primary) in the edit field of userdefined form.
Thanks,
V.Rangarajan
Add a comment