SAP TPM_TRDT_DATA_CREATE_FLOWS Function Module for Legacy Data Transfer: Generate Flows
TPM_TRDT_DATA_CREATE_FLOWS is a standard tpm trdt data create flows SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Legacy Data Transfer: Generate Flows 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 tpm trdt data create flows FM, simply by entering the name TPM_TRDT_DATA_CREATE_FLOWS into the relevant SAP transaction such as SE37 or SE38.
Function Group: TPM_TRDT_APPL
Program Name: SAPLTPM_TRDT_APPL
Main Program: SAPLTPM_TRDT_APPL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TPM_TRDT_DATA_CREATE_FLOWS 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 'TPM_TRDT_DATA_CREATE_FLOWS'"Legacy Data Transfer: Generate Flows.
EXPORTING
IM_STR_DATA = "Legacy Data Transfer Data
* IM_FLG_SUBPOS = ' ' "Yes / No
* IM_FLG_DESIGNATE = ' ' "Yes / No
* IM_FLG_FREESTANDING = ' ' "Yes / No
* IM_COUNTER = 0 "Number of a Distributor Flow
IMPORTING
EX_TAB_TRD_FLOW = "Treasury: Table of Distributor Flows
EX_TAB_TRD_FLOW_RESET = "Treasury: Table of Distributor Flows
EX_TAB_FLOW = "Legacy Data Transfer: Generate Flows
EX_TAB_FLOW_RESET = "Legacy Data Transfer: Generate Flows
EXCEPTIONS
FAILED = 1
IMPORTING Parameters details for TPM_TRDT_DATA_CREATE_FLOWS
IM_STR_DATA - Legacy Data Transfer Data
Data type: TRDTS_DATAOptional: No
Call by Reference: Yes
IM_FLG_SUBPOS - Yes / No
Data type: TPM_BOOLDefault: SPACE
Optional: Yes
Call by Reference: Yes
IM_FLG_DESIGNATE - Yes / No
Data type: TPM_BOOLDefault: SPACE
Optional: Yes
Call by Reference: Yes
IM_FLG_FREESTANDING - Yes / No
Data type: TPM_BOOLDefault: SPACE
Optional: Yes
Call by Reference: Yes
IM_COUNTER - Number of a Distributor Flow
Data type: TPM_TRDFLOWNROptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for TPM_TRDT_DATA_CREATE_FLOWS
EX_TAB_TRD_FLOW - Treasury: Table of Distributor Flows
Data type: TRDY_FLOW_KEYOptional: No
Call by Reference: Yes
EX_TAB_TRD_FLOW_RESET - Treasury: Table of Distributor Flows
Data type: TRDY_FLOW_KEYOptional: No
Call by Reference: Yes
EX_TAB_FLOW - Legacy Data Transfer: Generate Flows
Data type: TRDTY_FLOWOptional: No
Call by Reference: Yes
EX_TAB_FLOW_RESET - Legacy Data Transfer: Generate Flows
Data type: TRDTY_FLOWOptional: No
Call by Reference: Yes
EXCEPTIONS details
FAILED - failed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TPM_TRDT_DATA_CREATE_FLOWS 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_failed | TYPE STRING, " | |||
| lv_im_str_data | TYPE TRDTS_DATA, " | |||
| lv_ex_tab_trd_flow | TYPE TRDY_FLOW_KEY, " | |||
| lv_im_flg_subpos | TYPE TPM_BOOL, " SPACE | |||
| lv_ex_tab_trd_flow_reset | TYPE TRDY_FLOW_KEY, " | |||
| lv_ex_tab_flow | TYPE TRDTY_FLOW, " | |||
| lv_im_flg_designate | TYPE TPM_BOOL, " SPACE | |||
| lv_ex_tab_flow_reset | TYPE TRDTY_FLOW, " | |||
| lv_im_flg_freestanding | TYPE TPM_BOOL, " SPACE | |||
| lv_im_counter | TYPE TPM_TRDFLOWNR. " 0 |
|   CALL FUNCTION 'TPM_TRDT_DATA_CREATE_FLOWS' "Legacy Data Transfer: Generate Flows |
| EXPORTING | ||
| IM_STR_DATA | = lv_im_str_data | |
| IM_FLG_SUBPOS | = lv_im_flg_subpos | |
| IM_FLG_DESIGNATE | = lv_im_flg_designate | |
| IM_FLG_FREESTANDING | = lv_im_flg_freestanding | |
| IM_COUNTER | = lv_im_counter | |
| IMPORTING | ||
| EX_TAB_TRD_FLOW | = lv_ex_tab_trd_flow | |
| EX_TAB_TRD_FLOW_RESET | = lv_ex_tab_trd_flow_reset | |
| EX_TAB_FLOW | = lv_ex_tab_flow | |
| EX_TAB_FLOW_RESET | = lv_ex_tab_flow_reset | |
| EXCEPTIONS | ||
| FAILED = 1 | ||
| . " TPM_TRDT_DATA_CREATE_FLOWS | ||
ABAP code using 7.40 inline data declarations to call FM TPM_TRDT_DATA_CREATE_FLOWS
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_im_flg_subpos) | = ' '. | |||
| DATA(ld_im_flg_designate) | = ' '. | |||
| DATA(ld_im_flg_freestanding) | = ' '. | |||
Search for further information about these or an SAP related objects