on 12-22-2010 10:58 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.