on 04-26-2006 2:46 PM
Hello,
I want to know how much tax is charged on an item. I know that the Id is in SalesVATGroup and I want to find the Tax in OVTG. But OVTG is no part of the DI-API. What should I do?
rgds,
John
Hi,
Do you have an example for this newbie?
thx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe this will do the trick? Replace "myCodeValue" with the actual code:
---
Dim oRecordSet As SAPbobsCOM.Recordset
Dim taxRate As Double
'// Getting an initialized Recordset object
oRecordSet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
'// Performing the select statement
'// The query result will be loaded
'// into the Recordset object
oRecordSet.DoQuery("SELECT Rate FROM OVTG WHERE Code = 'myCodeValue'")
taxRate = oRecordSet.Fields.Item(0).Value
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If it isn't exposed by the DI API, you can always use SQL to retrieve the data. Create an SQL SELECT statement, using a RecordSet.
Regards,
Jakob
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.