SAP /SAPAPO/TS_DM_TRANS_DELETE Function Module for S&DP Read Shipment Quantities









/SAPAPO/TS_DM_TRANS_DELETE is a standard /sapapo/ts dm trans delete 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 Shipment Quantities 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 trans delete FM, simply by entering the name /SAPAPO/TS_DM_TRANS_DELETE 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_TRANS_DELETE 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_TRANS_DELETE'"S&DP Read Shipment Quantities
EXPORTING
IV_PAREAID = "
* IV_INVIS_GROUP_ID = "ID of an Invisibility Group
* IV_TSTFR = "Startzeitpunkt für SNP-Zeitreihen (UTC-Zeitstempel)
* IV_TSTTO = "Endzeitpunkt für SNP-Zeitreihen (UTC-Zeitstempel)
* IT_COLS = "Struktur zur Angabe von Leseoptionen
* IS_WRITE_OPTIONS = "Struktur zur Angabe von Schreibeoptionen
* IV_DELETE_SUBCO = "boolsche Variable (X=true, -=false, space=unknown)
* IV_DEL_FIXED_FLG = "boolsche Variable (X=true, -=false, space=unknown)
* IV_IGNORE_SOURCE_FOR_DELETION = ' ' "Dummy Datenlement für Boolean-Felder
* IV_NETCH = "True: Create planning file entries

IMPORTING
ET_RC = "Tabellentyp zur Rückgabe von liveCache-Returncodes
ET_MESSAGES = "ATP: Tabelle der Struktur BAPIRET2

CHANGING
CT_POCO = "SNP: Umlagerungen zwischen den Lokationen
* CT_SEL_BY_PEG = "Selektion für Umlagerungs- oder Produktionshorizont

EXCEPTIONS
AREA_INVALID = 1 ERROR_SAVING_DATA = 10 INVALID_INTERFACE = 2 CUSTOMIZING_ERROR = 3 LC_CONNECT_FAILED = 4 LC_COM_ERROR = 5 LC_APPL_ERROR = 6 LC_UNKNOWN_ERROR = 7 ORDER_NOT_FOUND = 8 PEGID_PROBLEM = 9
.



IMPORTING Parameters details for /SAPAPO/TS_DM_TRANS_DELETE

IV_PAREAID -

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

IV_INVIS_GROUP_ID - ID of an Invisibility Group

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

IV_TSTFR - Startzeitpunkt für SNP-Zeitreihen (UTC-Zeitstempel)

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

IV_TSTTO - Endzeitpunkt für SNP-Zeitreihen (UTC-Zeitstempel)

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

IT_COLS - Struktur zur Angabe von Leseoptionen

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

IS_WRITE_OPTIONS - Struktur zur Angabe von Schreibeoptionen

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

IV_DELETE_SUBCO - boolsche Variable (X=true, -=false, space=unknown)

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

IV_DEL_FIXED_FLG - boolsche Variable (X=true, -=false, space=unknown)

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

IV_IGNORE_SOURCE_FOR_DELETION - Dummy Datenlement für Boolean-Felder

Data type: /SAPAPO/BOOLEAN
Default: ' '
Optional: Yes
Call by Reference: Yes

IV_NETCH - True: Create planning file entries

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

EXPORTING Parameters details for /SAPAPO/TS_DM_TRANS_DELETE

ET_RC - Tabellentyp zur Rückgabe von liveCache-Returncodes

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

ET_MESSAGES - ATP: Tabelle der Struktur BAPIRET2

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

CHANGING Parameters details for /SAPAPO/TS_DM_TRANS_DELETE

CT_POCO - SNP: Umlagerungen zwischen den Lokationen

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

CT_SEL_BY_PEG - Selektion für Umlagerungs- oder Produktionshorizont

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

EXCEPTIONS details

AREA_INVALID -

Data type:
Optional: No
Call by Reference: Yes

ERROR_SAVING_DATA -

Data type:
Optional: No
Call by Reference: Yes

INVALID_INTERFACE -

Data type:
Optional: No
Call by Reference: Yes

CUSTOMIZING_ERROR -

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_APPL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

LC_UNKNOWN_ERROR -

Data type:
Optional: No
Call by Reference: Yes

ORDER_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

PEGID_PROBLEM -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /SAPAPO/TS_DM_TRANS_DELETE 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_rc  TYPE /SAPAPO/OM_LC_RC_TAB, "   
lv_ct_poco  TYPE /SAPAPO/MSNP_POCO_TAB, "   
lv_iv_pareaid  TYPE /SAPAPO/TS_PAREAID, "   
lv_area_invalid  TYPE /SAPAPO/TS_PAREAID, "   
lv_error_saving_data  TYPE /SAPAPO/TS_PAREAID, "   
lv_iv_invis_group_id  TYPE /SAPAPO/OM_INVIS_GROUP_ID, "   
lv_iv_tstfr  TYPE /SAPAPO/SNPTSTFR, "   
lv_et_messages  TYPE /SAPAPO/TBL_BAPIRET2, "   
lv_ct_sel_by_peg  TYPE /SAPAPO/SNP_SEL_BY_PEG_TAB, "   
lv_invalid_interface  TYPE /SAPAPO/SNP_SEL_BY_PEG_TAB, "   
lv_iv_tstto  TYPE /SAPAPO/SNPTSTTO, "   
lv_customizing_error  TYPE /SAPAPO/SNPTSTTO, "   
lv_it_cols  TYPE /SAPAPO/TS_COLS_EXT_TAB, "   
lv_lc_connect_failed  TYPE /SAPAPO/TS_COLS_EXT_TAB, "   
lv_lc_com_error  TYPE /SAPAPO/TS_COLS_EXT_TAB, "   
lv_is_write_options  TYPE /SAPAPO/TS_WRITE_OPTIONS, "   
lv_lc_appl_error  TYPE /SAPAPO/TS_WRITE_OPTIONS, "   
lv_iv_delete_subco  TYPE /SAPAPO/BOOLEAN, "   
lv_iv_del_fixed_flg  TYPE /SAPAPO/BOOLEAN, "   
lv_lc_unknown_error  TYPE /SAPAPO/BOOLEAN, "   
lv_order_not_found  TYPE /SAPAPO/BOOLEAN, "   
lv_iv_ignore_source_for_deletion  TYPE /SAPAPO/BOOLEAN, "   ' '
lv_iv_netch  TYPE /SAPAPO/BOOLEAN, "   
lv_pegid_problem  TYPE /SAPAPO/BOOLEAN. "   

  CALL FUNCTION '/SAPAPO/TS_DM_TRANS_DELETE'  "S&DP Read Shipment Quantities
    EXPORTING
         IV_PAREAID = lv_iv_pareaid
         IV_INVIS_GROUP_ID = lv_iv_invis_group_id
         IV_TSTFR = lv_iv_tstfr
         IV_TSTTO = lv_iv_tstto
         IT_COLS = lv_it_cols
         IS_WRITE_OPTIONS = lv_is_write_options
         IV_DELETE_SUBCO = lv_iv_delete_subco
         IV_DEL_FIXED_FLG = lv_iv_del_fixed_flg
         IV_IGNORE_SOURCE_FOR_DELETION = lv_iv_ignore_source_for_deletion
         IV_NETCH = lv_iv_netch
    IMPORTING
         ET_RC = lv_et_rc
         ET_MESSAGES = lv_et_messages
    CHANGING
         CT_POCO = lv_ct_poco
         CT_SEL_BY_PEG = lv_ct_sel_by_peg
    EXCEPTIONS
        AREA_INVALID = 1
        ERROR_SAVING_DATA = 10
        INVALID_INTERFACE = 2
        CUSTOMIZING_ERROR = 3
        LC_CONNECT_FAILED = 4
        LC_COM_ERROR = 5
        LC_APPL_ERROR = 6
        LC_UNKNOWN_ERROR = 7
        ORDER_NOT_FOUND = 8
        PEGID_PROBLEM = 9
. " /SAPAPO/TS_DM_TRANS_DELETE




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

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_ignore_source_for_deletion) = ' '.
 
 
 


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!