I am asking same question as other fellow members, why you are not creating a reference characteristic to read material and use this reference characterstic for finding details from variant tables instead of hardcoding matnr in dependency , in this way you can use one global procedure for all material.
Thanks
Ritesh