cancel
Showing results for 
Search instead for 
Did you mean: 

Choose from list Problem !!!

Former Member
0 Kudos

Hello Expert !!!!

i have a problem in choose from list ..i want to show Production Order in choose from list which is in Released State,but when i add object type '202' it gives me all production Order number .

is there any possibility to show those production order which is in Released State..

please help me out...

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member689126
Active Contributor
0 Kudos

Hi

Try this code

Dim cflCreator As ChooseFromListCreationParams
                Dim oConditions As SAPbouiCOM.Conditions
                Dim oCondition As SAPbouiCOM.Condition
                Dim oCFL As SAPbouiCOM.ChooseFromList

                cflCreator = B1Connections.theAppl.CreateObject(BoCreatableObjectType.cot_ChooseFromListCreationParams)
                cflCreator.UniqueID = "POCFL"
                cflCreator.MultiSelection = False
                cflCreator.ObjectType = "202"
                oCFL = _form.ChooseFromLists.Add(cflCreator)
                oConditions = oCFL.GetConditions()


                If oConditions.Count = 0 Then
                    oCondition = oConditions.Add()
                    oCondition.BracketOpenNum = 1
                    oCondition.Alias = "Status"
                    oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                    oCondition.CondVal = "R"
                    oCondition.BracketCloseNum = 1
                    oCFL.SetConditions(oConditions)

                End If


            Catch ex As Exception
                MessageBox.Show(ex.ToString())

            End Try

Regards

Arun

Former Member
0 Kudos

Thank you very much brother

former_member689126
Active Contributor
0 Kudos

Hi

Please close this thread as answered.

Regards

Arun

Answers (0)