cancel
Showing results for 
Search instead for 
Did you mean: 

Stop invoice idoc with Zero lines

jasmeetmanik
Participant
0 Kudos

Hi all,

I need assistance on how I can stop the ouptut to create an invoic idoc with zero value.

Else

as we create workflows for invoice creation. that means we use workflow as soon as the PGI(post goods issue) is done we creare invoice - Can we build a functionality to stop it from creating invoice if the PGI done and the items/ lines with zero value not passed.

Thanks in advance

Jasmeet

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member1115366
Active Participant
0 Kudos

Making the bold assumption that you use an outbound IDoc process code that invokes function module IDOC_OUTPUT_INVOIC, you have the user exit LVEDF001 available. This is a standard exit that can be activated and maintained via CMOD.

The first function exit in LVEDF001 is EXIT_SAPLVEDF_001. It contains a call to the include program ZXEDFU01. Therein you can add code that will delete invoice line items having zero quantity or net value from the communication structure DTVBDPR before the IDoc is created.

Regards,

Ken