Skip to Content
avatar image
Former Member

Freight Charges (Freight Tax Distrib. Method) DI API

Hi

Freight Tax Distrib. Method Value (None,Quantity etc) how to change thorough DI API

freight.png (10.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 04, 2017 at 09:47 AM

    Hi,

    Refer to AdditionalExpenses Object Members for the same. However it should be used something as below:

    SAPbobsCOM.Documents oPurchaseOrder = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders);
    oPurchaseOrder.CardCode = "V11111";
    oPurchaseOrder.Lines.ItemCode = "A00001";
    oPurchaseOrder.Lines.Currency = "EUR";
    oPurchaseOrder.Lines.UnitPrice = 50;
    oPurchaseOrder.Expenses.DistributionMethod = SAPbobsCOM.BoAdEpnsDistribMethods.aedm_Equally;

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      Ankit Ji

      I m notice, add freight value through DI API

      oPurchaseInvoice.Expenses.ExpenseCode = 1;

      oPurchaseInvoice.Expenses.TaxCode = strTaxCode;

      oPurchaseInvoice.Expenses.LineTotal = dblFRAMOUNT;

      DI API Auto Change Freight Tax Distrib. Method Value as Blank

      I want Freight Tax Distrib. Mathod = None as default