SAP PRICEPOINTGROUP_DETERM_HIER Function Module for Determination of Price Point Group in Article Hierarchy
PRICEPOINTGROUP_DETERM_HIER is a standard pricepointgroup determ hier SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determination of Price Point Group in Article Hierarchy processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for pricepointgroup determ hier FM, simply by entering the name PRICEPOINTGROUP_DETERM_HIER into the relevant SAP transaction such as SE37 or SE38.
Function Group: WVK_PPGR1
Program Name: SAPLWVK_PPGR1
Main Program: SAPLWVK_PPGR1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PRICEPOINTGROUP_DETERM_HIER pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'PRICEPOINTGROUP_DETERM_HIER'"Determination of Price Point Group in Article Hierarchy.
EXPORTING
* PI_HIERID = "Hierarchy
* PI_DATAM = "Key date for sales price conditions
* PI_ENDNODE = "Hierarchy Node
PI_MATNR = "Material Number
PI_EPTYP = "Price Point Category
* PI_RKTYP = "Price Point Groups: Ranking Type
* PI_VKORG = "Sales Organization
* PI_VTWEG = "Distribution Channel
* PI_PLTYP = "Price list type
* PI_WAERK = "Price point currency
IMPORTING
PE_EPRGR = "Price point group
EXCEPTIONS
INVALID_INPUT = 1 NO_HIERARCHY_FOUND = 2 MATNR_NOT_IN_HIERARCHY = 3 ENDNODE_NOT_MATCHING = 4 NO_PRICE_POINT_GROUP_FOUND = 5
IMPORTING Parameters details for PRICEPOINTGROUP_DETERM_HIER
PI_HIERID - Hierarchy
Data type: WRF_HIER_CNTOptional: Yes
Call by Reference: Yes
PI_DATAM - Key date for sales price conditions
Data type: VKKAMOptional: Yes
Call by Reference: Yes
PI_ENDNODE - Hierarchy Node
Data type: WRF_STRUC_NODEOptional: Yes
Call by Reference: Yes
PI_MATNR - Material Number
Data type: MATNROptional: No
Call by Reference: Yes
PI_EPTYP - Price Point Category
Data type: EPTYPOptional: No
Call by Reference: Yes
PI_RKTYP - Price Point Groups: Ranking Type
Data type: WRF_WVKP_RKTYPOptional: Yes
Call by Reference: Yes
PI_VKORG - Sales Organization
Data type: VKORGOptional: Yes
Call by Reference: Yes
PI_VTWEG - Distribution Channel
Data type: VTWEGOptional: Yes
Call by Reference: Yes
PI_PLTYP - Price list type
Data type: PLTYPOptional: Yes
Call by Reference: Yes
PI_WAERK - Price point currency
Data type: WAERS_EPGOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for PRICEPOINTGROUP_DETERM_HIER
PE_EPRGR - Price point group
Data type: EPRGROptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_INPUT - Insufficient Parameter Entries
Data type:Optional: No
Call by Reference: Yes
NO_HIERARCHY_FOUND - No Material Hierachy Found
Data type:Optional: No
Call by Reference: Yes
MATNR_NOT_IN_HIERARCHY - Material not Contained in Material Hierarchy
Data type:Optional: No
Call by Reference: Yes
ENDNODE_NOT_MATCHING - Unsuitable End Node for Material
Data type:Optional: No
Call by Reference: Yes
NO_PRICE_POINT_GROUP_FOUND - No Price Point Group Determined
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PRICEPOINTGROUP_DETERM_HIER Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_pe_eprgr | TYPE EPRGR, " | |||
| lv_pi_hierid | TYPE WRF_HIER_CNT, " | |||
| lv_invalid_input | TYPE WRF_HIER_CNT, " | |||
| lv_pi_datam | TYPE VKKAM, " | |||
| lv_pi_endnode | TYPE WRF_STRUC_NODE, " | |||
| lv_no_hierarchy_found | TYPE WRF_STRUC_NODE, " | |||
| lv_pi_matnr | TYPE MATNR, " | |||
| lv_matnr_not_in_hierarchy | TYPE MATNR, " | |||
| lv_pi_eptyp | TYPE EPTYP, " | |||
| lv_endnode_not_matching | TYPE EPTYP, " | |||
| lv_pi_rktyp | TYPE WRF_WVKP_RKTYP, " | |||
| lv_no_price_point_group_found | TYPE WRF_WVKP_RKTYP, " | |||
| lv_pi_vkorg | TYPE VKORG, " | |||
| lv_pi_vtweg | TYPE VTWEG, " | |||
| lv_pi_pltyp | TYPE PLTYP, " | |||
| lv_pi_waerk | TYPE WAERS_EPG. " |
|   CALL FUNCTION 'PRICEPOINTGROUP_DETERM_HIER' "Determination of Price Point Group in Article Hierarchy |
| EXPORTING | ||
| PI_HIERID | = lv_pi_hierid | |
| PI_DATAM | = lv_pi_datam | |
| PI_ENDNODE | = lv_pi_endnode | |
| PI_MATNR | = lv_pi_matnr | |
| PI_EPTYP | = lv_pi_eptyp | |
| PI_RKTYP | = lv_pi_rktyp | |
| PI_VKORG | = lv_pi_vkorg | |
| PI_VTWEG | = lv_pi_vtweg | |
| PI_PLTYP | = lv_pi_pltyp | |
| PI_WAERK | = lv_pi_waerk | |
| IMPORTING | ||
| PE_EPRGR | = lv_pe_eprgr | |
| EXCEPTIONS | ||
| INVALID_INPUT = 1 | ||
| NO_HIERARCHY_FOUND = 2 | ||
| MATNR_NOT_IN_HIERARCHY = 3 | ||
| ENDNODE_NOT_MATCHING = 4 | ||
| NO_PRICE_POINT_GROUP_FOUND = 5 | ||
| . " PRICEPOINTGROUP_DETERM_HIER | ||
ABAP code using 7.40 inline data declarations to call FM PRICEPOINTGROUP_DETERM_HIER
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects