SAP Function Modules

TPM_TRL_FIXINGSUM_PROTOCOL SAP Function module - Display Totals Records for TRL Positions







TPM_TRL_FIXINGSUM_PROTOCOL is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name TPM_TRL_FIXINGSUM_PROTOCOL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: TPM_TRL_PROTOCOLS
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TPM_TRL_FIXINGSUM_PROTOCOL - TPM TRL FIXINGSUM PROTOCOL





CALL FUNCTION 'TPM_TRL_FIXINGSUM_PROTOCOL' "Display Totals Records for TRL Positions
  EXPORTING
    im_mode =                   " i             Mode
*   im_no_sec = SPACE           " char1         No Securities
*   im_no_loa = SPACE           " char1         No Loans
*   im_no_pos = SPACE           " char1         No Listed Options/Futures
*   im_no_dea = SPACE           " char1         keine OTC Geschäfte
*   im_date =                   " tpm_trldate   Position Date
*   im_tab_otc_deals =          " trgy_bukrs_dealnumber  Table Type for Transaction Key Structure
*   im_flag_unlock = SPACE      " xfeld         'X' Unlock
  IMPORTING
    ex_okcode =                 " syucomm       Screens, Function Code That Triggered PAI
    ex_tab_fixingsum =          " trly_fixingsum  Table with References to Fixing Sum Class
* TABLES
*   im_range_val =              " trgr_valuation_area  Valuation Areas
*   im_range_vcl =              " trgr_valuation_class  Valuation Classes
*   im_range_tac =              " trgr_accounting_code  TR Accounting Kreise
*   im_range_buk =              " trgr_company_code  Company Codes
*   im_range_ptp =              " trgr_product_type  Product Categories
*   im_range_acc =              " trgr_security_account  Securities Accounts
*   im_range_sec =              " trgr_security_id  ID Numbers
*   im_range_pfl =              " trgr_portfolio  Portfolios
*   im_range_tra =              " trgr_trader   Traders
*   im_range_grp =              " trgr_account_group  Sec. acct groups
*   im_range_con =              " trgr_loans_contract  Loan Contracts
*   im_range_pos =              " trgr_position_account  Positionskonten
*   im_range_sep =              " trgr_security_id  Kennnummern Optionen/Futures
*   im_range_dat =              " trgr_date     Date
    .  "  TPM_TRL_FIXINGSUM_PROTOCOL

ABAP code example for Function Module TPM_TRL_FIXINGSUM_PROTOCOL





The ABAP code below is a full code listing to execute function module TPM_TRL_FIXINGSUM_PROTOCOL including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_ex_okcode  TYPE SYUCOMM ,
ld_ex_tab_fixingsum  TYPE TRLY_FIXINGSUM ,
it_im_range_val  TYPE STANDARD TABLE OF TRGR_VALUATION_AREA,"TABLES PARAM
wa_im_range_val  LIKE LINE OF it_im_range_val ,
it_im_range_vcl  TYPE STANDARD TABLE OF TRGR_VALUATION_CLASS,"TABLES PARAM
wa_im_range_vcl  LIKE LINE OF it_im_range_vcl ,
it_im_range_tac  TYPE STANDARD TABLE OF TRGR_ACCOUNTING_CODE,"TABLES PARAM
wa_im_range_tac  LIKE LINE OF it_im_range_tac ,
it_im_range_buk  TYPE STANDARD TABLE OF TRGR_COMPANY_CODE,"TABLES PARAM
wa_im_range_buk  LIKE LINE OF it_im_range_buk ,
it_im_range_ptp  TYPE STANDARD TABLE OF TRGR_PRODUCT_TYPE,"TABLES PARAM
wa_im_range_ptp  LIKE LINE OF it_im_range_ptp ,
it_im_range_acc  TYPE STANDARD TABLE OF TRGR_SECURITY_ACCOUNT,"TABLES PARAM
wa_im_range_acc  LIKE LINE OF it_im_range_acc ,
it_im_range_sec  TYPE STANDARD TABLE OF TRGR_SECURITY_ID,"TABLES PARAM
wa_im_range_sec  LIKE LINE OF it_im_range_sec ,
it_im_range_pfl  TYPE STANDARD TABLE OF TRGR_PORTFOLIO,"TABLES PARAM
wa_im_range_pfl  LIKE LINE OF it_im_range_pfl ,
it_im_range_tra  TYPE STANDARD TABLE OF TRGR_TRADER,"TABLES PARAM
wa_im_range_tra  LIKE LINE OF it_im_range_tra ,
it_im_range_grp  TYPE STANDARD TABLE OF TRGR_ACCOUNT_GROUP,"TABLES PARAM
wa_im_range_grp  LIKE LINE OF it_im_range_grp ,
it_im_range_con  TYPE STANDARD TABLE OF TRGR_LOANS_CONTRACT,"TABLES PARAM
wa_im_range_con  LIKE LINE OF it_im_range_con ,
it_im_range_pos  TYPE STANDARD TABLE OF TRGR_POSITION_ACCOUNT,"TABLES PARAM
wa_im_range_pos  LIKE LINE OF it_im_range_pos ,
it_im_range_sep  TYPE STANDARD TABLE OF TRGR_SECURITY_ID,"TABLES PARAM
wa_im_range_sep  LIKE LINE OF it_im_range_sep ,
it_im_range_dat  TYPE STANDARD TABLE OF TRGR_DATE,"TABLES PARAM
wa_im_range_dat  LIKE LINE OF it_im_range_dat .

DATA(ld_im_mode) = 'Check type of data required'.
DATA(ld_im_no_sec) = 'Check type of data required'.
DATA(ld_im_no_loa) = 'Check type of data required'.
DATA(ld_im_no_pos) = 'Check type of data required'.
DATA(ld_im_no_dea) = 'Check type of data required'.
DATA(ld_im_date) = 'Check type of data required'.
DATA(ld_im_tab_otc_deals) = 'Check type of data required'.
DATA(ld_im_flag_unlock) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_im_range_val to it_im_range_val.

"populate fields of struture and append to itab
append wa_im_range_vcl to it_im_range_vcl.

"populate fields of struture and append to itab
append wa_im_range_tac to it_im_range_tac.

"populate fields of struture and append to itab
append wa_im_range_buk to it_im_range_buk.

"populate fields of struture and append to itab
append wa_im_range_ptp to it_im_range_ptp.

"populate fields of struture and append to itab
append wa_im_range_acc to it_im_range_acc.

"populate fields of struture and append to itab
append wa_im_range_sec to it_im_range_sec.

"populate fields of struture and append to itab
append wa_im_range_pfl to it_im_range_pfl.

"populate fields of struture and append to itab
append wa_im_range_tra to it_im_range_tra.

"populate fields of struture and append to itab
append wa_im_range_grp to it_im_range_grp.

"populate fields of struture and append to itab
append wa_im_range_con to it_im_range_con.

"populate fields of struture and append to itab
append wa_im_range_pos to it_im_range_pos.

"populate fields of struture and append to itab
append wa_im_range_sep to it_im_range_sep.

"populate fields of struture and append to itab
append wa_im_range_dat to it_im_range_dat. . CALL FUNCTION 'TPM_TRL_FIXINGSUM_PROTOCOL' EXPORTING im_mode = ld_im_mode * im_no_sec = ld_im_no_sec * im_no_loa = ld_im_no_loa * im_no_pos = ld_im_no_pos * im_no_dea = ld_im_no_dea * im_date = ld_im_date * im_tab_otc_deals = ld_im_tab_otc_deals * im_flag_unlock = ld_im_flag_unlock IMPORTING ex_okcode = ld_ex_okcode ex_tab_fixingsum = ld_ex_tab_fixingsum * TABLES * im_range_val = it_im_range_val * im_range_vcl = it_im_range_vcl * im_range_tac = it_im_range_tac * im_range_buk = it_im_range_buk * im_range_ptp = it_im_range_ptp * im_range_acc = it_im_range_acc * im_range_sec = it_im_range_sec * im_range_pfl = it_im_range_pfl * im_range_tra = it_im_range_tra * im_range_grp = it_im_range_grp * im_range_con = it_im_range_con * im_range_pos = it_im_range_pos * im_range_sep = it_im_range_sep * im_range_dat = it_im_range_dat . " TPM_TRL_FIXINGSUM_PROTOCOL
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ex_okcode  TYPE SYUCOMM ,
ld_im_mode  TYPE I ,
it_im_range_val  TYPE STANDARD TABLE OF TRGR_VALUATION_AREA ,
wa_im_range_val  LIKE LINE OF it_im_range_val,
it_im_range_vcl  TYPE STANDARD TABLE OF TRGR_VALUATION_CLASS ,
wa_im_range_vcl  LIKE LINE OF it_im_range_vcl,
ld_im_no_sec  TYPE CHAR1 ,
ld_ex_tab_fixingsum  TYPE TRLY_FIXINGSUM ,
ld_im_no_loa  TYPE CHAR1 ,
it_im_range_tac  TYPE STANDARD TABLE OF TRGR_ACCOUNTING_CODE ,
wa_im_range_tac  LIKE LINE OF it_im_range_tac,
ld_im_no_pos  TYPE CHAR1 ,
it_im_range_buk  TYPE STANDARD TABLE OF TRGR_COMPANY_CODE ,
wa_im_range_buk  LIKE LINE OF it_im_range_buk,
ld_im_no_dea  TYPE CHAR1 ,
it_im_range_ptp  TYPE STANDARD TABLE OF TRGR_PRODUCT_TYPE ,
wa_im_range_ptp  LIKE LINE OF it_im_range_ptp,
ld_im_date  TYPE TPM_TRLDATE ,
it_im_range_acc  TYPE STANDARD TABLE OF TRGR_SECURITY_ACCOUNT ,
wa_im_range_acc  LIKE LINE OF it_im_range_acc,
ld_im_tab_otc_deals  TYPE TRGY_BUKRS_DEALNUMBER ,
it_im_range_sec  TYPE STANDARD TABLE OF TRGR_SECURITY_ID ,
wa_im_range_sec  LIKE LINE OF it_im_range_sec,
ld_im_flag_unlock  TYPE XFELD ,
it_im_range_pfl  TYPE STANDARD TABLE OF TRGR_PORTFOLIO ,
wa_im_range_pfl  LIKE LINE OF it_im_range_pfl,
it_im_range_tra  TYPE STANDARD TABLE OF TRGR_TRADER ,
wa_im_range_tra  LIKE LINE OF it_im_range_tra,
it_im_range_grp  TYPE STANDARD TABLE OF TRGR_ACCOUNT_GROUP ,
wa_im_range_grp  LIKE LINE OF it_im_range_grp,
it_im_range_con  TYPE STANDARD TABLE OF TRGR_LOANS_CONTRACT ,
wa_im_range_con  LIKE LINE OF it_im_range_con,
it_im_range_pos  TYPE STANDARD TABLE OF TRGR_POSITION_ACCOUNT ,
wa_im_range_pos  LIKE LINE OF it_im_range_pos,
it_im_range_sep  TYPE STANDARD TABLE OF TRGR_SECURITY_ID ,
wa_im_range_sep  LIKE LINE OF it_im_range_sep,
it_im_range_dat  TYPE STANDARD TABLE OF TRGR_DATE ,
wa_im_range_dat  LIKE LINE OF it_im_range_dat.

ld_im_mode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_im_range_val to it_im_range_val.

"populate fields of struture and append to itab
append wa_im_range_vcl to it_im_range_vcl.
ld_im_no_sec = 'Check type of data required'.
ld_im_no_loa = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_im_range_tac to it_im_range_tac.
ld_im_no_pos = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_im_range_buk to it_im_range_buk.
ld_im_no_dea = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_im_range_ptp to it_im_range_ptp.
ld_im_date = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_im_range_acc to it_im_range_acc.
ld_im_tab_otc_deals = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_im_range_sec to it_im_range_sec.
ld_im_flag_unlock = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_im_range_pfl to it_im_range_pfl.

"populate fields of struture and append to itab
append wa_im_range_tra to it_im_range_tra.

"populate fields of struture and append to itab
append wa_im_range_grp to it_im_range_grp.

"populate fields of struture and append to itab
append wa_im_range_con to it_im_range_con.

"populate fields of struture and append to itab
append wa_im_range_pos to it_im_range_pos.

"populate fields of struture and append to itab
append wa_im_range_sep to it_im_range_sep.

"populate fields of struture and append to itab
append wa_im_range_dat to it_im_range_dat.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TPM_TRL_FIXINGSUM_PROTOCOL or its description.