SAP /SAPAPO/TS_DM_GET Function Module for S&DP: Read Data









/SAPAPO/TS_DM_GET is a standard /sapapo/ts dm get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for S&DP: Read Data 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 get FM, simply by entering the name /SAPAPO/TS_DM_GET 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: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /SAPAPO/TS_DM_GET 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_GET'"S&DP: Read Data
EXPORTING
IV_PAREAID = "
* IT_KEYFIGURES_PERSIST = "Tabelle persistenter Kennzahlen im LC
* IV_UOM = "Unit of Measurement of Size
* IS_READ_OPTIONS = "Struktur zur Angabe von Leseoptionen
IS_PERIOD = "Struktur des Periodenaufbaus
IT_SELECTION = "Referenzstruktur für Selektionsbedingungen für Merkmale
IT_GROUP_BY = "Referenzstruktur für Gruppierung auf Merkmale, Tabellentyp
IT_KEYFIGURES = "Tabelle der Kennzahlen
* IS_DRILL_OPTIONS = "Navigationsoptionen
* IT_VRSIO_KEYFIGURES = "Tabellentyp: Version - Kennzahltabelle
* IT_PLOB_VALUES = "Tabelle von Merkmalsausprägungen zum Plob

IMPORTING
ET_TAB = "Tabellentyp: Planungsmatrix extern
ET_PLOB_VALUES = "Tabelle von Merkmalsausprägungen zum Plob
ET_CHAR_TEXT = "Merkmalsausprägungen mit Texten
ET_PLOBS_IN_VIEW = "
EV_USED_PSTRU = "ID zur Identifizierung einer Planungsobjektstruktur
ET_MESSAGES = "Tabellentyp fuer Meldungen
ET_TMP_PLOB_REL = "Tabtyp für Objektbeziehungen

CHANGING
CT_LINES = "Tabellentyp: Externer Zeilenindex Planungsmatrix
CT_COLS = "Tabellentyp: Externer Spaltenindex Planungsmatrix

EXCEPTIONS
AREA_INVALID = 1 INVALID_INTERFACE = 2 NO_MASTER_DATA = 3 CUSTOMIZING_ERROR = 4 INVALID_DATA_STATUS = 5 LC_CONNECT_FAILED = 6 LC_COM_ERROR = 7 LC_ORDERS_ERROR = 8 NO_AUTHORIZATION = 9
.



IMPORTING Parameters details for /SAPAPO/TS_DM_GET

IV_PAREAID -

Data type: /SAPAPO/TS_PAREAID
Optional: No
Call by Reference: No ( called with pass by value option)

IT_KEYFIGURES_PERSIST - Tabelle persistenter Kennzahlen im LC

Data type: /SAPAPO/TS_KEYFS_EXT_TAB
Optional: Yes
Call by Reference: Yes

IV_UOM - Unit of Measurement of Size

Data type: /SAPAPO/UNIT
Optional: Yes
Call by Reference: Yes

IS_READ_OPTIONS - Struktur zur Angabe von Leseoptionen

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

IS_PERIOD - Struktur des Periodenaufbaus

Data type: /SAPAPO/TS_PERIOD
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SELECTION - Referenzstruktur für Selektionsbedingungen für Merkmale

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

IT_GROUP_BY - Referenzstruktur für Gruppierung auf Merkmale, Tabellentyp

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

IT_KEYFIGURES - Tabelle der Kennzahlen

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

IS_DRILL_OPTIONS - Navigationsoptionen

Data type: /SAPAPO/MSDP_NAVIGATION
Optional: Yes
Call by Reference: Yes

IT_VRSIO_KEYFIGURES - Tabellentyp: Version - Kennzahltabelle

Data type: /SAPAPO/TS_VRSIO_KEYFTAB_TAB
Optional: Yes
Call by Reference: Yes

IT_PLOB_VALUES - Tabelle von Merkmalsausprägungen zum Plob

Data type: /SAPAPO/TS_PLOB_VALUES_TAB
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for /SAPAPO/TS_DM_GET

ET_TAB - Tabellentyp: Planungsmatrix extern

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

ET_PLOB_VALUES - Tabelle von Merkmalsausprägungen zum Plob

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

ET_CHAR_TEXT - Merkmalsausprägungen mit Texten

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

ET_PLOBS_IN_VIEW -

Data type: ANY TABLE
Optional: No
Call by Reference: Yes

EV_USED_PSTRU - ID zur Identifizierung einer Planungsobjektstruktur

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

ET_MESSAGES - Tabellentyp fuer Meldungen

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

ET_TMP_PLOB_REL - Tabtyp für Objektbeziehungen

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

CHANGING Parameters details for /SAPAPO/TS_DM_GET

CT_LINES - Tabellentyp: Externer Zeilenindex Planungsmatrix

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

CT_COLS - Tabellentyp: Externer Spaltenindex Planungsmatrix

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

EXCEPTIONS details

AREA_INVALID -

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

INVALID_INTERFACE -

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

NO_MASTER_DATA -

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

CUSTOMIZING_ERROR -

Data type:
Optional: No
Call by Reference: Yes

INVALID_DATA_STATUS -

Data type:
Optional: No
Call by Reference: Yes

LC_CONNECT_FAILED -

Data type:
Optional: No
Call by Reference: Yes

LC_COM_ERROR -

Data type:
Optional: No
Call by Reference: Yes

LC_ORDERS_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORIZATION -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /SAPAPO/TS_DM_GET 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_et_tab  TYPE /SAPAPO/TS_TAB_EXT_TAB, "   
lv_ct_lines  TYPE /SAPAPO/TS_LINES_EXT_TAB, "   
lv_iv_pareaid  TYPE /SAPAPO/TS_PAREAID, "   
lv_area_invalid  TYPE /SAPAPO/TS_PAREAID, "   
lv_it_keyfigures_persist  TYPE /SAPAPO/TS_KEYFS_EXT_TAB, "   
lv_iv_uom  TYPE /SAPAPO/UNIT, "   
lv_ct_cols  TYPE /SAPAPO/TS_COLS_EXT_TAB, "   
lv_et_plob_values  TYPE /SAPAPO/TS_PLOB_VALUES_TAB, "   
lv_is_read_options  TYPE /SAPAPO/TS_READ_OPTIONS, "   
lv_invalid_interface  TYPE /SAPAPO/TS_READ_OPTIONS, "   
lv_is_period  TYPE /SAPAPO/TS_PERIOD, "   
lv_et_char_text  TYPE /SAPAPO/TS_CHAR_VALUES_TAB, "   
lv_no_master_data  TYPE /SAPAPO/TS_CHAR_VALUES_TAB, "   
lv_it_selection  TYPE /SAPAPO/TS_IOBJ_SELECTION_TAB, "   
lv_et_plobs_in_view  TYPE ANY TABLE, "   
lv_customizing_error  TYPE ANY TABLE, "   
lv_it_group_by  TYPE /SAPAPO/TS_GROUP_BY_TAB, "   
lv_ev_used_pstru  TYPE /SAPAPO/TS_PLOBID, "   
lv_invalid_data_status  TYPE /SAPAPO/TS_PLOBID, "   
lv_et_messages  TYPE /SAPAPO/MSG_TAB, "   
lv_it_keyfigures  TYPE /SAPAPO/TS_KEYFS_EXT_TAB, "   
lv_lc_connect_failed  TYPE /SAPAPO/TS_KEYFS_EXT_TAB, "   
lv_lc_com_error  TYPE /SAPAPO/TS_KEYFS_EXT_TAB, "   
lv_et_tmp_plob_rel  TYPE /SAPAPO/TS_PLOB_RELAT_TAB, "   
lv_is_drill_options  TYPE /SAPAPO/MSDP_NAVIGATION, "   
lv_lc_orders_error  TYPE /SAPAPO/MSDP_NAVIGATION, "   
lv_it_vrsio_keyfigures  TYPE /SAPAPO/TS_VRSIO_KEYFTAB_TAB, "   
lv_it_plob_values  TYPE /SAPAPO/TS_PLOB_VALUES_TAB, "   
lv_no_authorization  TYPE /SAPAPO/TS_PLOB_VALUES_TAB. "   

  CALL FUNCTION '/SAPAPO/TS_DM_GET'  "S&DP: Read Data
    EXPORTING
         IV_PAREAID = lv_iv_pareaid
         IT_KEYFIGURES_PERSIST = lv_it_keyfigures_persist
         IV_UOM = lv_iv_uom
         IS_READ_OPTIONS = lv_is_read_options
         IS_PERIOD = lv_is_period
         IT_SELECTION = lv_it_selection
         IT_GROUP_BY = lv_it_group_by
         IT_KEYFIGURES = lv_it_keyfigures
         IS_DRILL_OPTIONS = lv_is_drill_options
         IT_VRSIO_KEYFIGURES = lv_it_vrsio_keyfigures
         IT_PLOB_VALUES = lv_it_plob_values
    IMPORTING
         ET_TAB = lv_et_tab
         ET_PLOB_VALUES = lv_et_plob_values
         ET_CHAR_TEXT = lv_et_char_text
         ET_PLOBS_IN_VIEW = lv_et_plobs_in_view
         EV_USED_PSTRU = lv_ev_used_pstru
         ET_MESSAGES = lv_et_messages
         ET_TMP_PLOB_REL = lv_et_tmp_plob_rel
    CHANGING
         CT_LINES = lv_ct_lines
         CT_COLS = lv_ct_cols
    EXCEPTIONS
        AREA_INVALID = 1
        INVALID_INTERFACE = 2
        NO_MASTER_DATA = 3
        CUSTOMIZING_ERROR = 4
        INVALID_DATA_STATUS = 5
        LC_CONNECT_FAILED = 6
        LC_COM_ERROR = 7
        LC_ORDERS_ERROR = 8
        NO_AUTHORIZATION = 9
. " /SAPAPO/TS_DM_GET




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

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



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!