SAP PRICE_POINT_READ Function Module for NOTRANSL: Lesen eines Eckpreises aus Tabelle TWPG
PRICE_POINT_READ is a standard price point read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Lesen eines Eckpreises aus Tabelle TWPG 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 price point read FM, simply by entering the name PRICE_POINT_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: WVKE
Program Name: SAPLWVKE
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PRICE_POINT_READ 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 'PRICE_POINT_READ'"NOTRANSL: Lesen eines Eckpreises aus Tabelle TWPG.
EXPORTING
* PI_VKORG = "Sales Organization
* PI_RKTYP = 'A' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PI_EPRGR = "Price Point Group
PI_PRICE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
PI_WAERS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
PI_DATAM = "DE-EN-LANG-SWITCH-NO-TRANSLATION
PI_KURST = "DE-EN-LANG-SWITCH-NO-TRANSLATION
PI_HWAER = "
* PI_MFACT = 1 "
* PI_VTWEG = "Distribution Channel
* PI_MATKL = "Material Group
* PI_PLTYP = "Price List
* PI_WAERK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PI_EPTYP = "
* PI_MATNR = "Material Number
* PI_HIERID = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PI_ENDNODE = "End Node of Material Hierarchy
IMPORTING
PE_PRICE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
PE_WAERS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
PE_EPRGR = "
CHANGING
* PE_T_TWPG = "
EXCEPTIONS
NO_PRICE_POINT_GROUP_FOUND = 1 NO_PRICE_POINTS_MAINTAINED = 2 CONVERSION_NOT_FOUND = 3
IMPORTING Parameters details for PRICE_POINT_READ
PI_VKORG - Sales Organization
Data type: TWEGO-VKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_RKTYP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CHAR1Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_EPRGR - Price Point Group
Data type: EPRGROptional: Yes
Call by Reference: No ( called with pass by value option)
PI_PRICE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: KALP-ENDPROptional: No
Call by Reference: No ( called with pass by value option)
PI_WAERS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: KALP-VWAEROptional: No
Call by Reference: No ( called with pass by value option)
PI_DATAM - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: KALP-VKKAMOptional: No
Call by Reference: No ( called with pass by value option)
PI_KURST - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: KALP-KURSTOptional: No
Call by Reference: No ( called with pass by value option)
PI_HWAER -
Data type: KALP-HWAEROptional: No
Call by Reference: No ( called with pass by value option)
PI_MFACT -
Data type: IDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_VTWEG - Distribution Channel
Data type: TWEGO-VTWEGOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_MATKL - Material Group
Data type: TWEGO-MATKLOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_PLTYP - Price List
Data type: TWEGO-PLTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_WAERK - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: TWEGO-WAERKOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_EPTYP -
Data type: TWEGO-EPTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_MATNR - Material Number
Data type: MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
PI_HIERID - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CHAR2Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_ENDNODE - End Node of Material Hierarchy
Data type: CHAR18Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PRICE_POINT_READ
PE_PRICE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: KALP-ENDPROptional: No
Call by Reference: No ( called with pass by value option)
PE_WAERS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: KALP-VWAEROptional: No
Call by Reference: No ( called with pass by value option)
PE_EPRGR -
Data type: TWEGO-EPRGROptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for PRICE_POINT_READ
PE_T_TWPG -
Data type: WVKE_TWPG_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_PRICE_POINT_GROUP_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PRICE_POINTS_MAINTAINED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONVERSION_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PRICE_POINT_READ 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_price | TYPE KALP-ENDPR, " | |||
| lv_pi_vkorg | TYPE TWEGO-VKORG, " | |||
| lv_pe_t_twpg | TYPE WVKE_TWPG_TAB, " | |||
| lv_no_price_point_group_found | TYPE WVKE_TWPG_TAB, " | |||
| lv_pi_rktyp | TYPE CHAR1, " 'A' | |||
| lv_pi_eprgr | TYPE EPRGR, " | |||
| lv_pi_price | TYPE KALP-ENDPR, " | |||
| lv_pi_waers | TYPE KALP-VWAER, " | |||
| lv_pi_datam | TYPE KALP-VKKAM, " | |||
| lv_pi_kurst | TYPE KALP-KURST, " | |||
| lv_pi_hwaer | TYPE KALP-HWAER, " | |||
| lv_pi_mfact | TYPE I, " 1 | |||
| lv_pe_waers | TYPE KALP-VWAER, " | |||
| lv_pi_vtweg | TYPE TWEGO-VTWEG, " | |||
| lv_no_price_points_maintained | TYPE TWEGO, " | |||
| lv_pe_eprgr | TYPE TWEGO-EPRGR, " | |||
| lv_pi_matkl | TYPE TWEGO-MATKL, " | |||
| lv_conversion_not_found | TYPE TWEGO, " | |||
| lv_pi_pltyp | TYPE TWEGO-PLTYP, " | |||
| lv_pi_waerk | TYPE TWEGO-WAERK, " | |||
| lv_pi_eptyp | TYPE TWEGO-EPTYP, " | |||
| lv_pi_matnr | TYPE MATNR, " | |||
| lv_pi_hierid | TYPE CHAR2, " | |||
| lv_pi_endnode | TYPE CHAR18. " |
|   CALL FUNCTION 'PRICE_POINT_READ' "NOTRANSL: Lesen eines Eckpreises aus Tabelle TWPG |
| EXPORTING | ||
| PI_VKORG | = lv_pi_vkorg | |
| PI_RKTYP | = lv_pi_rktyp | |
| PI_EPRGR | = lv_pi_eprgr | |
| PI_PRICE | = lv_pi_price | |
| PI_WAERS | = lv_pi_waers | |
| PI_DATAM | = lv_pi_datam | |
| PI_KURST | = lv_pi_kurst | |
| PI_HWAER | = lv_pi_hwaer | |
| PI_MFACT | = lv_pi_mfact | |
| PI_VTWEG | = lv_pi_vtweg | |
| PI_MATKL | = lv_pi_matkl | |
| PI_PLTYP | = lv_pi_pltyp | |
| PI_WAERK | = lv_pi_waerk | |
| PI_EPTYP | = lv_pi_eptyp | |
| PI_MATNR | = lv_pi_matnr | |
| PI_HIERID | = lv_pi_hierid | |
| PI_ENDNODE | = lv_pi_endnode | |
| IMPORTING | ||
| PE_PRICE | = lv_pe_price | |
| PE_WAERS | = lv_pe_waers | |
| PE_EPRGR | = lv_pe_eprgr | |
| CHANGING | ||
| PE_T_TWPG | = lv_pe_t_twpg | |
| EXCEPTIONS | ||
| NO_PRICE_POINT_GROUP_FOUND = 1 | ||
| NO_PRICE_POINTS_MAINTAINED = 2 | ||
| CONVERSION_NOT_FOUND = 3 | ||
| . " PRICE_POINT_READ | ||
ABAP code using 7.40 inline data declarations to call FM PRICE_POINT_READ
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.| "SELECT single ENDPR FROM KALP INTO @DATA(ld_pe_price). | ||||
| "SELECT single VKORG FROM TWEGO INTO @DATA(ld_pi_vkorg). | ||||
| DATA(ld_pi_rktyp) | = 'A'. | |||
| "SELECT single ENDPR FROM KALP INTO @DATA(ld_pi_price). | ||||
| "SELECT single VWAER FROM KALP INTO @DATA(ld_pi_waers). | ||||
| "SELECT single VKKAM FROM KALP INTO @DATA(ld_pi_datam). | ||||
| "SELECT single KURST FROM KALP INTO @DATA(ld_pi_kurst). | ||||
| "SELECT single HWAER FROM KALP INTO @DATA(ld_pi_hwaer). | ||||
| DATA(ld_pi_mfact) | = 1. | |||
| "SELECT single VWAER FROM KALP INTO @DATA(ld_pe_waers). | ||||
| "SELECT single VTWEG FROM TWEGO INTO @DATA(ld_pi_vtweg). | ||||
| "SELECT single EPRGR FROM TWEGO INTO @DATA(ld_pe_eprgr). | ||||
| "SELECT single MATKL FROM TWEGO INTO @DATA(ld_pi_matkl). | ||||
| "SELECT single PLTYP FROM TWEGO INTO @DATA(ld_pi_pltyp). | ||||
| "SELECT single WAERK FROM TWEGO INTO @DATA(ld_pi_waerk). | ||||
| "SELECT single EPTYP FROM TWEGO INTO @DATA(ld_pi_eptyp). | ||||
Search for further information about these or an SAP related objects