2014 Oct 17 12:01 PM
Is it possible to customize or to force invoicing process to calculate amount of statistical tax on invoice item even if total amount of invoice is 0?
Thanks in advance,
Mario
2014 Nov 24 10:03 AM
I didn't found standard or near standard solution so I implemented solution that could be called workaround.
There is FQEVENT 2645 INV: Fill Customer/Industry Fields in Invoicing Document that was promising but event didn't allow possiblity to modify sttax field of invoice item.
In order to be able to use it first I enhanced form event_2645 in inclue LFKKINV_INVOICEF09 of program SAPLFKKINV_INVOICE. This form accepts customizations from FQEVENT and uses it to modify p_inv_unit-invdoc-invdoc_i_tab structure which contains invoice items data. I had to enhance it in order to accept change of sttax if existed.
Once, form has been changed it was possible to include customization for calculation of sttax in FQEVENT 2645.
It is important to set conditions that calculation of sttax should be performed in this event just in case invoice total amount is equal to 0, amount of sttax is equal to 0, invoice item isn't tax item or one of tax exempted items.
For calculation of sttax amount I used function module FKK_TAX_LINES_CREATE.
Best regards,
Mario
2014 Nov 24 10:03 AM
I didn't found standard or near standard solution so I implemented solution that could be called workaround.
There is FQEVENT 2645 INV: Fill Customer/Industry Fields in Invoicing Document that was promising but event didn't allow possiblity to modify sttax field of invoice item.
In order to be able to use it first I enhanced form event_2645 in inclue LFKKINV_INVOICEF09 of program SAPLFKKINV_INVOICE. This form accepts customizations from FQEVENT and uses it to modify p_inv_unit-invdoc-invdoc_i_tab structure which contains invoice items data. I had to enhance it in order to accept change of sttax if existed.
Once, form has been changed it was possible to include customization for calculation of sttax in FQEVENT 2645.
It is important to set conditions that calculation of sttax should be performed in this event just in case invoice total amount is equal to 0, amount of sttax is equal to 0, invoice item isn't tax item or one of tax exempted items.
For calculation of sttax amount I used function module FKK_TAX_LINES_CREATE.
Best regards,
Mario