‎2013 Jan 28 7:34 AM
Hi,
I MD02 have a requirement of check the entered product and SF materials BOM created or not.
For this please suggest me any user exit or Badi. I check all sdn no sollution is there
Kindly suggest any sollution.
Regards,
Gopi
‎2013 Jan 28 10:49 AM
Hi Gopi,
check in this include 'MM61XF34_CHECK_MATNR_EP'. find the implicit enhancement. for this click on
and then Edit-->Enhancement operations--> show implicit enhancement. so that you can find the some place's where we have to add our piece of code { """""""""""""""""""""" ----> this is the place where we have to add our code}.here you will get the materail (RM61X-MATNR). then call the FM to check the whether BOM is created for that materail or not '‘BAPI_MAT_BOM_EXISTENCE_CHECK’.
Try like this.
if matnr of type = 'SF'.
pass the materail to FM.
if bom exist .
message 'BOM exist' type 'S'.
else
message 'BOM deosnot exist 'E'.
endif.
if it helpful reward me.
Regards,
Gurunath Kumar D
‎2013 Jan 28 8:42 AM
Hi Gopi,
If you want to exclude ther materials which are BOM created or via versa the you can use the BADI MD_EXCLUDE_MATERIAL.
Example Class is MD_EXCLUDE_MAT_EXAMPLE
Hope this helps.
Thanks,
Tooshar Bendale
‎2013 Jan 28 8:48 AM
‎2013 Jan 28 9:36 AM
Hi Sijin,
I tried using Exits M6X0001 & M6X0002 but no useful.
Regards,
Gopi.
‎2013 Jan 28 10:17 AM
‎2013 Jan 28 10:52 AM
Thank you Srijin,
Yes, first i used this badi only, but no useful.
with in this used method CHANGE_MDPSX_EBAN, this is not calling when no BOM created with respected product.
Regards,
Gopi
‎2013 Jan 28 10:49 AM
Hi Gopi,
check in this include 'MM61XF34_CHECK_MATNR_EP'. find the implicit enhancement. for this click on
and then Edit-->Enhancement operations--> show implicit enhancement. so that you can find the some place's where we have to add our piece of code { """""""""""""""""""""" ----> this is the place where we have to add our code}.here you will get the materail (RM61X-MATNR). then call the FM to check the whether BOM is created for that materail or not '‘BAPI_MAT_BOM_EXISTENCE_CHECK’.
Try like this.
if matnr of type = 'SF'.
pass the materail to FM.
if bom exist .
message 'BOM exist' type 'S'.
else
message 'BOM deosnot exist 'E'.
endif.
if it helpful reward me.
Regards,
Gurunath Kumar D
‎2013 Jan 28 12:50 PM
Thank you all.
By using badi MD_CHANGE_MRP_DATA and method CHANGE_MDPSX_MARD
is useful but Error is not showing.
If BOM not created for Material I want to show the error and stop the transaction.
Regards,
Gopi