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: 

assign production order number to batch number automatically

krishna_k17
Participant
0 Kudos

Hi All,

I have been trying to assign production order number to batch number when clicked on create icon in t-code CO02, and successfully assigned Production order number to batch number through EXIT_SAPLV01Z_001

Question:

Now i want to assign same production order number to batch number automatically... is it possible"

If yes, provide me the exit or badi.

Best Regards,

Krishna K

2 REPLIES 2

Former Member
0 Kudos

Hi,

Try to use any 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 .

.

BR,

Vijay

0 Kudos

Hi,

You can use the user exit 'EXIT_SAPLV01Z_002'. This will change the batch number.