2008 Apr 11 12:10 PM
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!!!!!
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
2008 Apr 11 12:14 PM
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
2008 Apr 11 12:17 PM
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.
2008 Apr 11 12:18 PM
Hi,
Write your code to work only for SAVE button, you can use the SY-UCOMM and write the code
Sudheer
2008 Apr 11 12:21 PM
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
2008 Apr 14 6:13 AM
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
2011 Jan 14 8:06 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |