10-19-2015 7:00 AM
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.
10-19-2015 5: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".
10-19-2015 12:22 PM
What exactly are you looking for? Are you looking for an exit or something where this parameter can get updated or something else?
10-19-2015 1:14 PM
Is there any exit or suitable subroutine that I can do implicit enhancement to set field BKPF-XMWST = 'X'?
10-19-2015 3:58 PM
Can you please also let me know about the basic type of the idoc?
10-19-2015 5:08 PM
10-19-2015 4: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
10-19-2015 5: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".