We have implemented the Implicit enhancement to automatic invoice creation by using the Function module " BAPI_BILLINGDOC_CREATEMULTIPLE" .
After Creating Outbound delivery,when click on the PGI in VL02N,it will connnects to implicit enhancement and passing the billing type ,Reference document no as outbound delivery number and document categeroy value as 'J' to function module.but i can able to create the invoice sucessfully & net amounts are not reflceting correctly.
if go to Invoice change mode VF02 and save the invoice.amounts are updating correctly for same invoice.
If we execute the same functionmodule in foreground mode with same data.its creating invoice with correct netamount values.
Kindly help me to resolve the issue.