SAP Function Modules

POS_CONDITION_POINTER_ANALYSE SAP Function module - POS-Schnittstelle: Analyse der Änderungspointer für Konditionen.







POS_CONDITION_POINTER_ANALYSE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name POS_CONDITION_POINTER_ANALYSE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: WPDA
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM POS_CONDITION_POINTER_ANALYSE - POS CONDITION POINTER ANALYSE





CALL FUNCTION 'POS_CONDITION_POINTER_ANALYSE' "POS-Schnittstelle: Analyse der Änderungspointer für Konditionen.
* EXPORTING
*   pi_datab = '00000000'       " wpstruc-datum  Beginndatum des Betrachtungszeitraums
*   pi_datp3 = '00000000'       " wpstruc-datum  Bis-Datum 'letztes Versenden'. (Nur für POS)
*   pi_datbi = '99991231'       " wpstruc-datum  Ende des Betrachtungszeitraums
*   pi_mode = ' '               " wpstruc-modus  'P'= POS, 'A'= Additionals, 'S' =Sortimentsliste, SPACE (->F2 )
*   pi_pointer_reorg = ' '      " wpstruc-modus  = 'X', wenn Pointer-Reorg erwünscht
*   pi_vkorg =                  " wpstruc-vkorg  Verkaufsorganisation (nur für Additionals)
*   pi_vtweg =                  " wpstruc-vtweg  Vertriebsweg (nur für Additionals)
*   pi_parallel = ' '           " wpstruc-parallel  Kennzeichen: Aufbereitung parallel.
  TABLES
    pit_pointer =               " bdcp          Änderungspointer (--> F2)
*   pet_artstm_objects =        " wpartstm      Filialabhängige Ergebnistabelle (--> F2)
    pit_kondart =               " wpkondart     POS-relevante Kond.arten pro Filiale. (--> F2)
    pit_filia =                 " wdl_fil       POS-relevante Filialen (--> F2).
*   pet_bb_obj =                " wpartstm2     Ergebnistabelle Sortimentsliste (--> F2).
*   pet_artstm_objects_2 =      " wpaot2        Filialunabhängige Ergebnistabelle (--> F2)
*   pet_bb_obj_2 =              " wpartstm2     Filialunabhängige Ergebnistabelle SL (--> F2)
*   pit_kondart_gesamt =        " twpek         Tab. aller Kondarten aller Filialen.
*   pet_reorg_pointer =         " bdicpident    Tab. aller reorganisierbaren Pointer
    .  "  POS_CONDITION_POINTER_ANALYSE

ABAP code example for Function Module POS_CONDITION_POINTER_ANALYSE





The ABAP code below is a full code listing to execute function module POS_CONDITION_POINTER_ANALYSE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_pit_pointer  TYPE STANDARD TABLE OF BDCP,"TABLES PARAM
wa_pit_pointer  LIKE LINE OF it_pit_pointer ,
it_pet_artstm_objects  TYPE STANDARD TABLE OF WPARTSTM,"TABLES PARAM
wa_pet_artstm_objects  LIKE LINE OF it_pet_artstm_objects ,
it_pit_kondart  TYPE STANDARD TABLE OF WPKONDART,"TABLES PARAM
wa_pit_kondart  LIKE LINE OF it_pit_kondart ,
it_pit_filia  TYPE STANDARD TABLE OF WDL_FIL,"TABLES PARAM
wa_pit_filia  LIKE LINE OF it_pit_filia ,
it_pet_bb_obj  TYPE STANDARD TABLE OF WPARTSTM2,"TABLES PARAM
wa_pet_bb_obj  LIKE LINE OF it_pet_bb_obj ,
it_pet_artstm_objects_2  TYPE STANDARD TABLE OF WPAOT2,"TABLES PARAM
wa_pet_artstm_objects_2  LIKE LINE OF it_pet_artstm_objects_2 ,
it_pet_bb_obj_2  TYPE STANDARD TABLE OF WPARTSTM2,"TABLES PARAM
wa_pet_bb_obj_2  LIKE LINE OF it_pet_bb_obj_2 ,
it_pit_kondart_gesamt  TYPE STANDARD TABLE OF TWPEK,"TABLES PARAM
wa_pit_kondart_gesamt  LIKE LINE OF it_pit_kondart_gesamt ,
it_pet_reorg_pointer  TYPE STANDARD TABLE OF BDICPIDENT,"TABLES PARAM
wa_pet_reorg_pointer  LIKE LINE OF it_pet_reorg_pointer .


DATA(ld_pi_datab) = 20210129

DATA(ld_pi_datp3) = 20210129

DATA(ld_pi_datbi) = 20210129

DATA(ld_pi_mode) = some text here

DATA(ld_pi_pointer_reorg) = some text here

DATA(ld_pi_vkorg) = some text here

DATA(ld_pi_vtweg) = some text here

DATA(ld_pi_parallel) = some text here

"populate fields of struture and append to itab
append wa_pit_pointer to it_pit_pointer.

"populate fields of struture and append to itab
append wa_pet_artstm_objects to it_pet_artstm_objects.

"populate fields of struture and append to itab
append wa_pit_kondart to it_pit_kondart.

"populate fields of struture and append to itab
append wa_pit_filia to it_pit_filia.

"populate fields of struture and append to itab
append wa_pet_bb_obj to it_pet_bb_obj.

"populate fields of struture and append to itab
append wa_pet_artstm_objects_2 to it_pet_artstm_objects_2.

"populate fields of struture and append to itab
append wa_pet_bb_obj_2 to it_pet_bb_obj_2.

"populate fields of struture and append to itab
append wa_pit_kondart_gesamt to it_pit_kondart_gesamt.

"populate fields of struture and append to itab
append wa_pet_reorg_pointer to it_pet_reorg_pointer. . CALL FUNCTION 'POS_CONDITION_POINTER_ANALYSE' * EXPORTING * pi_datab = ld_pi_datab * pi_datp3 = ld_pi_datp3 * pi_datbi = ld_pi_datbi * pi_mode = ld_pi_mode * pi_pointer_reorg = ld_pi_pointer_reorg * pi_vkorg = ld_pi_vkorg * pi_vtweg = ld_pi_vtweg * pi_parallel = ld_pi_parallel TABLES pit_pointer = it_pit_pointer * pet_artstm_objects = it_pet_artstm_objects pit_kondart = it_pit_kondart pit_filia = it_pit_filia * pet_bb_obj = it_pet_bb_obj * pet_artstm_objects_2 = it_pet_artstm_objects_2 * pet_bb_obj_2 = it_pet_bb_obj_2 * pit_kondart_gesamt = it_pit_kondart_gesamt * pet_reorg_pointer = it_pet_reorg_pointer . " POS_CONDITION_POINTER_ANALYSE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_pi_datab  TYPE WPSTRUC-DATUM ,
it_pit_pointer  TYPE STANDARD TABLE OF BDCP ,
wa_pit_pointer  LIKE LINE OF it_pit_pointer,
ld_pi_datp3  TYPE WPSTRUC-DATUM ,
it_pet_artstm_objects  TYPE STANDARD TABLE OF WPARTSTM ,
wa_pet_artstm_objects  LIKE LINE OF it_pet_artstm_objects,
ld_pi_datbi  TYPE WPSTRUC-DATUM ,
it_pit_kondart  TYPE STANDARD TABLE OF WPKONDART ,
wa_pit_kondart  LIKE LINE OF it_pit_kondart,
ld_pi_mode  TYPE WPSTRUC-MODUS ,
it_pit_filia  TYPE STANDARD TABLE OF WDL_FIL ,
wa_pit_filia  LIKE LINE OF it_pit_filia,
ld_pi_pointer_reorg  TYPE WPSTRUC-MODUS ,
it_pet_bb_obj  TYPE STANDARD TABLE OF WPARTSTM2 ,
wa_pet_bb_obj  LIKE LINE OF it_pet_bb_obj,
ld_pi_vkorg  TYPE WPSTRUC-VKORG ,
it_pet_artstm_objects_2  TYPE STANDARD TABLE OF WPAOT2 ,
wa_pet_artstm_objects_2  LIKE LINE OF it_pet_artstm_objects_2,
ld_pi_vtweg  TYPE WPSTRUC-VTWEG ,
it_pet_bb_obj_2  TYPE STANDARD TABLE OF WPARTSTM2 ,
wa_pet_bb_obj_2  LIKE LINE OF it_pet_bb_obj_2,
ld_pi_parallel  TYPE WPSTRUC-PARALLEL ,
it_pit_kondart_gesamt  TYPE STANDARD TABLE OF TWPEK ,
wa_pit_kondart_gesamt  LIKE LINE OF it_pit_kondart_gesamt,
it_pet_reorg_pointer  TYPE STANDARD TABLE OF BDICPIDENT ,
wa_pet_reorg_pointer  LIKE LINE OF it_pet_reorg_pointer.


ld_pi_datab = 20210129

"populate fields of struture and append to itab
append wa_pit_pointer to it_pit_pointer.

ld_pi_datp3 = 20210129

"populate fields of struture and append to itab
append wa_pet_artstm_objects to it_pet_artstm_objects.

ld_pi_datbi = 20210129

"populate fields of struture and append to itab
append wa_pit_kondart to it_pit_kondart.

ld_pi_mode = some text here

"populate fields of struture and append to itab
append wa_pit_filia to it_pit_filia.

ld_pi_pointer_reorg = some text here

"populate fields of struture and append to itab
append wa_pet_bb_obj to it_pet_bb_obj.

ld_pi_vkorg = some text here

"populate fields of struture and append to itab
append wa_pet_artstm_objects_2 to it_pet_artstm_objects_2.

ld_pi_vtweg = some text here

"populate fields of struture and append to itab
append wa_pet_bb_obj_2 to it_pet_bb_obj_2.

ld_pi_parallel = some text here

"populate fields of struture and append to itab
append wa_pit_kondart_gesamt to it_pit_kondart_gesamt.

"populate fields of struture and append to itab
append wa_pet_reorg_pointer to it_pet_reorg_pointer.

SAP Documentation for FM POS_CONDITION_POINTER_ANALYSE


This module is used to analyze the objects affected by the change pointers created by the ALE layer. The system only analyzes change ...See here for full SAP fm documentation





Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name POS_CONDITION_POINTER_ANALYSE or its description.