SAP /SAPAPO/TS_DM_SIMSESSION_OPEN Function Module for Create a New Transactional Simulation
/SAPAPO/TS_DM_SIMSESSION_OPEN is a standard /sapapo/ts dm simsession open SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create a New Transactional Simulation 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 simsession open FM, simply by entering the name /SAPAPO/TS_DM_SIMSESSION_OPEN 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_SIMSESSION_OPEN 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_SIMSESSION_OPEN'"Create a New Transactional Simulation.
EXPORTING
IV_PAREAID = "GUID zur Identifizierung eines S&D Planungsbereichs
IV_VRSIOID = "Allgemeine Parameter für FBs aus /SAPAPO/OM
* IV_BATCH = "Batchverarbeitung, Programm läuft im Hintergrund
* IV_ORDERS = "Dummy Datenlement für Boolean-Felder
* IV_TIMESERIES = "Dummy Datenlement für Boolean-Felder
CHANGING
* CT_RC = "Table Type for Returning liveCache Return Codes
EXCEPTIONS
LC_CONNECT_FAILED = 1 LC_COM_ERROR = 2 LC_APPL_ERROR = 3 MULTI_TASIM_REGISTRATION = 4 CUSTOMIZING_ERROR = 5
IMPORTING Parameters details for /SAPAPO/TS_DM_SIMSESSION_OPEN
IV_PAREAID - GUID zur Identifizierung eines S&D Planungsbereichs
Data type: /SAPAPO/TS_PAREAIDOptional: No
Call by Reference: Yes
IV_VRSIOID - Allgemeine Parameter für FBs aus /SAPAPO/OM
Data type: /SAPAPO/VRSIOIDOptional: No
Call by Reference: Yes
IV_BATCH - Batchverarbeitung, Programm läuft im Hintergrund
Data type: SYBATCHOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ORDERS - Dummy Datenlement für Boolean-Felder
Data type: /SAPAPO/BOOLEANOptional: Yes
Call by Reference: Yes
IV_TIMESERIES - Dummy Datenlement für Boolean-Felder
Data type: /SAPAPO/BOOLEANOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for /SAPAPO/TS_DM_SIMSESSION_OPEN
CT_RC - Table Type for Returning liveCache Return Codes
Data type: /SAPAPO/OM_LC_RC_TABOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
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
MULTI_TASIM_REGISTRATION -
Data type:Optional: No
Call by Reference: Yes
CUSTOMIZING_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/TS_DM_SIMSESSION_OPEN 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_ct_rc | TYPE /SAPAPO/OM_LC_RC_TAB, " | |||
| lv_iv_pareaid | TYPE /SAPAPO/TS_PAREAID, " | |||
| lv_lc_connect_failed | TYPE /SAPAPO/TS_PAREAID, " | |||
| lv_iv_vrsioid | TYPE /SAPAPO/VRSIOID, " | |||
| lv_lc_com_error | TYPE /SAPAPO/VRSIOID, " | |||
| lv_iv_batch | TYPE SYBATCH, " | |||
| lv_lc_appl_error | TYPE SYBATCH, " | |||
| lv_iv_orders | TYPE /SAPAPO/BOOLEAN, " | |||
| lv_multi_tasim_registration | TYPE /SAPAPO/BOOLEAN, " | |||
| lv_iv_timeseries | TYPE /SAPAPO/BOOLEAN, " | |||
| lv_customizing_error | TYPE /SAPAPO/BOOLEAN. " |
|   CALL FUNCTION '/SAPAPO/TS_DM_SIMSESSION_OPEN' "Create a New Transactional Simulation |
| EXPORTING | ||
| IV_PAREAID | = lv_iv_pareaid | |
| IV_VRSIOID | = lv_iv_vrsioid | |
| IV_BATCH | = lv_iv_batch | |
| IV_ORDERS | = lv_iv_orders | |
| IV_TIMESERIES | = lv_iv_timeseries | |
| CHANGING | ||
| CT_RC | = lv_ct_rc | |
| EXCEPTIONS | ||
| LC_CONNECT_FAILED = 1 | ||
| LC_COM_ERROR = 2 | ||
| LC_APPL_ERROR = 3 | ||
| MULTI_TASIM_REGISTRATION = 4 | ||
| CUSTOMIZING_ERROR = 5 | ||
| . " /SAPAPO/TS_DM_SIMSESSION_OPEN | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/TS_DM_SIMSESSION_OPEN
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