hi,
e.g, we select sales order screen, we will notice that the series (e.g Primary ) and DocNum (258) already shown. how to code these things ? my code are :
for series :
oCombo = Form.Items.Item("seriesComb").Specific
Dim ors As SAPbobsCOM.Recordset
ors = BaseAddOn.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
ors.DoQuery("SELECT T0.[Series],T0.[SeriesName] FROM NNM1 T0 WHERE T0.[ObjectCode] ='" + obj + "'")
Do Until ors.EoF = True
oCombo.ValidValues.Add(ors.Fields.Item(0).Value, ors.Fields.Item(1).Value)
ors.MoveNext()
Loop
for DocNum :
iNextNumber = Form.BusinessObject.GetNextSerialNumber("35", "ORDR2")
how get the above params in theGetNextSerialNumbe() ? hardcode the params ?
any helps. truly appreciate
thanks