SAP POS_DISCOUNT_POINTER_ANALYSE Function Module for POS-Schnittstelle: Analyse der Naturalrabbat-Pointer
POS_DISCOUNT_POINTER_ANALYSE is a standard pos discount pointer analyse SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for POS-Schnittstelle: Analyse der Naturalrabbat-Pointer 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 pos discount pointer analyse FM, simply by entering the name POS_DISCOUNT_POINTER_ANALYSE into the relevant SAP transaction such as SE37 or SE38.
Function Group: WPDA
Program Name: SAPLWPDA
Main Program: SAPLWPDA
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function POS_DISCOUNT_POINTER_ANALYSE 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 'POS_DISCOUNT_POINTER_ANALYSE'"POS-Schnittstelle: Analyse der Naturalrabbat-Pointer.
EXPORTING
* PI_DATAB = '00000000' "Beginndatum des Betrachtungszeitraums
* PI_DATP3 = '00000000' "Bis-Datum 'letztes Versenden'. (Nur für POS)
* PI_DATBI = '99991231' "Ende des Betrachtungszeitraums
* PI_MODE = ' ' "'P'= POS-Modus, sonst ' ' (--> F2)
* PI_POINTER_REORG = ' ' "= 'X', wenn Pointer-Reorg erwünscht
TABLES
PIT_POINTER = "Änderungspointer (--> F2)
* PET_ARTSTM_OBJECTS = "Filialabhängige Ergebnistabelle (--> F2)
PIT_KONDART = "POS-relevante Kond.arten pro Filiale. (--> F2)
PIT_FILIA = "POS-relevante Filialen (--> F2).
* PET_BB_OBJ = "Ergebnistabelle Bestellbuch (--> F2).
* PET_ARTSTM_OBJECTS_2 = "Filialunabhängige Ergebnistabelle (--> F2)
* PET_BB_OBJ_2 = "Filialunabhängige Ergebnistabelle BB (--> F2)
* PIT_KONDART_GESAMT = "Tab. aller Kondarten aller Filialen.
* PET_REORG_POINTER = "Tab. aller reorganisierbaren Pointer
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLWPDA_001 POS Interface: Modification of the IDoc Data Material Groups
EXIT_SAPLWPDA_002 POS Interface: Modification of IDoc Data for Material Master
EXIT_SAPLWPDA_003 POS Interface: Modification of IDoc Data for EAN/UPC References
EXIT_SAPLWPDA_004 POS Interface: Modification of IDoc Data for Set Assignments
EXIT_SAPLWPDA_005 POS Interface: Modification of IDoc Data for Follow-On Items
EXIT_SAPLWPDA_006 POS Interface: Modification of IDoc Data for Exchange Rates
EXIT_SAPLWPDA_007 POS Interface: Modification of IDoc Data for Taxes
EXIT_SAPLWPDA_008 POS Interface: Modification of IDoc Data for Personal Data
EXIT_SAPLWPDA_009 POS Interface: Additional Change Pointer Analysis for WP_PLU
EXIT_SAPLWPDA_010 POS Interface: Additional Change Pointer Analysis for WPDSET
EXIT_SAPLWPDA_011 POS Interface: Additional Change Pointer Analysis for WPDNAC
EXIT_SAPLWPDA_012 POS Interface: Additional Change Pointer Analysis for WPDWGR
EXIT_SAPLWPDA_013 POS Interface: Additional Change Pointer Analysis for WP_PER
EXIT_SAPLWPDA_015 POS Outbound: Additional Filter Option in Condition Pointer Analysis
EXIT_SAPLWPDA_016 POS Interface: Modification of IDoc Data for Promotion Discounts
EXIT_SAPLWPDA_017 POS Interface: Additional Change Pointer Analysis for WPDREB
IMPORTING Parameters details for POS_DISCOUNT_POINTER_ANALYSE
PI_DATAB - Beginndatum des Betrachtungszeitraums
Data type: WPSTRUC-DATUMDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_DATP3 - Bis-Datum 'letztes Versenden'. (Nur für POS)
Data type: WPSTRUC-DATUMDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_DATBI - Ende des Betrachtungszeitraums
Data type: WPSTRUC-DATUMDefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_MODE - 'P'= POS-Modus, sonst SPACE (--> F2)
Data type: WPSTRUC-MODUSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_POINTER_REORG - = 'X', wenn Pointer-Reorg erwünscht
Data type: WPSTRUC-MODUSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for POS_DISCOUNT_POINTER_ANALYSE
PIT_POINTER - Änderungspointer (--> F2)
Data type: BDCPOptional: No
Call by Reference: No ( called with pass by value option)
PET_ARTSTM_OBJECTS - Filialabhängige Ergebnistabelle (--> F2)
Data type: WPARTSTMOptional: Yes
Call by Reference: No ( called with pass by value option)
PIT_KONDART - POS-relevante Kond.arten pro Filiale. (--> F2)
Data type: WPKONDARTOptional: No
Call by Reference: No ( called with pass by value option)
PIT_FILIA - POS-relevante Filialen (--> F2).
Data type: WDL_FILOptional: No
Call by Reference: No ( called with pass by value option)
PET_BB_OBJ - Ergebnistabelle Bestellbuch (--> F2).
Data type: WPARTSTM2Optional: Yes
Call by Reference: No ( called with pass by value option)
PET_ARTSTM_OBJECTS_2 - Filialunabhängige Ergebnistabelle (--> F2)
Data type: WPAOT2Optional: Yes
Call by Reference: No ( called with pass by value option)
PET_BB_OBJ_2 - Filialunabhängige Ergebnistabelle BB (--> F2)
Data type: WPARTSTM2Optional: Yes
Call by Reference: No ( called with pass by value option)
PIT_KONDART_GESAMT - Tab. aller Kondarten aller Filialen.
Data type: TWPEKOptional: Yes
Call by Reference: No ( called with pass by value option)
PET_REORG_POINTER - Tab. aller reorganisierbaren Pointer
Data type: BDICPIDENTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for POS_DISCOUNT_POINTER_ANALYSE 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_pi_datab | TYPE WPSTRUC-DATUM, " '00000000' | |||
| lt_pit_pointer | TYPE STANDARD TABLE OF BDCP, " | |||
| lv_pi_datp3 | TYPE WPSTRUC-DATUM, " '00000000' | |||
| lt_pet_artstm_objects | TYPE STANDARD TABLE OF WPARTSTM, " | |||
| lv_pi_datbi | TYPE WPSTRUC-DATUM, " '99991231' | |||
| lt_pit_kondart | TYPE STANDARD TABLE OF WPKONDART, " | |||
| lv_pi_mode | TYPE WPSTRUC-MODUS, " ' ' | |||
| lt_pit_filia | TYPE STANDARD TABLE OF WDL_FIL, " | |||
| lt_pet_bb_obj | TYPE STANDARD TABLE OF WPARTSTM2, " | |||
| lv_pi_pointer_reorg | TYPE WPSTRUC-MODUS, " ' ' | |||
| lt_pet_artstm_objects_2 | TYPE STANDARD TABLE OF WPAOT2, " | |||
| lt_pet_bb_obj_2 | TYPE STANDARD TABLE OF WPARTSTM2, " | |||
| lt_pit_kondart_gesamt | TYPE STANDARD TABLE OF TWPEK, " | |||
| lt_pet_reorg_pointer | TYPE STANDARD TABLE OF BDICPIDENT. " |
|   CALL FUNCTION 'POS_DISCOUNT_POINTER_ANALYSE' "POS-Schnittstelle: Analyse der Naturalrabbat-Pointer |
| EXPORTING | ||
| PI_DATAB | = lv_pi_datab | |
| PI_DATP3 | = lv_pi_datp3 | |
| PI_DATBI | = lv_pi_datbi | |
| PI_MODE | = lv_pi_mode | |
| PI_POINTER_REORG | = lv_pi_pointer_reorg | |
| TABLES | ||
| PIT_POINTER | = lt_pit_pointer | |
| PET_ARTSTM_OBJECTS | = lt_pet_artstm_objects | |
| PIT_KONDART | = lt_pit_kondart | |
| PIT_FILIA | = lt_pit_filia | |
| PET_BB_OBJ | = lt_pet_bb_obj | |
| PET_ARTSTM_OBJECTS_2 | = lt_pet_artstm_objects_2 | |
| PET_BB_OBJ_2 | = lt_pet_bb_obj_2 | |
| PIT_KONDART_GESAMT | = lt_pit_kondart_gesamt | |
| PET_REORG_POINTER | = lt_pet_reorg_pointer | |
| . " POS_DISCOUNT_POINTER_ANALYSE | ||
ABAP code using 7.40 inline data declarations to call FM POS_DISCOUNT_POINTER_ANALYSE
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 DATUM FROM WPSTRUC INTO @DATA(ld_pi_datab). | ||||
| DATA(ld_pi_datab) | = '00000000'. | |||
| "SELECT single DATUM FROM WPSTRUC INTO @DATA(ld_pi_datp3). | ||||
| DATA(ld_pi_datp3) | = '00000000'. | |||
| "SELECT single DATUM FROM WPSTRUC INTO @DATA(ld_pi_datbi). | ||||
| DATA(ld_pi_datbi) | = '99991231'. | |||
| "SELECT single MODUS FROM WPSTRUC INTO @DATA(ld_pi_mode). | ||||
| DATA(ld_pi_mode) | = ' '. | |||
| "SELECT single MODUS FROM WPSTRUC INTO @DATA(ld_pi_pointer_reorg). | ||||
| DATA(ld_pi_pointer_reorg) | = ' '. | |||
Search for further information about these or an SAP related objects