11-27-2007 10:09 PM
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,
Karl
11-28-2007 7:10 PM
Hi
I believe the best solution is include the fm CALCULATE_TAX_FROM_NET_AMOUNT in new RFC fm.
Max
11-27-2007 10:49 PM
11-28-2007 6:39 PM
BAPI_ACC_BILLING_POST has the same issue as BAPI_ACC_DOCUMENT_POST but thanks for the suggestion.
11-28-2007 7:10 PM
Hi
I believe the best solution is include the fm CALCULATE_TAX_FROM_NET_AMOUNT in new RFC fm.
Max
11-28-2007 7:29 PM
Ive already started coding a remote enabled FM to call CALCULATE_TAX_FROM_NET_AMOUNT. Thanks for confirming the path Im taking
12-06-2007 10:21 PM
Problem solved! I ended up writing my own wrapper but eventually discovered BBP_CALCULATE_TAX_FRM_NET_40B which does the same as CALCULATE_TAX_FROM_NET_AMOUNT and its remote enabled.