2017 Nov 03 10:31 AM
Hi Team,
Need your help to find the BADI spot for batch management check box in purchase view of MM01, MM02 to be enabled always.
I already used "BADI_MATERIAL_REF" and I gave 'X' in the MARA-XCHPF and pressed the F8 key and the Check box is not getting checked.
The requirement is should enable the batch management check box when ever MM01, MM02 is used.
Please suggest....
2017 Nov 06 7:55 AM
Hi Dinesh,
Try SMOD: MGA00001. Field CMARA-XCHPF = 'X' If you want to default it.
Thanks
2017 Nov 06 8:49 AM
Hi,
Greetings,
Thanks for your replay KK Lam,
I have tried debugging by placing break-point.
But the spot is not triggered in enhancement MGA00001.
Used exit: EXIT_SAPLMGMU_001.
And i have also directly declared the value CMARA-XCHPF = 'X' but the batch management check box in MM01 is not checked.
Please suggest any alternative....
I also tried in below mentioned EXITS..
MGA00001, MGA00002, MGA00003...
Is there any possibility to find the enhancement spot when we check the Batch management check box in MM01.
Cause I have been checking for that functionality.
Need help to resolve this issue....
Regards,
Dinesh.S
2017 Nov 06 8:55 AM
Hi Dinesh,
Did you activated it with CMOD after you putting the code in SMOD?
Thanks
2017 Nov 07 4:41 AM
I have checked in CMOD and activated the same after putting the code in SMOD..,
But I am not getting the Batch management box checked.
Below is the code written in "Include ZXMG0U02. in EXIT_SAPLMGMU_001 under MGA00001"
CODE:
if cmara-xchpf = ' '.
cmara-xchpf = 'X'.
message 'Batch management' type 'S'.
endif.
2017 Nov 13 2:19 AM
Hi Dinesh,
You can debug it why it is not passing value to this change value. Please check the material code CMARA-MATNR also before you update the batch management indicator.
Thanks
2017 Nov 06 9:01 AM
It pretty much depends on the batch level whether you can use MARA-XCHPF or have to use MARC-XCHPF
The BADI has a coding example for a MARA field. Just go SE18 enter the BADI BADI_MATERIAL_REF, click display, then select Goto > coding example from the menu, double click the method IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL