I have a requirement that I need to do postings by calling the BAPI_ACC_DOCUMENT_POST. I've done everything except Tax postings. For tax posting I try to use the FM CALCULATE_TAX_FROM_NET_AMOUNT. However, I don't know how to fill the structures of BAPI from the values returned by this FM.
Please help me how to fill the structures(mainly, ACCOUNTGL, ACCOUNTTAX & CURRENCYAMOUNT) of BAPI while using this calculate tax FM.