Skip to Content
Aug 31, 2020 at 11:25 PM

Why my TaxCalculationProcedure doesn't run?

122 Views Last edit Sep 03, 2020 at 07:43 AM 3 rev

Hello experts,

I have a doubt related to Tax Calculation Procedure.

In my case, I have created a BCC for BO TaxCalculationProcedure and assigned to a Country:

Then, I've created a Enhancement for CalculationProcedureForTaxes (filter is configured to scoped previous TaxCalculationProcedure).

and the following dummy code in the ABSL:

import AP.FO.PriceAndTax.Global;

var result : PriceAndTaxItemCalculateTaxOutbound;
var caltab : collectionof TaxCalculationInput;
var caltabout : collectionof TaxCalculationOutput;
var calinout : TaxCalculationOutput;
var calin  : TaxCalculationInput; 
var taxbaseamount1;
var taxlevelid;
caltab = InputData.TaxCalculationInput;

 foreach  (calin in caltab ){
	calinout.DeductiblePercent = calin.DeductiblePercent;
	calinout.TaxBaseAmount.content = 100 * 10;
	calinout.TaxPercent = 15;
result.PriceAndTaxItemCalculateTaxOutbound = caltabout;
return result;

Then, I created the BAC scoping all elements in my solutions and deployed:

Then, I went to Business Configuration and selected the question to include my configuration in project.

I would expect that, with this configuration, everytime a tax is calculated in SAPByD, my Tax Calculation Procedure would execute (and a breakpoint place in code, would be hit), but my code is never reached.

What could it be wrong or missing?

Thanks in advance.


hf2iu.png (8.6 kB)
jz32x.png (12.1 kB)
ndcqw.png (10.4 kB)