Functionality Changing an existing article hierarchy> Using the BAPI BAPI_WRF_MATGRP_CHANGE, you can change an existingarticle hierarchy, delete it, or insert substructures. The functionalityapplies to the hierarchy, the language-dependent texts, and thearticles. Using the parameter HIERARCHY_DATA, the data for identification of aheader record of an article hierarchy is transferred. This data consistsof the hierarchy ID and the node. In addition, you have to set theindicator CHANGE for control of the functionality of the BAPI. Theindicator CHANGE can have the values Update>, Delete> orInsert>. The required information is transferred by way of the tablesDESCRIPTION_HIERARCHY, HIERARCHY_STRUCTURE, DESCRIPTION_STRUCTURE andHIERARCHY_ITEMS. The BAPI can only carry out its function if no errormessages have been generated in the table Return. This is the case if ithas been possible to process the header data and all items withouterrors. The structure HIERARCHY_ITEMS contains the import parameterNO_REFERENCE_HANDLING, with which you can control if the header data ofthe generic article is to be passed to the variant. If the parameter isset, then no header data is passed to the variant. As default, theparameter is not set. The parameter test run> is used in order to check the structurebefore actually creating the hierarchy in the database. Creating thehierarchy is only simulated here and the data is not updated (posted).Example
|