Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Invoice creation while doing PGI

Former Member
0 Kudos


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

5 REPLIES 5

Lakshmipathi
Active Contributor
0 Kudos

Moved from SAP ERP SD Billing to ABAP Development

G. Lakshmipathi

phanikumar_v3
Active Contributor
0 Kudos

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

Sijin_Chandran
Active Contributor
0 Kudos

Google auto invoice creation after pgi

You will land on a thread exactly resembling your requirement with lots expert comments and a solution.

Sijin_Chandran
Active Contributor
0 Kudos

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 ?

raymond_giuseppi
Active Contributor
0 Kudos

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