Skip to Content

How to set 'Calculate Tax Automatically' (BKPF-XMWST) in IDOC INVOIC FI

Any idea on how to set 'Calculate Tax Automatically' (BKPF-XMWST) = 'X' in IDOC - message type INVOIC, process code INVF (FM IDOC_INPUT_INVOIC_FI)?

Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 19, 2015 at 04:34 PM

    Thanks to Rudra's answer, I manage to find a hint from that subroutine.

    To set BKPF-XMWST = 'X', go to tcode OBCE and flag the field "Calculate Tax". The idoc posted will automatically flag "Calculate tax".

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 19, 2015 at 03:13 PM

    Hi,

    Try this.

    Include LIEDIF38 Subroutine   SPEICHERN_KOPFDATEN. Create an implicit enhancement at the beginning and set  para_tab-mwst_brutto = 'J'. or you can use the SAP constant "JA"

    Check in debug mode first, it should set 'X' to  BKPF-XMWST . Check line number 31.

    R

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 19, 2015 at 11:22 AM


    What exactly are you looking for? Are you looking for an exit or something where this parameter can get updated or something else?

    Add comment
    10|10000 characters needed characters exceeded