01-25-2014 8:30 AM
Hi,
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.
Regards
dIvakar
01-27-2014 2:57 PM
01-30-2014 7:34 AM
Is there any Condition types which will be Effective only in Billing has not been included in your Auto Creation of Billings with The BAPI used...It is Just A guess--I may be wrong..Pl Correct...
Phanikumar
01-30-2014 8:48 AM
Google auto invoice creation after pgi
You will land on a thread exactly resembling your requirement with lots expert comments and a solution.
01-30-2014 8:56 AM
Sorry for that earlier reply ,
It seems that the above coding has been implemented in your system.
Did you check the exact amount of difference and the Condition Type which captures that difference amount ?
01-30-2014 9:03 AM
Try to insure that the BAPI call will only be executed when the database has been fully updated, usually solved using a CALL FUNCTION IN BACKGROUND TASK in a RFC enabled wrapper FM, this FM will be queued during the COMMIT WORK and executed only when the update tasks and database updates are fully executed.
Regards,
Raymond