04-15-2013 11:52 AM
Hello Guys,
Is there any BAPI for FB02 which updates the
reporting country feild and
vat field with
error messages as well?
Thanks in Advance.
04-15-2013 11:58 AM
04-15-2013 12:03 PM
Hi,
There is no BAPI but you can find many FM for the same.
It is better to use BDC for this as it will check the standard message and customized message on the screen . You can use FB09 tcode for the same it will easy for you to make the BDC of this tcode.
Regards,
Rahul Singh
04-15-2013 12:05 PM
Hi Amit,
Use Function Modules:
BAPI_ACC_DOCUMENT_POST Accounting: Posting
BAPI_ACC_DOCUMENT_REV_POST Accounting: Post Reversal
04-15-2013 12:20 PM
use 'BAPI_ACC_DOCUMENT_POST'.
its having 3 structures, one of the structure having those fields BAPIACPA09
BAPIACPA09 -> TAX (Liable for VAT) , Country (Country Key)
Regards,
Bastin.G
04-15-2013 12:45 PM
There are no actual BAPI available , but FM like FI_ITEMS_MASS_CHANGE (which creates BDC for FB02)
But are you able to change those fields in FB02 or FB09 transactions, (Check Customizing and documentation like Note 827413 - FI: Changeability of fields in FI documents)
If those fields cannot be changed, consider BAPI like BAPI_ACC_DOCUMENT_REV_POST and BAPI_ACC_DOCUMENT_POST to reverse and post again the (corrected) documents. (If some documents are cleared, also consider calling FM POSTING_INTERFACE_RESET_CLEAR between POSTING_INTERFACE_START and POSTING_INTERFACE_END)
Use search tool at scn as there are already many threads/discussions on this topic.
Regards,
Raymond