During one step transfer posting i want to change the batch number during goods receipt via transaction VL02N.
I have tried using the below exits and badi without success.
Below is the code i have implemented in the exit
select single vbeln into v_vbeln
select * from likp
where vbeln = i_mkpf-le_vbeln
and vstel = c_vstel
and werks = c_werks
and lfart = c_lfart.
IF sy-subrc = 0.
e_charg = 'X'.
If any body has implemented same functionality kindly help.