SAP TPM_AD_SELECT_TRL_POSITIONS Function Module for Determine TRL Positions









TPM_AD_SELECT_TRL_POSITIONS is a standard tpm ad select trl positions SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine TRL Positions 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 ad select trl positions FM, simply by entering the name TPM_AD_SELECT_TRL_POSITIONS into the relevant SAP transaction such as SE37 or SE38.

Function Group: TPM_TRLI_AD
Program Name: SAPLTPM_TRLI_AD
Main Program: SAPLTPM_TRLI_AD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TPM_AD_SELECT_TRL_POSITIONS 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_AD_SELECT_TRL_POSITIONS'"Determine TRL Positions
EXPORTING
* IM_FLG_SECURITIES = "Kennzeichen Wertpapiere
* IM_RNG_GRANT_NBR = "Range Table for Grant
* IM_RNGSECURITYIDS = "Wertpapier-Kennummern
* IM_RNGSECURITYACCOUNTS = "Wertpapier-Depots
* IM_RNGACCOUNTGROUPS = "Depot-Grupppen
* IM_RNGPORTFOLIOS = "Portfolios
* IM_RNGTRADERS = "Traders
* IM_RNGLOANCONTRACTS = "Loan Contracts
* IM_RNGSECURITYPIDS = "Derivate-Kennummern
* IM_RNGPOSITIONACCOUNTS = "Positionskonten
* IM_TAB_BUKRS_DEALNUMBER = "Table Type for Transaction Key Structure
* IM_FLG_LOANS = "Kennzeichen Darlehen
* IM_RNG_PRODUCT_CATS = "Range Table for Product Categories
* IM_RNG_POSITION_CURR = "Position Currency
* IM_RNG_ACCOUNT_REF = "Range Account Assignment Reference
* IM_RNG_CHANGENAME = "Range Table: Last Changed By
* IM_RNG_CHANGEDATE = "Range Table: Changed On
* IM_RNG_TRANSACTION_CURR = "Range Table: Transaction Currency
* IM_RNG_EXT_REF = "Range Table: External Reference
IM_KEY_DATE = "Accrual/Deferral Key Date
* IM_FLG_OPTION_FUTURE = "Kennzeichen Börsengehandelte Derivate
* IM_FLG_DEALS = "Kennzeichen Geld-, Devisen-, Derivat-Geschäft
* IM_RNGCOMPANYCODES = "Company Codes
* IM_RNGVALAREAS = "Valuation Areas
* IM_RNGPRODUCTTYPES = "Product Types
* IM_RNGVALCLASSES = "Valuation Classes
* IM_RNG_FUND = "Range Table for Fund

IMPORTING
EX_TAB_POSITION_GUID = "GUID Tabelle für TRL Positionen
EX_TAB_DIF_POS_IDENT = "
.



IMPORTING Parameters details for TPM_AD_SELECT_TRL_POSITIONS

IM_FLG_SECURITIES - Kennzeichen Wertpapiere

Data type: FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_RNG_GRANT_NBR - Range Table for Grant

Data type: TRGR_GRANT_NBR
Optional: Yes
Call by Reference: Yes

IM_RNGSECURITYIDS - Wertpapier-Kennummern

Data type: TRGR_SECURITY_ID
Optional: Yes
Call by Reference: Yes

IM_RNGSECURITYACCOUNTS - Wertpapier-Depots

Data type: TRGR_SECURITY_ACCOUNT
Optional: Yes
Call by Reference: Yes

IM_RNGACCOUNTGROUPS - Depot-Grupppen

Data type: TRGR_ACCOUNT_GROUP
Optional: Yes
Call by Reference: Yes

IM_RNGPORTFOLIOS - Portfolios

Data type: TRGR_PORTFOLIO
Optional: Yes
Call by Reference: Yes

IM_RNGTRADERS - Traders

Data type: TRGR_TRADER
Optional: Yes
Call by Reference: Yes

IM_RNGLOANCONTRACTS - Loan Contracts

Data type: TRGR_LOANS_CONTRACT
Optional: Yes
Call by Reference: Yes

IM_RNGSECURITYPIDS - Derivate-Kennummern

Data type: TRGR_SECURITY_ID
Optional: Yes
Call by Reference: Yes

IM_RNGPOSITIONACCOUNTS - Positionskonten

Data type: TRGR_POSITION_ACCOUNT
Optional: Yes
Call by Reference: Yes

IM_TAB_BUKRS_DEALNUMBER - Table Type for Transaction Key Structure

Data type: TRGY_BUKRS_DEALNUMBER
Optional: Yes
Call by Reference: Yes

IM_FLG_LOANS - Kennzeichen Darlehen

Data type: FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_RNG_PRODUCT_CATS - Range Table for Product Categories

Data type: TRGR_PRODUCT_CATEGORY
Optional: Yes
Call by Reference: Yes

IM_RNG_POSITION_CURR - Position Currency

Data type: TRLR_POSITION_CURR
Optional: Yes
Call by Reference: Yes

IM_RNG_ACCOUNT_REF - Range Account Assignment Reference

Data type: TRGR_AA_REF
Optional: Yes
Call by Reference: Yes

IM_RNG_CHANGENAME - Range Table: Last Changed By

Data type: TRGR_CHANGE_NAME
Optional: Yes
Call by Reference: Yes

IM_RNG_CHANGEDATE - Range Table: Changed On

Data type: TRGR_CHANGE_DATE
Optional: Yes
Call by Reference: Yes

IM_RNG_TRANSACTION_CURR - Range Table: Transaction Currency

Data type: TRGR_TRANSACTION_CURR
Optional: Yes
Call by Reference: Yes

IM_RNG_EXT_REF - Range Table: External Reference

Data type: TRGR_EXT_REF
Optional: Yes
Call by Reference: Yes

IM_KEY_DATE - Accrual/Deferral Key Date

Data type: TPM_AD_KEYDATE
Optional: No
Call by Reference: Yes

IM_FLG_OPTION_FUTURE - Kennzeichen Börsengehandelte Derivate

Data type: FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_FLG_DEALS - Kennzeichen Geld-, Devisen-, Derivat-Geschäft

Data type: FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_RNGCOMPANYCODES - Company Codes

Data type: TRGR_COMPANY_CODE
Optional: Yes
Call by Reference: Yes

IM_RNGVALAREAS - Valuation Areas

Data type: TRGR_VALUATION_AREA
Optional: Yes
Call by Reference: Yes

IM_RNGPRODUCTTYPES - Product Types

Data type: TRGR_PRODUCT_TYPE
Optional: Yes
Call by Reference: Yes

IM_RNGVALCLASSES - Valuation Classes

Data type: TRGR_VALUATION_CLASS
Optional: Yes
Call by Reference: Yes

IM_RNG_FUND - Range Table for Fund

Data type: TRGR_FUND
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for TPM_AD_SELECT_TRL_POSITIONS

EX_TAB_POSITION_GUID - GUID Tabelle für TRL Positionen

Data type: TRLY_GUID
Optional: No
Call by Reference: No ( called with pass by value option)

EX_TAB_DIF_POS_IDENT -

Data type: DIFY_POS_IDENT_STANDARD
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TPM_AD_SELECT_TRL_POSITIONS 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_securities  TYPE FLAG, "   
lv_ex_tab_position_guid  TYPE TRLY_GUID, "   
lv_im_rng_grant_nbr  TYPE TRGR_GRANT_NBR, "   
lv_im_rngsecurityids  TYPE TRGR_SECURITY_ID, "   
lv_im_rngsecurityaccounts  TYPE TRGR_SECURITY_ACCOUNT, "   
lv_im_rngaccountgroups  TYPE TRGR_ACCOUNT_GROUP, "   
lv_im_rngportfolios  TYPE TRGR_PORTFOLIO, "   
lv_im_rngtraders  TYPE TRGR_TRADER, "   
lv_im_rngloancontracts  TYPE TRGR_LOANS_CONTRACT, "   
lv_im_rngsecuritypids  TYPE TRGR_SECURITY_ID, "   
lv_im_rngpositionaccounts  TYPE TRGR_POSITION_ACCOUNT, "   
lv_im_tab_bukrs_dealnumber  TYPE TRGY_BUKRS_DEALNUMBER, "   
lv_im_flg_loans  TYPE FLAG, "   
lv_ex_tab_dif_pos_ident  TYPE DIFY_POS_IDENT_STANDARD, "   
lv_im_rng_product_cats  TYPE TRGR_PRODUCT_CATEGORY, "   
lv_im_rng_position_curr  TYPE TRLR_POSITION_CURR, "   
lv_im_rng_account_ref  TYPE TRGR_AA_REF, "   
lv_im_rng_changename  TYPE TRGR_CHANGE_NAME, "   
lv_im_rng_changedate  TYPE TRGR_CHANGE_DATE, "   
lv_im_rng_transaction_curr  TYPE TRGR_TRANSACTION_CURR, "   
lv_im_rng_ext_ref  TYPE TRGR_EXT_REF, "   
lv_im_key_date  TYPE TPM_AD_KEYDATE, "   
lv_im_flg_option_future  TYPE FLAG, "   
lv_im_flg_deals  TYPE FLAG, "   
lv_im_rngcompanycodes  TYPE TRGR_COMPANY_CODE, "   
lv_im_rngvalareas  TYPE TRGR_VALUATION_AREA, "   
lv_im_rngproducttypes  TYPE TRGR_PRODUCT_TYPE, "   
lv_im_rngvalclasses  TYPE TRGR_VALUATION_CLASS, "   
lv_im_rng_fund  TYPE TRGR_FUND. "   

  CALL FUNCTION 'TPM_AD_SELECT_TRL_POSITIONS'  "Determine TRL Positions
    EXPORTING
         IM_FLG_SECURITIES = lv_im_flg_securities
         IM_RNG_GRANT_NBR = lv_im_rng_grant_nbr
         IM_RNGSECURITYIDS = lv_im_rngsecurityids
         IM_RNGSECURITYACCOUNTS = lv_im_rngsecurityaccounts
         IM_RNGACCOUNTGROUPS = lv_im_rngaccountgroups
         IM_RNGPORTFOLIOS = lv_im_rngportfolios
         IM_RNGTRADERS = lv_im_rngtraders
         IM_RNGLOANCONTRACTS = lv_im_rngloancontracts
         IM_RNGSECURITYPIDS = lv_im_rngsecuritypids
         IM_RNGPOSITIONACCOUNTS = lv_im_rngpositionaccounts
         IM_TAB_BUKRS_DEALNUMBER = lv_im_tab_bukrs_dealnumber
         IM_FLG_LOANS = lv_im_flg_loans
         IM_RNG_PRODUCT_CATS = lv_im_rng_product_cats
         IM_RNG_POSITION_CURR = lv_im_rng_position_curr
         IM_RNG_ACCOUNT_REF = lv_im_rng_account_ref
         IM_RNG_CHANGENAME = lv_im_rng_changename
         IM_RNG_CHANGEDATE = lv_im_rng_changedate
         IM_RNG_TRANSACTION_CURR = lv_im_rng_transaction_curr
         IM_RNG_EXT_REF = lv_im_rng_ext_ref
         IM_KEY_DATE = lv_im_key_date
         IM_FLG_OPTION_FUTURE = lv_im_flg_option_future
         IM_FLG_DEALS = lv_im_flg_deals
         IM_RNGCOMPANYCODES = lv_im_rngcompanycodes
         IM_RNGVALAREAS = lv_im_rngvalareas
         IM_RNGPRODUCTTYPES = lv_im_rngproducttypes
         IM_RNGVALCLASSES = lv_im_rngvalclasses
         IM_RNG_FUND = lv_im_rng_fund
    IMPORTING
         EX_TAB_POSITION_GUID = lv_ex_tab_position_guid
         EX_TAB_DIF_POS_IDENT = lv_ex_tab_dif_pos_ident
. " TPM_AD_SELECT_TRL_POSITIONS




ABAP code using 7.40 inline data declarations to call FM TPM_AD_SELECT_TRL_POSITIONS

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!