BAPI_ACC_DOCUMENT_POST, Taxes and remote enabled function models
I am using BAPI_ACC_DOCUMENT_POST to create AR customer invoices but Ive run into a problem with taxes. I would like to use just the information that a user going through FB70 would need to create the invoice but including taxes requires me to get the account and do the calculation for the taxes. I could solve all of my problems by using the FM CALCULATE_TAX_FROM_NET_AMOUNT except its not remote enabled.
I see two possible solutions:
1) Wrapper CALCULATE_TAX_FROM_NET_AMOUNT in a remote enabled function module.
.. OR ..
2) Require the user to provide the tax amount and the account that it should go to.
I dont like (1) because the user has to install a custom FM on their system and I dont like (2) because its not user friendly for them to have to calculate the taxes (depends on the jurisdiction) or happen to know the account number. So far it looks like (1) is the best choice.
Is there any better way to deal with this problem? Another FM besides BAPI_ACC_DOCUMENT_POST that handles taxes and is remote enabled? Another FM besides CALCULATE_TAX_FROM_NET_AMOUNT that calculates the taxes and returns the account number thats remote enabled? Other alternatives?
Thanks in advance for any help,