‎2011 Nov 14 10:23 AM
Hi Experts,
Requirement: whenever a production order component is negative then batch number is automatically assigned or populated in CO02 tcode in goods receipt tab.
for this i need User Exit.i am already trying PPCO0007 but its not working .
Could you please help us to solve my issue.
Thanks in advance..
Rajesh V.
‎2011 Nov 15 5:36 AM
Hi,
1.Goto Se24
2. enter object name CL_EXITHANDLER
3. Goto method Get_Instance
4. Put a break-point on line no 14 (CALL METHOD cl_exithandler=>get_class_name_by_interface)
5. execute the transaction CO02
6. check for the value of field exit_name in debugger.
Each time u press F8 it will give u all the exits name available with the transaction code (CO02 in your case).
‎2011 Nov 14 11:00 AM
Hi Rajesh,
Copy this program and try in your development system. It will show all BADIs and User exits.
<Link removed by moderator>
-Krishna
Edited by: Vinod Kumar on Nov 14, 2011 4:34 PM
‎2011 Nov 14 11:02 AM
Here they are. Try them.
Exit Name Description
<Enhancement list removed by moderator>
-Krishna
Edited by: Vinod Kumar on Nov 14, 2011 4:35 PM
‎2011 Nov 15 5:36 AM
Hi,
1.Goto Se24
2. enter object name CL_EXITHANDLER
3. Goto method Get_Instance
4. Put a break-point on line no 14 (CALL METHOD cl_exithandler=>get_class_name_by_interface)
5. execute the transaction CO02
6. check for the value of field exit_name in debugger.
Each time u press F8 it will give u all the exits name available with the transaction code (CO02 in your case).
‎2011 Nov 15 7:22 AM
Hi,
Use the User Exit - EXIT_SAPLV01Z_002
For this create a project in CMOD, assign the enhancement as 'SAPLV01Z', and under this assign the function exit 'EXIT_SAPLV01Z_002'. Activate.
Now implement the function exit EXIT_SAPLV01Z_002
and write your code there for batch number assignments.
‎2011 Nov 15 11:31 AM
Hi All,
My requirement is solved by using below Enhancement implementation
Enhancement point in below mentioned FORM.
In Program : SAPLCOKO1
Include : LCOKO1F3J
Inside below FORM.
FORM header_update.
DATA: flg_q_upd.
DATA: quan_old LIKE caufvd-gamng.
ENHANCEMENT-POINT header_update_01 SPOTS es_saplcoko1 STATIC.
ENHANCEMENT-POINT HEADER_UPDATE_05 SPOTS ES_SAPLCOKO1 .