03-06-2013 3:24 PM
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.
03-07-2013 5:07 AM
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.
03-07-2013 5:19 AM
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.
03-07-2013 8:26 AM
Hello,
Try this exit V60A0001.
FUNCTION EXIT_SAPLV60A_002.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" TABLES
*" XKOMFK STRUCTURE KOMFK
*"----------------------------------------------------------------------
INCLUDE ZXV60AU01.
ENDFUNCTION.
Thanks,
Abhijit
03-07-2013 9:08 AM
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