SAP TPM_TRE_POOL_GET_DATA Function Module for Return Data for an Endowment Pool
TPM_TRE_POOL_GET_DATA is a standard tpm tre pool get data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Return Data for an Endowment Pool 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 tre pool get data FM, simply by entering the name TPM_TRE_POOL_GET_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: TPM_TRE_SEC_POOL
Program Name: SAPLTPM_TRE_SEC_POOL
Main Program: SAPLTPM_TRE_SEC_POOL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TPM_TRE_POOL_GET_DATA 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_TRE_POOL_GET_DATA'"Return Data for an Endowment Pool.
EXPORTING
IM_COMPANY_CODE = "Company Code
* IM_POOL_ID = "Endowment Pool ID Number
* IM_POOL_FUND = "Fund
* IM_POOL_GRANT_NBR = "Grant
IMPORTING
EX_FUND = "Fund
EX_GRANT_NBR = "Grant
EX_SEC_ACC_ISSUE = "Liability Securities Account
EX_PARTNER_ISSUE = "Business Partner for Endowment Pool
EX_DECIMALS = "Number of Decimals for Number of Units
EX_POOL_TEXT = "Endowment Pool Description
EX_COMVALCL_ISSUE = "Allgemeine Bewertungsklasse für Poolgeschäft
EX_FLG_POOL_ISSUE = "Create Issue Transactions for Endowment Pool
EXCEPTIONS
WRONG_INPUT = 1 NOT_FOUND = 2
IMPORTING Parameters details for TPM_TRE_POOL_GET_DATA
IM_COMPANY_CODE - Company Code
Data type: BUKRSOptional: No
Call by Reference: Yes
IM_POOL_ID - Endowment Pool ID Number
Data type: TPM_POOL_IDOptional: Yes
Call by Reference: Yes
IM_POOL_FUND - Fund
Data type: FM_FUNDOptional: Yes
Call by Reference: Yes
IM_POOL_GRANT_NBR - Grant
Data type: GM_GRANT_NBROptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for TPM_TRE_POOL_GET_DATA
EX_FUND - Fund
Data type: FM_FUNDOptional: No
Call by Reference: Yes
EX_GRANT_NBR - Grant
Data type: GM_GRANT_NBROptional: No
Call by Reference: Yes
EX_SEC_ACC_ISSUE - Liability Securities Account
Data type: TPM_SEC_ACC_PASSIVEOptional: No
Call by Reference: Yes
EX_PARTNER_ISSUE - Business Partner for Endowment Pool
Data type: TPM_POOL_PARTNEROptional: No
Call by Reference: Yes
EX_DECIMALS - Number of Decimals for Number of Units
Data type: TPM_DECIMALSOptional: No
Call by Reference: Yes
EX_POOL_TEXT - Endowment Pool Description
Data type: TPM_POOL_TEXTOptional: No
Call by Reference: Yes
EX_COMVALCL_ISSUE - Allgemeine Bewertungsklasse für Poolgeschäft
Data type: TPM_COM_VAL_CLASSOptional: No
Call by Reference: Yes
EX_FLG_POOL_ISSUE - Create Issue Transactions for Endowment Pool
Data type: TPM_FLG_POOL_ISSUEOptional: No
Call by Reference: Yes
EXCEPTIONS details
WRONG_INPUT - Insufficient Input Parameters
Data type:Optional: No
Call by Reference: Yes
NOT_FOUND - Pool nicht definiert
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for TPM_TRE_POOL_GET_DATA 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_ex_fund | TYPE FM_FUND, " | |||
| lv_wrong_input | TYPE FM_FUND, " | |||
| lv_im_company_code | TYPE BUKRS, " | |||
| lv_not_found | TYPE BUKRS, " | |||
| lv_im_pool_id | TYPE TPM_POOL_ID, " | |||
| lv_ex_grant_nbr | TYPE GM_GRANT_NBR, " | |||
| lv_im_pool_fund | TYPE FM_FUND, " | |||
| lv_ex_sec_acc_issue | TYPE TPM_SEC_ACC_PASSIVE, " | |||
| lv_ex_partner_issue | TYPE TPM_POOL_PARTNER, " | |||
| lv_im_pool_grant_nbr | TYPE GM_GRANT_NBR, " | |||
| lv_ex_decimals | TYPE TPM_DECIMALS, " | |||
| lv_ex_pool_text | TYPE TPM_POOL_TEXT, " | |||
| lv_ex_comvalcl_issue | TYPE TPM_COM_VAL_CLASS, " | |||
| lv_ex_flg_pool_issue | TYPE TPM_FLG_POOL_ISSUE. " |
|   CALL FUNCTION 'TPM_TRE_POOL_GET_DATA' "Return Data for an Endowment Pool |
| EXPORTING | ||
| IM_COMPANY_CODE | = lv_im_company_code | |
| IM_POOL_ID | = lv_im_pool_id | |
| IM_POOL_FUND | = lv_im_pool_fund | |
| IM_POOL_GRANT_NBR | = lv_im_pool_grant_nbr | |
| IMPORTING | ||
| EX_FUND | = lv_ex_fund | |
| EX_GRANT_NBR | = lv_ex_grant_nbr | |
| EX_SEC_ACC_ISSUE | = lv_ex_sec_acc_issue | |
| EX_PARTNER_ISSUE | = lv_ex_partner_issue | |
| EX_DECIMALS | = lv_ex_decimals | |
| EX_POOL_TEXT | = lv_ex_pool_text | |
| EX_COMVALCL_ISSUE | = lv_ex_comvalcl_issue | |
| EX_FLG_POOL_ISSUE | = lv_ex_flg_pool_issue | |
| EXCEPTIONS | ||
| WRONG_INPUT = 1 | ||
| NOT_FOUND = 2 | ||
| . " TPM_TRE_POOL_GET_DATA | ||
ABAP code using 7.40 inline data declarations to call FM TPM_TRE_POOL_GET_DATA
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