SAP Function WRF_MATGRP_HIERID_READ - Reads the Active Article Hierarchy

Parameter Reference Type Length Default Optional Text
VKORG VKORG C 4 X Sales Organization
VTWEG VTWEG C 2 X Distribution Channel

Parameter Reference Type Length Text
PE_HIERID WRF_HIER_VK_STY u 8 Hierarchy - Distribution Chain Structure

Parameter Reference Type Length Default Optional Text
XS_MATGRP_HIER WRF_HIER_STY u 64 X Hierarchy Structure

Exception Text
NO_DATABASE_ENTRIES No Database Entries Found
NO_DISTRIBUTION_SELECTED No Distribution Chain Entered
NO_HIERARCHY_FOUND No Hierarchy Found

Functionality
This function module returns the hierarchy ID that is maintained for aspecific distribution chain.
If a distribution chain is specified, the function module looks in theWRF_MATGRP_HIER for a hierarchy ID flagged as application-relevant forthis distribution chain. If no entry is found, a search is made in theWRF_MATGRP_HIER for a cross-client-valid hierarchy ID flagged asapplication-relevant. If no distribution chain is specified, thefunction module looks directly in the WRF_MATGRP_HIER for across-client-valid hierarchy ID flagged as application-relevant.