cancel
Showing results for 
Search instead for 
Did you mean: 

Freight Charges (Freight Tax Distrib. Method) DI API

deven_jadoun
Explorer
0 Kudos

Hi

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

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

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

deven_jadoun
Explorer
0 Kudos

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

deven_jadoun
Explorer
0 Kudos

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

m_felicella
Participant
0 Kudos

Hi, have resolved this problem '

Have same example for this

Many thank's