SAP TRSPA_READ_MAN_SECURITY_PRICE Function Module for Import Manually Fixed Security Prices









TRSPA_READ_MAN_SECURITY_PRICE is a standard trspa read man security price SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Import Manually Fixed Security Prices 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 trspa read man security price FM, simply by entering the name TRSPA_READ_MAN_SECURITY_PRICE into the relevant SAP transaction such as SE37 or SE38.

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



Function TRSPA_READ_MAN_SECURITY_PRICE 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 'TRSPA_READ_MAN_SECURITY_PRICE'"Import Manually Fixed Security Prices
EXPORTING
IM_SECURITIES_ID = "Security Id
* IM_RHANDPL = "Exchange
* IM_SKURSART = "Rate/Price Type - Treasury Instruments
* IM_IRA_DATE = "Security Price Fixing Date

IMPORTING
EX_TAB_SEC_PRICE_VALUES = "Security Price Adjustment:Table Type for Security Prices

EXCEPTIONS
NO_VALUES = 1
.



IMPORTING Parameters details for TRSPA_READ_MAN_SECURITY_PRICE

IM_SECURITIES_ID - Security Id

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

IM_RHANDPL - Exchange

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

IM_SKURSART - Rate/Price Type - Treasury Instruments

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

IM_IRA_DATE - Security Price Fixing Date

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

EXPORTING Parameters details for TRSPA_READ_MAN_SECURITY_PRICE

EX_TAB_SEC_PRICE_VALUES - Security Price Adjustment:Table Type for Security Prices

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

EXCEPTIONS details

NO_VALUES - No specific security price found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TRSPA_READ_MAN_SECURITY_PRICE 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_no_values  TYPE STRING, "   
lv_im_securities_id  TYPE VVRANLW, "   
lv_ex_tab_sec_price_values  TYPE TRSPAY_SECURITIES_PRICE, "   
lv_im_rhandpl  TYPE VVRHANDPL, "   
lv_im_skursart  TYPE TI_KURSART, "   
lv_im_ira_date  TYPE TB_SPA_DATE. "   

  CALL FUNCTION 'TRSPA_READ_MAN_SECURITY_PRICE'  "Import Manually Fixed Security Prices
    EXPORTING
         IM_SECURITIES_ID = lv_im_securities_id
         IM_RHANDPL = lv_im_rhandpl
         IM_SKURSART = lv_im_skursart
         IM_IRA_DATE = lv_im_ira_date
    IMPORTING
         EX_TAB_SEC_PRICE_VALUES = lv_ex_tab_sec_price_values
    EXCEPTIONS
        NO_VALUES = 1
. " TRSPA_READ_MAN_SECURITY_PRICE




ABAP code using 7.40 inline data declarations to call FM TRSPA_READ_MAN_SECURITY_PRICE

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!