Application Development 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: 

problem in triggering the code for CO02 User Exit

Former Member
0 Kudos

Hi,

I am using the code for the Tcode CO02 (User Exit) and i am facing a problem that when i am using the code as a normal program it is executing fine and displaying the pop up window and showing the data in it.

But when i am using that code in the USER EXIT code it is not trigerring that pop up window.

I am using the enhancement:-

*PPCO0007 * - Exit when saving production order

And the include in which i am writing the code is :-

INCLUDE ZXCO1U06

plzz provide me guidelines for solving this problem.

9 REPLIES 9

Former Member
0 Kudos

Hi

Is the project active

Regards

MD

0 Kudos

hi,

yes the project is active and the enhancement is also active,but still it is not displaying the data........

I am using the FM :-

POPUP_WITH_TABLE_DISPLAY_OK

Edited by: ricx .s on Sep 18, 2008 12:08 PM

Former Member
0 Kudos

Are you sure that user exit is triggered while saving?

Try activate the project and enhancement again.

thanks,

krishna

0 Kudos

hi krishna,

can u plzz tell me how should i check that user exit is triggered while saving?

actually i am new to the user exit and hardly had done work on it ,so plzz tell me how to check it,i know that much that screen which is made up by someone else and i have to make user exit on CO02 i..e when any body tries to save the production order and when the user saves it that pop window having the details of it should display it...

plzz provide me guidelines for it.....

0 Kudos

can you tell me which user exit you are using now?

thanks,

krishna

0 Kudos

hi ,

i am using the following: -

Enhancement No. -> PPCO0007 (Exit when saving production order)

When i click on the enhancement the following is displayed:-

Function exit -> *EXIT_SAPLCOZV_001 *

When i double click the function exit the code i had written in the following include:-

INCLUDE ZXCO1U06

plzz tell me whether i am doing it right or worng?

0 Kudos

First you have to create project in CMOD

and then assign enhancement PPCO0007

and then ur steps

"Function exit -> *EXIT_SAPLCOZV_001 *

When i double click the function exit the code i had written in the following include:-

INCLUDE ZXCO1U06

"

activate the enahncement and the project.

thanks,

krishna

0 Kudos

Hi,

Put a breakpoint in the exit and run. If it stops at the breakpoint then the exit is right otherwise not.

Regards,

Surinder

0 Kudos

hi surinder and krishna,

I had created a project in the CMOD tcode and then assign the enhancement

and then activate the function exit and then double click the INCLUDE and pasted the code and putted that code in the IF Endif. condition and also the break point.

when i execute the tcode CO02 and do some changes in it and when save it goes to the debug mode as i had implemented the break point in it but still it is not displaying the pop up window in it ..

what should i do now? plzz provide me guidelines for it .....

Edited by: ricx .s on Sep 18, 2008 1:39 PM

Edited by: ricx .s on Sep 18, 2008 1:47 PM