Application Development and Automation 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: 
Read only

User exits for CO02 Tcode

Former Member
0 Likes
1,037

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
928

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).

5 REPLIES 5
Read only

kammaje_cis
SAP Mentor
SAP Mentor
0 Likes
928

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

Read only

kammaje_cis
SAP Mentor
SAP Mentor
0 Likes
928

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

Read only

Former Member
0 Likes
929

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).

Read only

0 Likes
928

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.

Read only

0 Likes
928

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 .