09-17-2008 11:57 AM
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 .
09-17-2008 11:59 AM
09-17-2008 12:02 PM
09-17-2008 12:00 PM
09-17-2008 12:01 PM
Hi
Did you create a Project in CMOD and then activated the project.
Santhosh
09-17-2008 12:03 PM
09-17-2008 6:12 PM
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
11-25-2008 12:26 PM
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.