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: 

Invoice cancellation user exit...

Former Member
0 Kudos

Hi,

I am looking for a user exit or BADI during invoice cancellation (VF11) which will give me the invoice number which is getting cancelled and the new cancelled invoice document getting created so that I can store them in custom table due to a business requirement.

Can someone help ?

Regards,

TS.

4 REPLIES 4

former_member946717
Contributor
0 Kudos

Hi T S,

There is no BADI or User Exit for VF11.

Maybe you can create a program which will fetch the cancelled invoice data and update it in a custom table. You can run this as periodic background job.

prakashjasti
Contributor
0 Kudos

Hi,

I didnot know why you were going for custom table when

we can have both the numbers available in the document flow table.It was a standard

process.

Regards,

Prakash.

Prakash J

Abhijit74
Active Contributor
0 Kudos

Hello,

Try this exit V60A0001.

FUNCTION EXIT_SAPLV60A_002.

*"----------------------------------------------------------------------

*"*"Lokale Schnittstelle:

*"       TABLES

*"              XKOMFK STRUCTURE  KOMFK

*"----------------------------------------------------------------------

  INCLUDE ZXV60AU01.

  

ENDFUNCTION.

Thanks,

Abhijit

Sijin_Chandran
Active Contributor
0 Kudos

Hi TS ,

As mentioned earlier its not clear why you want to maintain it exclusively in a Ztable.

In VBRK itself SFAKN contains the cancelled bill number and corresponding VBLEN will have the Cancel Bill Number.

So while fetching data from VBRK maintain a where constraint SFAKN NE '' (NULL) , this will give you all cancelled bill documents.

But even though you want to proceed with your development then you can try with REQUIREMENTS ( VOFM ) and you can assign your custom created REQUIREMENT code with individual Billing Types.

Thanks ,

Sij