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: 

user exit not triggering

Former Member
0 Kudos

hi experts,

we are crating a new maintainance oreder creation using tcode Iw31.in automatic creation of PR we are getting the planning plan but we need maintainance plant name .for thet we have found a user exit COZF0002 and have kept a break point in but it is not triggering during run time what may be the problem .

7 REPLIES 7

Mohamed_Mukhtar
Active Contributor
0 Kudos

hi,

Have you activated this exit .

????

Regards

0 Kudos

ya done it but still it is not going to break point.

GauthamV
Active Contributor
0 Kudos

hi,

check this exit.

IWO10012.

Former Member
0 Kudos

Hi

Did you create a Project in CMOD and then activated the project.

Santhosh

0 Kudos

it worked for COZF0001 but only COZF0002 created pblm ..

paul_meehan
Employee
Employee

Hi,

Exit COZF0002 is only called when a purchase requisition is being created for a component. COZF0001 is for PR from external operations.

Set a breakpoint in function CO_ZF_FILL_EBAN_FROM_RESBD where this exit is called. It is at the end of the function:


  MOVE-CORRESPONDING eban_exp TO eban_ord_cust.
  MOVE-CORRESPONDING ebkn_exp TO eban_ord_cust.
  CALL CUSTOMER-FUNCTION '002'
       EXPORTING
            caufvd_imp        =  caufvd
            resbd_imp         =  resbd_imp
            eban_imp          =  eban_exp
            ebkn_imp          =  ebkn_exp
       CHANGING
            eban_ord_cust_chg =  eban_ord_cust
       EXCEPTIONS
            OTHERS            = 0.

If the call to customer-function is not executed then the exit is not activated properly. Check your project in CMOD or activate directly in SMOD.

If this function is not executed down to that point then it appears no component PR is being created.

-Paul

0 Kudos

I know its too late to reply.. but for the benfit of future searches here is the solution for this..

COZF0002 triggers only when you rlease the PM order.

Code the exit, place a break point . Create an Order with components and release it and save it. The moment when you release or save the break point in this exit triggers.

Hope that helps.

Thanks,

krishna.