cancel
Showing results for 
Search instead for 
Did you mean: 

Update termination while cancelling invoice

Former Member
0 Kudos

Hello,

An update termination is occured while cancelling the invoice.

Termination is in function module RV_INVOICE_POST

Error message : 00 671: ABAP-Prozessor: SAPSQL_ARRAY_INSERT_DUPREC

Could any one help to find the reason for the same, as it is happening reguarly in the system.

474 ENDIF.

475 ENDCASE.

476 ENDLOOP.

477 UPDATE (OBJECT) FROM TABLE DA_XVBPAU.

478 UPDATE VBPA3 FROM TABLE DA_XVBPA3U.

479

>>> INSERT (OBJECT) FROM TABLE DA_XVBPAI.

481 INSERT VBPA3 FROM TABLE DA_XVBPA3I.

482

483 IF SY-SUBRC > 0.

484 MESSAGE A700 WITH OBJECT SY-SUBRC DA_XVBPAI(21).

485 ENDIF.

Thanks in advance

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

Most probably, this could be due to number range problem. You would not have maintained number range for cancellation document type. Check in VOFA what number range object is maintained for S1 billing type and ensure that the same is maintained in VN01 also.

thanks

G. Lakshmipathi

Answers (2)

Answers (2)

former_member315051
Active Contributor
0 Kudos

Check in TCode : ST22 - Runtime error

Former Member
0 Kudos

Hi Kiran

Please sit with your ABAPer and put a break point on line 479.

Try to find out whether the value you are pass in OBJECT is acceptable to table or not.

try and revert