Skip to Content
0

Freight Charges (Freight Tax Distrib. Method) DI API

Aug 04, 2017 at 05:29 AM

135

avatar image
Former Member

Hi

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

freight.png (10.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

ANKIT CHAUHAN
Aug 04, 2017 at 09:47 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi

i m trying with oPurchaseOrder.Expenses.DistributionMethod = SAPbobsCOM.BoAdEpnsDistribMethods.aedm_Equally;

DI API add Freight Tax Distrib. Method value is NULL show add/update any status. problem is Freight Amount Tax showing with R/off Account,

After Refresh manually Freight Tax Distrib. Mathod Field Value Freight Tax Amount Showing separate.

Please check JE value after manually changes Freight Tax Distrib. Mathod = None

but i want change/update Freight Tax Distrib. Mathod through DI API

error-je-before-update-freight-tax-distrib-method.png

correct-je-after-change-freight-tax-distrib-mathod.png

0
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

0