Skip to Content
avatar image
Former Member

VOFM formula does not work well

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 23, 2011 at 05:55 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 22, 2011 at 06:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • avatar image
    Former Member
    Apr 22, 2011 at 06:30 PM

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

    Add comment
    10|10000 characters needed characters exceeded