on 05-25-2011 7:29 AM
hi kings,
how to create tax types using DI API
Thanks & regards
B.Lakshmi Narayanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi shafi,
thanks for your valuable reply. First i need to create the Tax Types
i trying to following code but its show the Error "Enter valid code [OSTT.NfTaxId]"
Dim oAutCode As SAPbobsCOM.SalesTaxAuthoritiesTypes
oAutCode = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oSalesTaxAuthoritiesTypes)
oAutCode.Name = "DUTY"
oAutCode.VAT = SAPbobsCOM.BoYesNoEnum.tNO
Tax types have Name,Category,Parameter
i passed only Name and vat type i search remaining two attribute but its not available.
and also i trying to url code its also show the error
Dim oCode As SAPbobsCOM.SalesTaxCodes
Set oCode = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oSalesTaxAuthoritiesTypes)
oCode.Code = "VAT5"
oCode.Name = "VAT5"
oCode.Lines.STACode = "VAT"
oCode.Lines.STAType = "1"
oReturn = oCode.Add
If oReturn 0 Then
oCompany.GetLastError oError, errMsg
MsgBox (errMsg)
Else
MsgBox ("Sales Tax Code Added")
End If
thanks & regards
B.Lakshmi Narayanan
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.