SAP /SAPAPO/TS_DM_EXTR_INITIALIZE Function Module for Initialization of Data Extraction









/SAPAPO/TS_DM_EXTR_INITIALIZE is a standard /sapapo/ts dm extr initialize SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Initialization of Data Extraction 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 /sapapo/ts dm extr initialize FM, simply by entering the name /SAPAPO/TS_DM_EXTR_INITIALIZE into the relevant SAP transaction such as SE37 or SE38.

Function Group: /SAPAPO/OO_TS_DM
Program Name: /SAPAPO/SAPLOO_TS_DM
Main Program: /SAPAPO/SAPLOO_TS_DM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /SAPAPO/TS_DM_EXTR_INITIALIZE 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 '/SAPAPO/TS_DM_EXTR_INITIALIZE'"Initialization of Data Extraction
EXPORTING
I_REQUNR = "Request Number: identif. eine Datenanforderung
* I_ISOURCE = "Name der InfoSource
* I_MAXSIZE = "maximale Anzahl Zeilen der Ausgabetabelle
* I_UPDMODE = "Übertragungsmodus (siehe Domänenfestwerte)
* I_DATAPAKID = "Nummer des fehlerhaften Datenpakets
* I_PRIVATE_MODE = "Optional: Kennzeichen für Fremdaufruf

IMPORTING
EV_PAREAID = "DP/SNP-Planungsbereichs
ET_TIMES = "Zeit-InfoObjekte
EV_MAXSIZE = "Max. Anzahl Tabelleneinträge in Extraction-API-Schnittstelle
ET_EXTR_BLOCK = "Tabelle zur Bildung von Blöcken bei der Datenextraktion
EV_PAR_PROFILE = "Name des DP/SNP-Parallelisierungsprofils
EV_NO_ZERO_RECORDS = "Keine Extraktion von Datensätzen ohne Kennzahlwerte
EV_PLOBID = "Planungsobjektstruktur zur DataSource
EV_BAS_PLOBID = "Basis-Planungsobjektstruktur
EV_EXTRACT_STRU = "Extraktstruktur
EV_EXTRACT_REPID = "Generiertes Programm
ET_SELECTION = "Selektion
ET_GROUP_BY = "Gruppierungsbedingung
ET_KEYFIGURES = "Kennzahlen
ET_TIMES_AND_UNITS = "Zeit- und Einheits-InfoObjekte

TABLES
I_T_SELECT = "Selektionskriterien
I_T_FIELDS = "Feldliste

EXCEPTIONS
ERROR_PASSED_TO_MESS_HANDLER = 1
.



IMPORTING Parameters details for /SAPAPO/TS_DM_EXTR_INITIALIZE

I_REQUNR - Request Number: identif. eine Datenanforderung

Data type: SBIWA_S_INTERFACE-REQUNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_ISOURCE - Name der InfoSource

Data type: SBIWA_S_INTERFACE-ISOURCE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MAXSIZE - maximale Anzahl Zeilen der Ausgabetabelle

Data type: SBIWA_S_INTERFACE-MAXSIZE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UPDMODE - Übertragungsmodus (siehe Domänenfestwerte)

Data type: SBIWA_S_INTERFACE-UPDMODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATAPAKID - Nummer des fehlerhaften Datenpakets

Data type: SBIWA_S_INTERFACE-DATAPAKID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PRIVATE_MODE - Optional: Kennzeichen für Fremdaufruf

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for /SAPAPO/TS_DM_EXTR_INITIALIZE

EV_PAREAID - DP/SNP-Planungsbereichs

Data type: /SAPAPO/TS_PAREAID
Optional: No
Call by Reference: Yes

ET_TIMES - Zeit-InfoObjekte

Data type: /SAPAPO/TS_GROUP_BY_TAB
Optional: No
Call by Reference: Yes

EV_MAXSIZE - Max. Anzahl Tabelleneinträge in Extraction-API-Schnittstelle

Data type: RSMAXSIZE
Optional: No
Call by Reference: Yes

ET_EXTR_BLOCK - Tabelle zur Bildung von Blöcken bei der Datenextraktion

Data type: /SAPAPO/TS_DM_EXTR_BLOCK_TAB
Optional: No
Call by Reference: Yes

EV_PAR_PROFILE - Name des DP/SNP-Parallelisierungsprofils

Data type: /SAPAPO/SDP_PARALLEL_PROF_NAME
Optional: No
Call by Reference: Yes

EV_NO_ZERO_RECORDS - Keine Extraktion von Datensätzen ohne Kennzahlwerte

Data type: /SAPAPO/TS_EXT_NO_ZERO_RECORDS
Optional: No
Call by Reference: Yes

EV_PLOBID - Planungsobjektstruktur zur DataSource

Data type: /SAPAPO/TS_PLOBID
Optional: No
Call by Reference: Yes

EV_BAS_PLOBID - Basis-Planungsobjektstruktur

Data type: /SAPAPO/TS_PLOBID
Optional: No
Call by Reference: Yes

EV_EXTRACT_STRU - Extraktstruktur

Data type: /SAPAPO/TABNAME
Optional: No
Call by Reference: Yes

EV_EXTRACT_REPID - Generiertes Programm

Data type: SYREPID
Optional: No
Call by Reference: Yes

ET_SELECTION - Selektion

Data type: /SAPAPO/TS_IOBJ_SELECTION_TAB
Optional: No
Call by Reference: Yes

ET_GROUP_BY - Gruppierungsbedingung

Data type: /SAPAPO/TS_GROUP_BY_TAB
Optional: No
Call by Reference: Yes

ET_KEYFIGURES - Kennzahlen

Data type: /SAPAPO/TS_GROUP_BY_TAB
Optional: No
Call by Reference: Yes

ET_TIMES_AND_UNITS - Zeit- und Einheits-InfoObjekte

Data type: /SAPAPO/TS_GROUP_BY_TAB
Optional: No
Call by Reference: Yes

TABLES Parameters details for /SAPAPO/TS_DM_EXTR_INITIALIZE

I_T_SELECT - Selektionskriterien

Data type: SBIWA_T_SELECT
Optional: No
Call by Reference: Yes

I_T_FIELDS - Feldliste

Data type: SBIWA_T_FIELDS
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR_PASSED_TO_MESS_HANDLER - Exit wegen Fehler; Nachricht im Message Handler

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /SAPAPO/TS_DM_EXTR_INITIALIZE 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_i_requnr  TYPE SBIWA_S_INTERFACE-REQUNR, "   
lv_ev_pareaid  TYPE /SAPAPO/TS_PAREAID, "   
lt_i_t_select  TYPE STANDARD TABLE OF SBIWA_T_SELECT, "   
lv_error_passed_to_mess_handler  TYPE SBIWA_T_SELECT, "   
lv_et_times  TYPE /SAPAPO/TS_GROUP_BY_TAB, "   
lv_ev_maxsize  TYPE RSMAXSIZE, "   
lv_et_extr_block  TYPE /SAPAPO/TS_DM_EXTR_BLOCK_TAB, "   
lv_ev_par_profile  TYPE /SAPAPO/SDP_PARALLEL_PROF_NAME, "   
lv_ev_no_zero_records  TYPE /SAPAPO/TS_EXT_NO_ZERO_RECORDS, "   
lv_ev_plobid  TYPE /SAPAPO/TS_PLOBID, "   
lv_i_isource  TYPE SBIWA_S_INTERFACE-ISOURCE, "   
lt_i_t_fields  TYPE STANDARD TABLE OF SBIWA_T_FIELDS, "   
lv_i_maxsize  TYPE SBIWA_S_INTERFACE-MAXSIZE, "   
lv_ev_bas_plobid  TYPE /SAPAPO/TS_PLOBID, "   
lv_i_updmode  TYPE SBIWA_S_INTERFACE-UPDMODE, "   
lv_ev_extract_stru  TYPE /SAPAPO/TABNAME, "   
lv_i_datapakid  TYPE SBIWA_S_INTERFACE-DATAPAKID, "   
lv_ev_extract_repid  TYPE SYREPID, "   
lv_et_selection  TYPE /SAPAPO/TS_IOBJ_SELECTION_TAB, "   
lv_i_private_mode  TYPE /SAPAPO/TS_IOBJ_SELECTION_TAB, "   
lv_et_group_by  TYPE /SAPAPO/TS_GROUP_BY_TAB, "   
lv_et_keyfigures  TYPE /SAPAPO/TS_GROUP_BY_TAB, "   
lv_et_times_and_units  TYPE /SAPAPO/TS_GROUP_BY_TAB. "   

  CALL FUNCTION '/SAPAPO/TS_DM_EXTR_INITIALIZE'  "Initialization of Data Extraction
    EXPORTING
         I_REQUNR = lv_i_requnr
         I_ISOURCE = lv_i_isource
         I_MAXSIZE = lv_i_maxsize
         I_UPDMODE = lv_i_updmode
         I_DATAPAKID = lv_i_datapakid
         I_PRIVATE_MODE = lv_i_private_mode
    IMPORTING
         EV_PAREAID = lv_ev_pareaid
         ET_TIMES = lv_et_times
         EV_MAXSIZE = lv_ev_maxsize
         ET_EXTR_BLOCK = lv_et_extr_block
         EV_PAR_PROFILE = lv_ev_par_profile
         EV_NO_ZERO_RECORDS = lv_ev_no_zero_records
         EV_PLOBID = lv_ev_plobid
         EV_BAS_PLOBID = lv_ev_bas_plobid
         EV_EXTRACT_STRU = lv_ev_extract_stru
         EV_EXTRACT_REPID = lv_ev_extract_repid
         ET_SELECTION = lv_et_selection
         ET_GROUP_BY = lv_et_group_by
         ET_KEYFIGURES = lv_et_keyfigures
         ET_TIMES_AND_UNITS = lv_et_times_and_units
    TABLES
         I_T_SELECT = lt_i_t_select
         I_T_FIELDS = lt_i_t_fields
    EXCEPTIONS
        ERROR_PASSED_TO_MESS_HANDLER = 1
. " /SAPAPO/TS_DM_EXTR_INITIALIZE




ABAP code using 7.40 inline data declarations to call FM /SAPAPO/TS_DM_EXTR_INITIALIZE

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 REQUNR FROM SBIWA_S_INTERFACE INTO @DATA(ld_i_requnr).
 
 
 
 
 
 
 
 
 
 
"SELECT single ISOURCE FROM SBIWA_S_INTERFACE INTO @DATA(ld_i_isource).
 
 
"SELECT single MAXSIZE FROM SBIWA_S_INTERFACE INTO @DATA(ld_i_maxsize).
 
 
"SELECT single UPDMODE FROM SBIWA_S_INTERFACE INTO @DATA(ld_i_updmode).
 
 
"SELECT single DATAPAKID FROM SBIWA_S_INTERFACE INTO @DATA(ld_i_datapakid).
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!