Hi Pramod,
This is no standard way to do this. Activate enhancement spot 'R3TR ENHS /SAPAPO/DM_MATERIAL' has BAdi BAdI /SAPAPO/DM_MATLOC
In order to modify ATD category groups defined in master data you have to implement the BAdI method /SAPAPO/DM_MATLOC->get_atd which has the following interface:
Parameter Type Usage
iv_matid Importing Product identifier
iv_locid Importing Location identifier
cv_atdsp Changing ATD receipt category group
cv_atddm Changing ATD demand category group
Regards
Abhishek