Fonction SAP WRF_MATGRP_HIERID_READ2 - Reads the Active Article Hierarchy

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
VKORG VKORG C 4 X Sales Organization
VTWEG VTWEG C 2 X Distribution Channel

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_T_MATGRP_HIER WRF_HIER_TTY h 64 X Hierarchy Structure

Exception Description
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.