hi sapscript masters,
i have a problem with the clearing of the VAT.
i have four line items with the value of 10000,10000,10000,10000 and the vat of the 4line items is 5600.
so am getting the correct vat where am happy with but the problem is using the transaction me22n i create the line items and and i get the VAT correctly but ...
once i see the vat and the total , i just go back and want to c again but now the VAT is increasing the double the vat .For ex the vat is 5600, so when i come next time it becomes 11200. its because the vat is not cleared when i come next time.
so i declared it globally and am clearing like this:
data: ka_kawrt like komvd-kawrt.
clear ka_kawrt. " clearing the vat amount.
but when i debug and see my clear statement is not triggering as result i get double the amount of the vat.
so where can clear so that it can clear the old vat.
i try to stop and c where it gets stoped but it stops only at my subroutine and no where else to CLEAR the VAT.
please let me know if you have any idea as to where to CLEAR.