SAP TPM_TRAC_PJ_SELECT Function Module for Select Posting Journal Data
TPM_TRAC_PJ_SELECT is a standard tpm trac pj 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 Select Posting Journal Data 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 pj select FM, simply by entering the name TPM_TRAC_PJ_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: TPM_TRAC_PJ
Program Name: SAPLTPM_TRAC_PJ
Main Program: SAPLTPM_TRAC_PJ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TPM_TRAC_PJ_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_PJ_SELECT'"Select Posting Journal Data.
EXPORTING
IM_DIFF_RANGES = "Ranges: Differentiation Values for DB Selection
IM_DIFF_EXCLUDES = "Exclude Structure for Data Selection by Product Group
IM_USER_DATA = "Accounting Items
IM_POSTING_DATA_CFM = "Ranges for Posting Data CFM
IM_POSTING_DATA_FI = "Ranges for Posting Data FI
* IM_INCLUDE_POSTED = 'X' "
* IM_INCLUDE_REVERSED = "Character Field of Length 1
* IM_POS_ATTRIB_SEL = "position attributes handler
IMPORTING
EX_TAB_ACCITEMS = "Table Type Accounting Items View
IMPORTING Parameters details for TPM_TRAC_PJ_SELECT
IM_DIFF_RANGES - Ranges: Differentiation Values for DB Selection
Data type: TRACS_SEL_DIFF_VALUESOptional: No
Call by Reference: No ( called with pass by value option)
IM_DIFF_EXCLUDES - Exclude Structure for Data Selection by Product Group
Data type: TRACS_DIFF_EXCLUDESOptional: No
Call by Reference: No ( called with pass by value option)
IM_USER_DATA - Accounting Items
Data type: TRACS_SEL_USER_DATAOptional: No
Call by Reference: No ( called with pass by value option)
IM_POSTING_DATA_CFM - Ranges for Posting Data CFM
Data type: TRACS_SEL_POSTING_DATA_CFMOptional: No
Call by Reference: No ( called with pass by value option)
IM_POSTING_DATA_FI - Ranges for Posting Data FI
Data type: TRACS_SEL_POSTING_DATA_FIOptional: No
Call by Reference: No ( called with pass by value option)
IM_INCLUDE_POSTED -
Data type: CHAR01Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_INCLUDE_REVERSED - Character Field of Length 1
Data type: CHAR01Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_POS_ATTRIB_SEL - position attributes handler
Data type: CL_POSITION_ATTRIBUTES_TRLOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for TPM_TRAC_PJ_SELECT
EX_TAB_ACCITEMS - Table Type Accounting Items View
Data type: TRACYV_ACCITEMOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for TPM_TRAC_PJ_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_diff_ranges | TYPE TRACS_SEL_DIFF_VALUES, " | |||
| lv_ex_tab_accitems | TYPE TRACYV_ACCITEM, " | |||
| lv_im_diff_excludes | TYPE TRACS_DIFF_EXCLUDES, " | |||
| lv_im_user_data | TYPE TRACS_SEL_USER_DATA, " | |||
| lv_im_posting_data_cfm | TYPE TRACS_SEL_POSTING_DATA_CFM, " | |||
| lv_im_posting_data_fi | TYPE TRACS_SEL_POSTING_DATA_FI, " | |||
| lv_im_include_posted | TYPE CHAR01, " 'X' | |||
| lv_im_include_reversed | TYPE CHAR01, " | |||
| lv_im_pos_attrib_sel | TYPE CL_POSITION_ATTRIBUTES_TRL. " |
|   CALL FUNCTION 'TPM_TRAC_PJ_SELECT' "Select Posting Journal Data |
| EXPORTING | ||
| IM_DIFF_RANGES | = lv_im_diff_ranges | |
| IM_DIFF_EXCLUDES | = lv_im_diff_excludes | |
| IM_USER_DATA | = lv_im_user_data | |
| IM_POSTING_DATA_CFM | = lv_im_posting_data_cfm | |
| IM_POSTING_DATA_FI | = lv_im_posting_data_fi | |
| IM_INCLUDE_POSTED | = lv_im_include_posted | |
| IM_INCLUDE_REVERSED | = lv_im_include_reversed | |
| IM_POS_ATTRIB_SEL | = lv_im_pos_attrib_sel | |
| IMPORTING | ||
| EX_TAB_ACCITEMS | = lv_ex_tab_accitems | |
| . " TPM_TRAC_PJ_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM TPM_TRAC_PJ_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.| DATA(ld_im_include_posted) | = 'X'. | |||
Search for further information about these or an SAP related objects