cancel
Showing results for 
Search instead for 
Did you mean: 

Tax Creation using DI API

Former Member
0 Kudos

hi kings,

how to create tax types using DI API

Thanks & regards

B.Lakshmi Narayanan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Lakshmi Narayan,

Refer This....

Link: [url]

Thanks

Shafi

Former Member
0 Kudos

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

Former Member
0 Kudos

Pls give any solution

Thanks & Regards

B.Lakshmi narayanan