Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP runtime errors RAISE_EXCEPTION occured

Former Member
0 Likes
1,555

Hi all,

I have SAP Material management landscape and user gets short dumps with exception.

here are the detils.

Information on where termination occurred

The termination occurred in the ABAP/4 program "SAPLYMQX " in

"Y_INSERT_TO_YMTOES_INT_DTLS".

The main program was "YM_DATA_FLEX_TO_DEMAND ".

The termination occurred in line 73

of the source code of program "LYMQXU06 " (when calling the editor 730)

========

code extract

========

insert into YMTOES_INT_DTLS values wa.

if sy-subrc <> 0.

raise insert_error.

==========

Need help in how to see why this occuring.

Edited by: Vijay Dhamera on Oct 24, 2008 11:53 AM

6 REPLIES 6
Read only

Former Member
0 Likes
836

Hi,

Is wa has same structure as YMTOES_INT_DTLS.

There is a problem with insert statement.

Thanks & Regards,

Navneeth K.

Read only

Former Member
0 Likes
836

Check that the primary key is populated also

Read only

Former Member
0 Likes
836

User complaints some time it works and some times it does not. He said he has to keep trying.

is there any issue with SAP Buffer?

or only the programmer should look at this.

Read only

0 Likes
836

Hi analys the Tcode ST22 and find out the actual reason.. sometime the exception may occur if you have duplication entry in the DB table of the data u insert. or elese some DB Access problem it normally not occur;.

Try.

Thanks.

Rgds,

Jey

Read only

Former Member
0 Likes
836

ST22 details as follows

-


Error analysis

A RAISE statement in the program "SAPLYMQX " raised the excep

condition "INSERT_ERROR".

Since the exception was not intercepted by a superior program

in the hierarchy, processing was terminated.

Short description of exception condition:

ERROR DURING INSERT

For detailed documentation of the exception condition, use

Transaction SE37 (Function Library). You can take the called

function module from the display of active calls.

-

Read only

0 Likes
836

why are you raising the exception..?

insert into YMTOES_INT_DTLS values wa.
if sy-subrc ne 0.

raise insert_error.

use modify instead of insert.