cancel
Showing results for 
Search instead for 
Did you mean: 

VOFM formula does not work well

Former Member
0 Kudos

Hi Experts,

We have below requirement:

for a certain sales org, customer and material combination, there should no MWST tax.

I created a new Formula condition valueand assign it into pricing procedure, when debug it, system can stop there, but the created sales order still has tax.

Pleas help to check my code below:


if komk-vkorg = 'A' and komp-matnr = 'B' and komk-KUNNR = 'C'.
  data wa_komv like LINE OF xKOMV.
  read table XKOMV[] into wa_komv with key kschl = 'MWST'.
  if sy-subrc = 0.
    clear: wa_komv-kbetr,
    wa_komv-kawrt,
    wa_komv-knumh,
    wa_komv-kopos.
    modify xkomv from wa_komv.
  endif.
  clear xkwert.
endif.

Thank you.

RIchard

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

One way is assign a tax code which is exempted from tax in VK11 for the required combination. Once you create sale order, change the tax classification manually to meet the above combination.

thanks

G. Lakshmipathi

Answers (2)

Answers (2)

Former Member
0 Kudos

Just curious as to why you are not using a condition record to set this tax = 0 for this combination of criteria?

Former Member
0 Kudos

Hi

I would rather use requirement instead of condition formula. Please remember about activating condition in VOFM. You should run RV80HGEN program as well.

Best regards

W.Prawecki

Former Member
0 Kudos

Hi Witold,

Thank you for your reply.

But now, MWST is required type in our pricing, so it is not possible to use requirement, but only by change its value to 0.

Richard

Former Member
0 Kudos

Hi,

In standard SAP pricing procedure RVAA01 for example, you also have mandatory conditiona type MWST and at the same time there is requirement 10 (program LV61A010) which activates condition only if plant is specified.

I would try doing similar in your case.

Best regards

W.Prawecki

Former Member
0 Kudos

Hi Witold,

Yes. It can be realized.

But MWST will not appear in item conditon tab, if I want to show MWST in condtion tab with value 0, how can I do that?

Thank you.

Richard