SAP TPM_TRL_CHANGE_POS_MAN_PROC Function Module for Maintain Account Assignment References and Position Management Procedures









TPM_TRL_CHANGE_POS_MAN_PROC is a standard tpm trl change pos man proc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintain Account Assignment References and Position Management Procedures 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 trl change pos man proc FM, simply by entering the name TPM_TRL_CHANGE_POS_MAN_PROC into the relevant SAP transaction such as SE37 or SE38.

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



Function TPM_TRL_CHANGE_POS_MAN_PROC 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_TRL_CHANGE_POS_MAN_PROC'"Maintain Account Assignment References and Position Management Procedures
EXPORTING
* IM_R_VALUATION_AREA = "Range Table for Valuation Areas
* IM_R_ACCOUNT_GROUP = "Range Accounting Group
* IM_R_LOANS_CONTRACT = "Loan Contracts
* IM_R_POSITION_ACCOUNT = "Range for Futures Account
* IM_R_FUTURE_ID = "Range Security ID
* IM_TAB_OTC_DEALS = "Table Type for Transaction Key Structure
* IM_SEC = ' ' "Including Securities
* IM_LOA = ' ' "Including Loans
* IM_POS = ' ' "Including Listed Options/Futures
* IM_DEA = ' ' "Including OTC Transactions
* IM_R_PRODUCT_TYPE = "Product Types
* IM_R_COM_VAL_CLASS = "General Valuation Classes
IM_PROTOCOL_HANDLER = "Protocol Manager
* IM_R_VALUATION_CLASS = "Valuation Classes
* IM_R_ACCOUNTING_CODE = "Treasury Codes
* IM_R_COMPANY_CODE = "Range Table for Company Code
* IM_R_SECURITY_ACCOUNT = "Range for Securities Accounts
* IM_R_SECURITY_ID = "Range Security ID
* IM_R_PORTFOLIO = "Range for Portfolios
* IM_R_TRADER = "Range for Traders

IMPORTING
NO_ACTION = "no_action

EXCEPTIONS
ERROR = 1 NO_ACTION = 2 NO_POSITION_SELECTED = 3
.



IMPORTING Parameters details for TPM_TRL_CHANGE_POS_MAN_PROC

IM_R_VALUATION_AREA - Range Table for Valuation Areas

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

IM_R_ACCOUNT_GROUP - Range Accounting Group

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

IM_R_LOANS_CONTRACT - Loan Contracts

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

IM_R_POSITION_ACCOUNT - Range for Futures Account

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

IM_R_FUTURE_ID - Range Security ID

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

IM_TAB_OTC_DEALS - Table Type for Transaction Key Structure

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

IM_SEC - Including Securities

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

IM_LOA - Including Loans

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

IM_POS - Including Listed Options/Futures

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

IM_DEA - Including OTC Transactions

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

IM_R_PRODUCT_TYPE - Product Types

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

IM_R_COM_VAL_CLASS - General Valuation Classes

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

IM_PROTOCOL_HANDLER - Protocol Manager

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

IM_R_VALUATION_CLASS - Valuation Classes

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

IM_R_ACCOUNTING_CODE - Treasury Codes

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

IM_R_COMPANY_CODE - Range Table for Company Code

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

IM_R_SECURITY_ACCOUNT - Range for Securities Accounts

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

IM_R_SECURITY_ID - Range Security ID

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

IM_R_PORTFOLIO - Range for Portfolios

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

IM_R_TRADER - Range for Traders

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

EXPORTING Parameters details for TPM_TRL_CHANGE_POS_MAN_PROC

NO_ACTION - no_action

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

EXCEPTIONS details

ERROR - error

Data type:
Optional: No
Call by Reference: Yes

NO_ACTION - no_action

Data type:
Optional: No
Call by Reference: Yes

NO_POSITION_SELECTED - No Position selected

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TPM_TRL_CHANGE_POS_MAN_PROC 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_error  TYPE STRING, "   
lv_no_action  TYPE C, "   
lv_im_r_valuation_area  TYPE TRGR_VALUATION_AREA, "   
lv_im_r_account_group  TYPE TRGR_ACCOUNT_GROUP, "   
lv_im_r_loans_contract  TYPE TRGR_LOANS_CONTRACT, "   
lv_im_r_position_account  TYPE TRGR_POSITION_ACCOUNT, "   
lv_im_r_future_id  TYPE TRGR_SECURITY_ID, "   
lv_im_tab_otc_deals  TYPE TRGY_BUKRS_DEALNUMBER, "   
lv_im_sec  TYPE CHAR1, "   SPACE
lv_im_loa  TYPE CHAR1, "   SPACE
lv_im_pos  TYPE CHAR1, "   SPACE
lv_im_dea  TYPE CHAR1, "   SPACE
lv_im_r_product_type  TYPE TRGR_PRODUCT_TYPE, "   
lv_no_action  TYPE TRGR_PRODUCT_TYPE, "   
lv_im_r_com_val_class  TYPE TRGR_COM_VAL_CLASS, "   
lv_im_protocol_handler  TYPE CL_PROTOCOL_HANDLER_TRP, "   
lv_im_r_valuation_class  TYPE TRGR_VALUATION_CLASS, "   
lv_no_position_selected  TYPE TRGR_VALUATION_CLASS, "   
lv_im_r_accounting_code  TYPE TRGR_ACCOUNTING_CODE, "   
lv_im_r_company_code  TYPE TRGR_COMPANY_CODE, "   
lv_im_r_security_account  TYPE TRGR_SECURITY_ACCOUNT, "   
lv_im_r_security_id  TYPE TRGR_SECURITY_ID, "   
lv_im_r_portfolio  TYPE TRGR_PORTFOLIO, "   
lv_im_r_trader  TYPE TRGR_TRADER. "   

  CALL FUNCTION 'TPM_TRL_CHANGE_POS_MAN_PROC'  "Maintain Account Assignment References and Position Management Procedures
    EXPORTING
         IM_R_VALUATION_AREA = lv_im_r_valuation_area
         IM_R_ACCOUNT_GROUP = lv_im_r_account_group
         IM_R_LOANS_CONTRACT = lv_im_r_loans_contract
         IM_R_POSITION_ACCOUNT = lv_im_r_position_account
         IM_R_FUTURE_ID = lv_im_r_future_id
         IM_TAB_OTC_DEALS = lv_im_tab_otc_deals
         IM_SEC = lv_im_sec
         IM_LOA = lv_im_loa
         IM_POS = lv_im_pos
         IM_DEA = lv_im_dea
         IM_R_PRODUCT_TYPE = lv_im_r_product_type
         IM_R_COM_VAL_CLASS = lv_im_r_com_val_class
         IM_PROTOCOL_HANDLER = lv_im_protocol_handler
         IM_R_VALUATION_CLASS = lv_im_r_valuation_class
         IM_R_ACCOUNTING_CODE = lv_im_r_accounting_code
         IM_R_COMPANY_CODE = lv_im_r_company_code
         IM_R_SECURITY_ACCOUNT = lv_im_r_security_account
         IM_R_SECURITY_ID = lv_im_r_security_id
         IM_R_PORTFOLIO = lv_im_r_portfolio
         IM_R_TRADER = lv_im_r_trader
    IMPORTING
         NO_ACTION = lv_no_action
    EXCEPTIONS
        ERROR = 1
        NO_ACTION = 2
        NO_POSITION_SELECTED = 3
. " TPM_TRL_CHANGE_POS_MAN_PROC




ABAP code using 7.40 inline data declarations to call FM TPM_TRL_CHANGE_POS_MAN_PROC

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_sec) = ' '.
 
DATA(ld_im_loa) = ' '.
 
DATA(ld_im_pos) = ' '.
 
DATA(ld_im_dea) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 


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!