cancel
Showing results for 
Search instead for 
Did you mean: 

Inconsistencies in posting table- Express error in VF01 with new VOFM routine update

former_member569482
Discoverer
0 Kudos

Hello,

I am working on a requirement where user wants to copy the reference invoice number to the credit memo instead of the credit memo request number.

For this purpose we have created a new routine and assigned in the copy control from credit memo request to credit memo.

Issue is when I create credit memo the reference invoice number is updated but when i save the document, I get an express error and the invoice is not saved.

Error screen print enclosedcapture.jpg

Thanks in advance

Regards,

HB

Accepted Solutions (0)

Answers (2)

Answers (2)

Lakshmipathi
Active Contributor
0 Kudos

Have a look at OSS note 1103079

bell_yang
Explorer
0 Kudos

Did you change VBRK-XBLNR in FM RV_INVOICE_DOCUMENT_ADD? Usually this dump is caused by incorrect implementation of userexits. There are some important rules, which need to be considered when implementing userexits:

- Do not use standard workareas (VBRP, VBRK, VBAK...) as workareas, always use custom defined workareas such as ZZ_LIPS, ZZ_VBRK... - With READ TABLE or LOOP AT use always INTO a Workarea. Otherwise, the Pointer and/or the headline is changed.

- With SELECT-Statements you should always work with INTO.

- Don't sort any SAP tables like XVBRK, XVBRP also. Kindly review all userexits (for example RV60AFZZ, RVCOMFZZ) and custom enhancements and check for the unallowed statements outlined above.

former_member569482
Discoverer
0 Kudos

Hello Bell,

Thank you for your comments, the problem here is that if I remove this new routine then there is no error and billing document is posted successfully. We are not doing anything in the user exit

Regards,

HB