Skip to Content
0
Former Member
Jan 25, 2012 at 05:03 AM

Error while updating document number in CO11N or MIGO or MB26N

96 Views

Hi Experts ,

When testing STO process, Document is saving but updation is not done .

When am running tcode CO11N OR MB26N OR MIGO

The document no is created but ,where as the data is not getting updated in the standard tables

the follwoing message is being displayed in a pop-up

Express document "Update was terminated " received from 'User'

and the data is not updated and the

During testing regularly this popup message is displayed and data is not updating.

Dump in ST22

The current ABAP program "SAPLMBMB" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught

in

procedure "MB_POST_DOCUMENT" "(FUNCTION)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

If you use an ABAP/4 Open SQL array insert to insert a record in

the database and that record already exists with the same key,

this results in a termination.

(With an ABAP/4 Open SQL single record insert in the same error

situation, processing does not terminate, but SY-SUBRC is set to 4.)

    11
   12
>>>>>   INSERT mkpf FROM TABLE zmkpf.
   14   IF NOT sy-subrc IS INITIAL.
   15     MESSAGE a001 WITH 'ZMKPF'.
   16   ENDIF.
   17
   18   INSERT mseg FROM TABLE zmseg.
   19   IF NOT sy-subrc IS INITIAL.
   20     MESSAGE a001 WITH 'ZMSEG'.
   21   ENDIF.
 

Regards

Ashok

Edited by: Ashok26 on Jan 25, 2012 6:03 AM