SAP SECURITY_READ_EMBA_OLD Function Module for FM: Read Issue and Cancellation Data of a Bond









SECURITY_READ_EMBA_OLD is a standard security read emba old SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FM: Read Issue and Cancellation Data of a Bond 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 security read emba old FM, simply by entering the name SECURITY_READ_EMBA_OLD into the relevant SAP transaction such as SE37 or SE38.

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



Function SECURITY_READ_EMBA_OLD 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 'SECURITY_READ_EMBA_OLD'"FM: Read Issue and Cancellation Data of a Bond
EXPORTING
I_RANL = "Wertpapierkennnumer
I_DATE = "Key Date
* I_CLEAR_BUFFER = ' ' "Delete Buffer

IMPORTING
E_DEBEG = "Datum Emissionsbeginn
E_BKUWHR = "Währung des Kündigungspreises
E_BOKUPREIS = "Kündigungspreis (Künd. d. Obl.)
E_BOKUWHR = "Währung des Kündigungspreises
E_PEMKURS = "Issue rate
E_PRUKURS = "Repayment rate
E_PKUKURS = "Kündigungskurs (Künd. d. Emi.)
E_POKUKURS = "Kündigungskurs (Künd. d. Obl.)
E_FD_PRICE_SET_DEF = "Künd.preis/kurs gl. Nominalpr./100% gesetzt
E_CALL_PRICE_SET_DEF = "Künd.preis/kurs gl. Nominalpr./100% gesetzt
E_PUT_PRICE_SET_DEF = "Künd.preis/kurs gl. Nominalpr./100% gesetzt
E_DENDF = "Datum Endfälligkeit
E_DKEMI = "Datum Kündigung Emittenten
E_DKOBL = "Datum Kündigung d. Obligationär
E_BEMPREIS = "Issue Price
E_BEMWHR = "Währung Emissionspreis
E_BRUPREIS = "Rückzahlungspreis
E_BRUWHR = "Rückzahlungswährung
E_BKUPREIS = "Kündigungspreis (Künd. d. Emi.)

EXCEPTIONS
SECURITY_NOT_FOUND = 1 SECURITY_NOT_BOND = 2 BOND_NOT_FOUND = 3
.



IMPORTING Parameters details for SECURITY_READ_EMBA_OLD

I_RANL - Wertpapierkennnumer

Data type: VWPANLA-RANL
Optional: No
Call by Reference: No ( called with pass by value option)

I_DATE - Key Date

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

I_CLEAR_BUFFER - Delete Buffer

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

EXPORTING Parameters details for SECURITY_READ_EMBA_OLD

E_DEBEG - Datum Emissionsbeginn

Data type: VWPANLE-DEBEG
Optional: No
Call by Reference: No ( called with pass by value option)

E_BKUWHR - Währung des Kündigungspreises

Data type: VZZKOPO-SWHRKOND
Optional: No
Call by Reference: No ( called with pass by value option)

E_BOKUPREIS - Kündigungspreis (Künd. d. Obl.)

Data type: VWPANLA-BEMPREIS
Optional: No
Call by Reference: No ( called with pass by value option)

E_BOKUWHR - Währung des Kündigungspreises

Data type: VZZKOPO-SWHRKOND
Optional: No
Call by Reference: No ( called with pass by value option)

E_PEMKURS - Issue rate

Data type: VWPANLA-PEMKURS
Optional: No
Call by Reference: No ( called with pass by value option)

E_PRUKURS - Repayment rate

Data type: VWPANLA-PEMKURS
Optional: No
Call by Reference: No ( called with pass by value option)

E_PKUKURS - Kündigungskurs (Künd. d. Emi.)

Data type: VWPANLA-PEMKURS
Optional: No
Call by Reference: No ( called with pass by value option)

E_POKUKURS - Kündigungskurs (Künd. d. Obl.)

Data type: VWPANLA-PEMKURS
Optional: No
Call by Reference: No ( called with pass by value option)

E_FD_PRICE_SET_DEF - Künd.preis/kurs gl. Nominalpr./100% gesetzt

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

E_CALL_PRICE_SET_DEF - Künd.preis/kurs gl. Nominalpr./100% gesetzt

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

E_PUT_PRICE_SET_DEF - Künd.preis/kurs gl. Nominalpr./100% gesetzt

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

E_DENDF - Datum Endfälligkeit

Data type: VWPANLE-DENDF
Optional: No
Call by Reference: No ( called with pass by value option)

E_DKEMI - Datum Kündigung Emittenten

Data type: VWPANLE-DKEMI
Optional: No
Call by Reference: No ( called with pass by value option)

E_DKOBL - Datum Kündigung d. Obligationär

Data type: VWPANLE-DKOBL
Optional: No
Call by Reference: No ( called with pass by value option)

E_BEMPREIS - Issue Price

Data type: VWPANLA-BEMPREIS
Optional: No
Call by Reference: No ( called with pass by value option)

E_BEMWHR - Währung Emissionspreis

Data type: VWPANLA-REWHR
Optional: No
Call by Reference: No ( called with pass by value option)

E_BRUPREIS - Rückzahlungspreis

Data type: VWPANLA-BEMPREIS
Optional: No
Call by Reference: No ( called with pass by value option)

E_BRUWHR - Rückzahlungswährung

Data type: VZZKOPO-SWHRKOND
Optional: No
Call by Reference: No ( called with pass by value option)

E_BKUPREIS - Kündigungspreis (Künd. d. Emi.)

Data type: VWPANLA-BEMPREIS
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

SECURITY_NOT_FOUND - Unable to find the security

Data type:
Optional: No
Call by Reference: Yes

SECURITY_NOT_BOND - Wertpapier ist keine Anleihe

Data type:
Optional: No
Call by Reference: Yes

BOND_NOT_FOUND - Anleihe nicht gefunden

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SECURITY_READ_EMBA_OLD 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_i_ranl  TYPE VWPANLA-RANL, "   
lv_e_debeg  TYPE VWPANLE-DEBEG, "   
lv_security_not_found  TYPE VWPANLE, "   
lv_e_bkuwhr  TYPE VZZKOPO-SWHRKOND, "   
lv_e_bokupreis  TYPE VWPANLA-BEMPREIS, "   
lv_e_bokuwhr  TYPE VZZKOPO-SWHRKOND, "   
lv_e_pemkurs  TYPE VWPANLA-PEMKURS, "   
lv_e_prukurs  TYPE VWPANLA-PEMKURS, "   
lv_e_pkukurs  TYPE VWPANLA-PEMKURS, "   
lv_e_pokukurs  TYPE VWPANLA-PEMKURS, "   
lv_e_fd_price_set_def  TYPE C, "   
lv_e_call_price_set_def  TYPE C, "   
lv_e_put_price_set_def  TYPE C, "   
lv_i_date  TYPE D, "   
lv_e_dendf  TYPE VWPANLE-DENDF, "   
lv_security_not_bond  TYPE VWPANLE, "   
lv_e_dkemi  TYPE VWPANLE-DKEMI, "   
lv_bond_not_found  TYPE VWPANLE, "   
lv_i_clear_buffer  TYPE C, "   SPACE
lv_e_dkobl  TYPE VWPANLE-DKOBL, "   
lv_e_bempreis  TYPE VWPANLA-BEMPREIS, "   
lv_e_bemwhr  TYPE VWPANLA-REWHR, "   
lv_e_brupreis  TYPE VWPANLA-BEMPREIS, "   
lv_e_bruwhr  TYPE VZZKOPO-SWHRKOND, "   
lv_e_bkupreis  TYPE VWPANLA-BEMPREIS. "   

  CALL FUNCTION 'SECURITY_READ_EMBA_OLD'  "FM: Read Issue and Cancellation Data of a Bond
    EXPORTING
         I_RANL = lv_i_ranl
         I_DATE = lv_i_date
         I_CLEAR_BUFFER = lv_i_clear_buffer
    IMPORTING
         E_DEBEG = lv_e_debeg
         E_BKUWHR = lv_e_bkuwhr
         E_BOKUPREIS = lv_e_bokupreis
         E_BOKUWHR = lv_e_bokuwhr
         E_PEMKURS = lv_e_pemkurs
         E_PRUKURS = lv_e_prukurs
         E_PKUKURS = lv_e_pkukurs
         E_POKUKURS = lv_e_pokukurs
         E_FD_PRICE_SET_DEF = lv_e_fd_price_set_def
         E_CALL_PRICE_SET_DEF = lv_e_call_price_set_def
         E_PUT_PRICE_SET_DEF = lv_e_put_price_set_def
         E_DENDF = lv_e_dendf
         E_DKEMI = lv_e_dkemi
         E_DKOBL = lv_e_dkobl
         E_BEMPREIS = lv_e_bempreis
         E_BEMWHR = lv_e_bemwhr
         E_BRUPREIS = lv_e_brupreis
         E_BRUWHR = lv_e_bruwhr
         E_BKUPREIS = lv_e_bkupreis
    EXCEPTIONS
        SECURITY_NOT_FOUND = 1
        SECURITY_NOT_BOND = 2
        BOND_NOT_FOUND = 3
. " SECURITY_READ_EMBA_OLD




ABAP code using 7.40 inline data declarations to call FM SECURITY_READ_EMBA_OLD

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.

"SELECT single RANL FROM VWPANLA INTO @DATA(ld_i_ranl).
 
"SELECT single DEBEG FROM VWPANLE INTO @DATA(ld_e_debeg).
 
 
"SELECT single SWHRKOND FROM VZZKOPO INTO @DATA(ld_e_bkuwhr).
 
"SELECT single BEMPREIS FROM VWPANLA INTO @DATA(ld_e_bokupreis).
 
"SELECT single SWHRKOND FROM VZZKOPO INTO @DATA(ld_e_bokuwhr).
 
"SELECT single PEMKURS FROM VWPANLA INTO @DATA(ld_e_pemkurs).
 
"SELECT single PEMKURS FROM VWPANLA INTO @DATA(ld_e_prukurs).
 
"SELECT single PEMKURS FROM VWPANLA INTO @DATA(ld_e_pkukurs).
 
"SELECT single PEMKURS FROM VWPANLA INTO @DATA(ld_e_pokukurs).
 
 
 
 
 
"SELECT single DENDF FROM VWPANLE INTO @DATA(ld_e_dendf).
 
 
"SELECT single DKEMI FROM VWPANLE INTO @DATA(ld_e_dkemi).
 
 
DATA(ld_i_clear_buffer) = ' '.
 
"SELECT single DKOBL FROM VWPANLE INTO @DATA(ld_e_dkobl).
 
"SELECT single BEMPREIS FROM VWPANLA INTO @DATA(ld_e_bempreis).
 
"SELECT single REWHR FROM VWPANLA INTO @DATA(ld_e_bemwhr).
 
"SELECT single BEMPREIS FROM VWPANLA INTO @DATA(ld_e_brupreis).
 
"SELECT single SWHRKOND FROM VZZKOPO INTO @DATA(ld_e_bruwhr).
 
"SELECT single BEMPREIS FROM VWPANLA INTO @DATA(ld_e_bkupreis).
 


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!