Skip to Content

Badi/userexit to fill vbrk-xblnr

Hi experts.

Any badi/exit to fill vbrk-xblnr during invoice cancellation-vf11 ?? For vf01, we could do in exit_saplv60a_001., But this not triggered during cancellation. Found badi_sd_billing, but it is marked ' only for sap internal use'.

Would it be fine if we implement in

userexit_save_document_prepare

Regards

Aditya

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Aug 05, 2020 at 06:28 PM

    For cancellation, the data of the invoice to be canceled is not designed to be changed. To be consistent and match the original, into the cancellation invoice the data is copied from the original invoice. With the new cancellation (see note 1259505), there are no user-exits triggered. Aim is to clear the accounting documents with each other, the data has to be the same.

    Not clear why in cancellation a reference number should be different. One way would be to force the execution of the old cancellation (note 339928). Then user-exits of note 301077 will be triggered.

    However, there is a big disadvantage, since the accounting documents of the original invoice and the cancellation invoice will no longer be cleared automatically by the system. This will have to be performed by the users manually.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 04, 2020 at 11:03 PM

    Hey Jyothir

    Try below and see if it works

    • BAPI_SALESORDER_CHANGE REF_DOC in ORDER_HEADER_IN
    • Try exit RV60AFZZ this gets created during creation debug and see if you can find XBLNR in there.
    • BADI SD_CIN_LV60AU02 has XVBRK which has the field XBLNR which can be used
    • Try to use the exit EXIT_SAPLV60B_001 (enhancement SDVFX001) or EXIT_SAPLV60B_008 (enhancement SDVFX008)

    Let me know if that helped

    regards

    Vinita

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 05, 2020 at 05:05 AM

    Hello jyothir aditya k,

    Recommend you to go through the SAP NOTE 301077 using OSS 301077 login.

    In addition advise you to check USEREXIT_FILL_VBRK_VBRP in RV60AFZC as well.

    Regards!

    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.