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 dump

Former Member
0 Likes
1,164

Dear frndz,

I am facing a problem while executing an user exit CONFPP05 ( PP order conf.: Customer specific enhancements when saving) which is triggered on SAVE in tcode CO11n.

The code tat was written is as given

read table CAUFVD_TAB index 1.

select single * from mseg where aufnr = CAUFVD_TAB-aufnr

and bwart = '261'.

if sy-subrc = 0.

MESSAGE 'Production Order can not be processed futher ' TYPE 'E'.

endif.

When I run CO11N this code works for save button.

But then if I execute BACK button it gives a pop up which asks for save confirmation . If I click on Yes the tcode gives dump as given

A RAISE statement in the program "SAPLCORB" raised the exception condition "DUPREC".

I searched a badi WORKORDER_CONFIRM for it too.

but dont know how to get aufnr i.e order no value from CO11N screen.

ppl plz help me out with it!!!!!

6 REPLIES 6
Read only

Former Member
0 Likes
856

Hi Vincy,

The Dump has occured because of the error message which you are giving it in the exit. Please try to avoid it ...

Regards,

Santosh

Read only

Former Member
0 Likes
856

Hi,

Program is trying to insert duplicate entries into database table.

You can able to know the table name from update / system log SM13 / SM21 Tocdes.

Regards,

Raj.

Read only

Former Member
0 Likes
856

Hi,

Write your code to work only for SAVE button, you can use the SY-UCOMM and write the code

Sudheer

Read only

Former Member
0 Likes
856

Hi,

1.Under workorder_confirm

method: before_update

types:cobai_s_header type caufvdb

In this structure we will get the AUFNR.

Regards,

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 11, 2008 4:35 PM

Read only

0 Likes
856

hey Shiva Kumar ......thanx for replying,

but can u tell me how to get the CONTENT of the

caufvd-aufnr field on co11n screen into the badi.......

how to get the value from the structure cobai_s_header

Read only

0 Likes
856

Hi, You should go to tab 'method' and check the importing parameters.

you can use the structure 'IS_CONFIRMATION' to get order number ,so on.

Reply to me if any question.

Good luck

Lykin Kan