SAP TPM_TRAC_QUEUE_SELECT Function Module for Read Resubmission
TPM_TRAC_QUEUE_SELECT is a standard tpm trac queue select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Resubmission 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 trac queue select FM, simply by entering the name TPM_TRAC_QUEUE_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: TPM_TRAC_QUEUE
Program Name: SAPLTPM_TRAC_QUEUE
Main Program: SAPLTPM_TRAC_QUEUE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TPM_TRAC_QUEUE_SELECT 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_TRAC_QUEUE_SELECT'"Read Resubmission.
EXPORTING
IM_FLG_SEC = "
IM_RNG_SECURITY_ID_P = "Range Security ID
IM_RNG_POSITION_ACCOUNT = "Range for Futures Account
IM_RNG_DEAL_NUMBER = "Range Transaction Number
IM_FLG_POS = "
IM_FLG_DEA = "
IM_RNG_COMPANY_CODE = "Range Table for Company Code
IM_RNG_PRODUCT_TYPE = "Product Types
IM_RNG_PORTFOLIO = "Range for Portfolios
IM_RNG_SECURITY_ID = "Range Security ID
IM_RNG_SECURITY_ACCOUNT = "Range for Securities Accounts
IM_RNG_ACCOUNT_GROUP = "Range Accounting Group
IMPORTING
EX_TAB_QUEUE = "Resubmission
IMPORTING Parameters details for TPM_TRAC_QUEUE_SELECT
IM_FLG_SEC -
Data type: COptional: No
Call by Reference: Yes
IM_RNG_SECURITY_ID_P - Range Security ID
Data type: TRGR_SECURITY_IDOptional: No
Call by Reference: Yes
IM_RNG_POSITION_ACCOUNT - Range for Futures Account
Data type: TRGR_POSITION_ACCOUNTOptional: No
Call by Reference: Yes
IM_RNG_DEAL_NUMBER - Range Transaction Number
Data type: TRGR_DEAL_NUMBEROptional: No
Call by Reference: Yes
IM_FLG_POS -
Data type: COptional: No
Call by Reference: Yes
IM_FLG_DEA -
Data type: COptional: No
Call by Reference: Yes
IM_RNG_COMPANY_CODE - Range Table for Company Code
Data type: TRGR_COMPANY_CODEOptional: No
Call by Reference: Yes
IM_RNG_PRODUCT_TYPE - Product Types
Data type: TRGR_PRODUCT_TYPEOptional: No
Call by Reference: Yes
IM_RNG_PORTFOLIO - Range for Portfolios
Data type: TRGR_PORTFOLIOOptional: No
Call by Reference: Yes
IM_RNG_SECURITY_ID - Range Security ID
Data type: TRGR_SECURITY_IDOptional: No
Call by Reference: Yes
IM_RNG_SECURITY_ACCOUNT - Range for Securities Accounts
Data type: TRGR_SECURITY_ACCOUNTOptional: No
Call by Reference: Yes
IM_RNG_ACCOUNT_GROUP - Range Accounting Group
Data type: TRGR_ACCOUNT_GROUPOptional: No
Call by Reference: Yes
EXPORTING Parameters details for TPM_TRAC_QUEUE_SELECT
EX_TAB_QUEUE - Resubmission
Data type: TRACY_QUEUEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for TPM_TRAC_QUEUE_SELECT 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_im_flg_sec | TYPE C, " | |||
| lv_ex_tab_queue | TYPE TRACY_QUEUE, " | |||
| lv_im_rng_security_id_p | TYPE TRGR_SECURITY_ID, " | |||
| lv_im_rng_position_account | TYPE TRGR_POSITION_ACCOUNT, " | |||
| lv_im_rng_deal_number | TYPE TRGR_DEAL_NUMBER, " | |||
| lv_im_flg_pos | TYPE C, " | |||
| lv_im_flg_dea | TYPE C, " | |||
| lv_im_rng_company_code | TYPE TRGR_COMPANY_CODE, " | |||
| lv_im_rng_product_type | TYPE TRGR_PRODUCT_TYPE, " | |||
| lv_im_rng_portfolio | TYPE TRGR_PORTFOLIO, " | |||
| lv_im_rng_security_id | TYPE TRGR_SECURITY_ID, " | |||
| lv_im_rng_security_account | TYPE TRGR_SECURITY_ACCOUNT, " | |||
| lv_im_rng_account_group | TYPE TRGR_ACCOUNT_GROUP. " |
|   CALL FUNCTION 'TPM_TRAC_QUEUE_SELECT' "Read Resubmission |
| EXPORTING | ||
| IM_FLG_SEC | = lv_im_flg_sec | |
| IM_RNG_SECURITY_ID_P | = lv_im_rng_security_id_p | |
| IM_RNG_POSITION_ACCOUNT | = lv_im_rng_position_account | |
| IM_RNG_DEAL_NUMBER | = lv_im_rng_deal_number | |
| IM_FLG_POS | = lv_im_flg_pos | |
| IM_FLG_DEA | = lv_im_flg_dea | |
| IM_RNG_COMPANY_CODE | = lv_im_rng_company_code | |
| IM_RNG_PRODUCT_TYPE | = lv_im_rng_product_type | |
| IM_RNG_PORTFOLIO | = lv_im_rng_portfolio | |
| IM_RNG_SECURITY_ID | = lv_im_rng_security_id | |
| IM_RNG_SECURITY_ACCOUNT | = lv_im_rng_security_account | |
| IM_RNG_ACCOUNT_GROUP | = lv_im_rng_account_group | |
| IMPORTING | ||
| EX_TAB_QUEUE | = lv_ex_tab_queue | |
| . " TPM_TRAC_QUEUE_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM TPM_TRAC_QUEUE_SELECT
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