on 09-10-2012 6:59 AM
hi friends
i need object type of distribution rules plz reply soon
regards
thiya
Hi Thiya,
You mean Loading Factor Object. It is 62. Try this it will help you
Regards,
Silambu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i want only object type of distribution rules
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi pedro
can u answer below post..
bcz this post is regarding this post..
ho did you know the 62 is belongs to distribution rules..
Can u plz share your knowledge little bit here...
Hi Thiya,
I think the object you are looking for is actually a service:
oCmpSrv = oCompany.GetCompanyService()
Dim oDLservice As SAPbobsCOM.DistributionRulesService = oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.DistributionRulesService)
Dim oDL As SAPbobsCOM.DistributionRule
' Add distribution rule
oDL = oDLservice.GetDataInterface(SAPbobsCOM.DistributionRulesServiceDataInterfaces.drsDistributionRule)
oDL.FactorCode = "1"
oDL.FactorDescription = "Desc 1"
oDL.InWhichDimension = 1
oDL.TotalFactor = 40
oDL.DistributionRuleLines.Add()
oDL.DistributionRuleLines.Item(0).CenterCode = "1"
oDL.DistributionRuleLines.Item(0).TotalInCenter = "10"
oDL.DistributionRuleLines.Add()
oDL.DistributionRuleLines.Item(1).CenterCode = "2"
oDL.DistributionRuleLines.Item(1).TotalInCenter = "30"
Try
oDLservice.AddDistributionRule(oDL)
Catch ex As Exception
MsgBox(ex.Message)
End Try
You can find this sample in the SDK Help. There is also a lot of extra info about the object there.
Hope it helps,
Best regards,
Pedro Magueija
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.