‎2011 Jul 11 8:33 AM
Hi All,
There is a requirement during Goods Receipt (MIGO) to copy the header text details into one of the batch characteristics details. I have tried with all known exits and BADI's which i am aware of, but unable to find a exit/BADI to achieve the above requirement. Kindly suggest how to achieve the same. Thanks in advance.
Regards,
G
‎2011 Jul 11 8:43 AM
Hi ,
i think there is one User Exit to update bacth details( sorry i cant remember ...check in SMOD) ,use that exit fm to update bacth char details.
put BP at these FMs ..and see if it stops you while creating MIGO...
EXIT_SAPLV01Z_004/5/6
regards
Prabhu
Edited by: Prabhu Peram on Jul 11, 2011 4:07 PM
‎2011 Jul 11 8:41 AM
Hi,
Please tell us what are the exits/Badi's you have used.
Regards,
Nagaraj
‎2011 Jul 11 9:01 AM
Hi Nagaraj,
I have used few normally used exits and MB_MIGO_BADI, i find all the values related to the GR to validate or change, But batch characteristics is not there to be modified.
‎2011 Jul 11 8:43 AM
Hi ,
i think there is one User Exit to update bacth details( sorry i cant remember ...check in SMOD) ,use that exit fm to update bacth char details.
put BP at these FMs ..and see if it stops you while creating MIGO...
EXIT_SAPLV01Z_004/5/6
regards
Prabhu
Edited by: Prabhu Peram on Jul 11, 2011 4:07 PM
‎2011 Jul 11 9:11 AM
Hi Prabhu,
Tried it, not able to get the name, hence posted. If you can recollect do let me know. Thanks.
Regards
Gowri
‎2011 Jul 11 9:29 AM
Hi Prabhu,
Used the exits you gave, it does stop. but as said it does not have values of the characteristics for me to validate or update.
Regards,
Gowri
‎2011 Jul 11 9:44 AM
Hi,
In the exit /Badi you can call the below FM "BAPI_BATCH_SAVE_REPLICA" and update the batch charaterisctis.Did you tried?
Regards,
Nagaraj
‎2011 Jul 11 9:49 AM
which exit is working ? ...is it 6 ?....i know you dont have any option to update batch chars...so you need to check if any global variables are carrying those char values or not ?....or by using FMs you can update here itself....
regards
Prabhu
‎2011 Jul 11 10:01 AM
Guys,
Thanks for all the replies, hope i can close the same.
Hi Nagaraj,
Will try and let you know. I have not used the BAPI, so i need to understand the inputs for the BAPI. In case you have any sample inputs, would be great to speed up the things.
Hi Prabhu,
Forgot to mention that the batch number generation is internal. So the exits related to external wont be called.
It stops at EXIT_SAPLV01Z_001. I have checked all the global variables, None of them hold these values.
Regards,
Gowri
‎2011 Jul 11 10:08 AM
Hi,
Have a look at the sameple code for your reference.You can also check the documentation of it.
CALL FUNCTION 'BAPI_BATCH_SAVE_REPLICA'
EXPORTING
material = matnr
batch = charg
batchstatus = batchstatus
batchstatusx =batchstatusx
TABLES
return = t_return1
classallocations = t_classallocation
classvaluationschar =t_classvaluationchar (If the characterisic value is of character type)
classvaluationsnum =it_classvaluation (if the charatertic value is of FLTP type)
Regards,
Nagaraj