SAP Function WRF_MATGRP_WPPG_ARRAY_READ_BF - Price point group determination

Parameter Reference Type Length Default Optional Text
I_EPTYP EPTYP C 2 X Price Point Category
I_HIERID WRF_MATGRP_SKU-HIER_ID C 2 Hierarchy
I_HIER_DATE WRF_DATE D 8 SY-DATUM Validity of Assignment in Article Hierarchy
I_MAX_BUFF_ENTRIES SYST-TABIX I 4 5000 X Index of Internal Tables
I_NODE WRF_MATGRP_SKU-NODE C 18 Hierarchy Node
I_RESET_BUFFER XFELD C 1 X Checkbox
I_RKTYP WRF_WVKP_RKTYP C 1 X Price Point Groups: Ranking Type

Parameter Reference Type Length Text
ET_MATGRP_PPGR WRF_MATGRP_PPGR_TTY h 40 Table Type: Price Point Groups

Parameter Reference Type Length Default Optional Text
ET_MATGRP_PPGR_ALV WRF_MATGRP_PPGR_TXT_ALV_TTY h 72 X Table Type: Price Point Groups

Exception Text
NODE_NOT_IN_HIERARCHY Node Does Not Exist in this Hierarchy
NOT_FOUND No Entry Found for these Conditions
WRONG_INPUT Incorrect parameters

Functionality
This function module determines for one or more articles the price pointgroup(s) in the structure of the article hierarchy. The search algorithmfor determination of a price point group assignment searches in thearticle hierarchy tree of the article upwards and stops as soon as aprice point group assignment is found (access sequence). Since theassignment of the price point group ito the article hierarchy isdifferent depending on the application (sales price calculation,markdown control, promotion), a consideration in the access sequence isfrom which application the functionality is called. For identificationof the price point group assignment, the price point category and theranking type must be provided to the function module interface. .
If at various levels of the article hierarchy, validity periods havebeen defined, this is handled as follows: These validity periods applyautomatically also to the assignments of the price point groups to thesenodes and are taken into account in determination of the price point.Since the sales price "from-date" of the price to be calculated iscritical in determination of a price point, only the validity period inwhich the sales start-date for the price to be calculated occurs isrelevant. Therefore, only that validity period is selected whichcontains the sales start time for the price to be calculated. Transferof the date is only necessary in the case of scheduled articleassignments.
In the case of an article with multiple assignments, the assignment ofthe article within the structure of the article hierarchy must beuniquely determinable because otherwise no unique price point groupassignment can be found. For unique identification of the articleassignment, the direct article assignment must be provided to thefunction module interface.
The article is only provided to the import structure PIT_ARTICLE_PP ifthe transferring article is uniquely assigned to the structure.Otherwise, the node that identifies the article assignment uniquely,that is, the direct node of the article, is to be provided. The functionmodule is called in price point group determination.