Welcome Notes

Welcome Viewers

12 April 2017

Set Document Series SAP B1

Dear All,
   We will see how to set Document Series in ComboBox using SAP Business one SDK.


   '***************************************************************

    '' Purpose : To Display Document Series in the Form

    '' Created Date : 24-11-2016; Author : LAKSHMI NARAYANAN.S

    '***************************************************************

    Friend Sub AddDocSeries(ByVal oForm As SAPbouiCOM.Form, ByVal oComboUID As Object)

        Try

            Dim oComboBox As SAPbouiCOM.ComboBox = Nothing

            oComboBox = oForm.Items.Item(oComboUID).Specific

            If oComboBox.ValidValues.Count > 0 Then

                While oComboBox.ValidValues.Count > 0

                    oComboBox.ValidValues.Remove(0, SAPbouiCOM.BoSearchKey.psk_Index)

                End While

            End If

            oComboBox.ValidValues.Add("5", "Primary")

            oComboBox.ValidValues.Add("-1", "Manual")

            oComboBox.ValidValues.Add("", "")

            oComboBox.Item.DisplayDesc = True

            oComboBox.ExpandType = SAPbouiCOM.BoExpandType.et_DescriptionOnly



        Catch ex As Exception



        Finally



        End Try

    End Sub