Skip to Content
author's profile photo Former Member
Former Member

Invoice cancellation user exit...

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Mar 07, 2013 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 07, 2013 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 07, 2013 at 08:26 AM

    Hello,

    Try this exit V60A0001.

    FUNCTION EXIT_SAPLV60A_002.

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

    *"*"Lokale Schnittstelle:

    *" TABLES

    *" XKOMFK STRUCTURE KOMFK

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

    INCLUDE ZXV60AU01.

    ENDFUNCTION.

    Thanks,

    Abhijit

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 07, 2013 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.