SAP BAPI_FP_GETDETAIL Function Module for Read Detail Data for Securities









BAPI_FP_GETDETAIL is a standard bapi fp getdetail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Detail Data for Securities 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 bapi fp getdetail FM, simply by entering the name BAPI_FP_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: 1076
Program Name: SAPL1076
Main Program: SAPL1076
Appliation area: F
Release date: 20-Oct-2009
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_FP_GETDETAIL 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 'BAPI_FP_GETDETAIL'"Read Detail Data for Securities
EXPORTING
* SECURITYNUMBER = "Security ID number

IMPORTING
PRODUCTCATEGORY = "Prod.Cat.
SHAREHOLDING = "Structure for shareholdings
INVESTMENT = "Structure for investment certificates
SUBSCRIPTIONRIGHT = "Structure for subscription rights
OPTION = "Structure for listed options
FUTURE = "Structure for listed futures
RETURN = "Result parameter
ADDITIONALDATA = "Additional Fields for the BAPI Interface
POOLDATA = "BAPI Structure for Pool Data
CUSTOMERDATA = "BAPI Structure for Customer parameters for Class Master Data
BONDWARRANT = "Structure for bond warrants
CURRENCYWARRANT = "Structure for currency warrants
EQUITYWARRANT = "Structure for equity warrants
INDEXWARRANT = "Structure for index warrants
BOND = "Structure for bonds
CONVERTIBLEBOND = "Structure for convertible bonds
WARRANTBOND = "Structure for warrant bonds
STOCK = "Structure for stocks

TABLES
* REFERENCES = "Table for references
* SHARECAPITALS = "Stock capital and voting rights
* RATINGS = "Rating
* POOLREMARK = "BAPI Structure for Asset Pool Comments
* POOLRATING = "BAPI Structure for Pool Rating
* EXTENSIONOUT = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* LISTINGS = "Table for exchanges
* INDICES = "Table for secondary indexes
* CONDITIONS = "Table for conditions
* SUBSCRIPTIONPERIODS = "Table for subscription periods
* FORMULARS = "Table for formula
* NOTICES = "Table for notice
* SWAPS = "Stock Swap
* PARTPAIDS = "Partly paids for securities
.



IMPORTING Parameters details for BAPI_FP_GETDETAIL

SECURITYNUMBER - Security ID number

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

EXPORTING Parameters details for BAPI_FP_GETDETAIL

PRODUCTCATEGORY - Prod.Cat.

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

SHAREHOLDING - Structure for shareholdings

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

INVESTMENT - Structure for investment certificates

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

SUBSCRIPTIONRIGHT - Structure for subscription rights

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

OPTION - Structure for listed options

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

FUTURE - Structure for listed futures

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

RETURN - Result parameter

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

ADDITIONALDATA - Additional Fields for the BAPI Interface

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

POOLDATA - BAPI Structure for Pool Data

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

CUSTOMERDATA - BAPI Structure for Customer parameters for Class Master Data

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

BONDWARRANT - Structure for bond warrants

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

CURRENCYWARRANT - Structure for currency warrants

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

EQUITYWARRANT - Structure for equity warrants

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

INDEXWARRANT - Structure for index warrants

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

BOND - Structure for bonds

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

CONVERTIBLEBOND - Structure for convertible bonds

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

WARRANTBOND - Structure for warrant bonds

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

STOCK - Structure for stocks

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

TABLES Parameters details for BAPI_FP_GETDETAIL

REFERENCES - Table for references

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

SHARECAPITALS - Stock capital and voting rights

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

RATINGS - Rating

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

POOLREMARK - BAPI Structure for Asset Pool Comments

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

POOLRATING - BAPI Structure for Pool Rating

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

EXTENSIONOUT - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

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

LISTINGS - Table for exchanges

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

INDICES - Table for secondary indexes

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

CONDITIONS - Table for conditions

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

SUBSCRIPTIONPERIODS - Table for subscription periods

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

FORMULARS - Table for formula

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

NOTICES - Table for notice

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

SWAPS - Stock Swap

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

PARTPAIDS - Partly paids for securities

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

Copy and paste ABAP code example for BAPI_FP_GETDETAIL 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:
lt_references  TYPE STANDARD TABLE OF BAPI1076_REFERENCE, "   
lv_securitynumber  TYPE BAPI1076-SECURITY_NUMBER, "   
lv_productcategory  TYPE BAPI1076-PRODUCT_CATEGORY, "   
lv_shareholding  TYPE BAPI1076_SHAREHOLDING, "   
lt_sharecapitals  TYPE STANDARD TABLE OF BAPI1076_SHARECAPITAL, "   
lt_ratings  TYPE STANDARD TABLE OF BAPI1076_RATING, "   
lv_investment  TYPE BAPI1076_INVESTMENT, "   
lt_poolremark  TYPE STANDARD TABLE OF BAPI1076_POOLREMARK, "   
lv_subscriptionright  TYPE BAPI1076_SUBSCRIPTIONRIGHT, "   
lv_option  TYPE BAPI1076_OPTION, "   
lt_poolrating  TYPE STANDARD TABLE OF BAPI1076_POOLRATING, "   
lv_future  TYPE BAPI1076_FUTURE, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_return  TYPE BAPIRET2, "   
lv_additionaldata  TYPE BAPI1076_ADDITIONALDATA, "   
lv_pooldata  TYPE BAPI1076_POOLDATA, "   
lv_customerdata  TYPE BAPI1076_CUSTDATA, "   
lt_listings  TYPE STANDARD TABLE OF BAPI1076_LISTING, "   
lv_bondwarrant  TYPE BAPI1076_BONDWARRANT, "   
lt_indices  TYPE STANDARD TABLE OF BAPI1076_INDEX, "   
lv_currencywarrant  TYPE BAPI1076_CURRENCYWARRANT, "   
lt_conditions  TYPE STANDARD TABLE OF BAPI1076_CONDITION, "   
lv_equitywarrant  TYPE BAPI1076_EQUITYWARRANT, "   
lv_indexwarrant  TYPE BAPI1076_INDEXWARRANT, "   
lt_subscriptionperiods  TYPE STANDARD TABLE OF BAPI1076_SUBSCRIPTPERIOD, "   
lv_bond  TYPE BAPI1076_BOND, "   
lt_formulars  TYPE STANDARD TABLE OF BAPI1076_FORMULAR, "   
lt_notices  TYPE STANDARD TABLE OF BAPI1076_NOTICE, "   
lv_convertiblebond  TYPE BAPI1076_CONVERTIBLEBOND, "   
lt_swaps  TYPE STANDARD TABLE OF BAPI1076_SWAP, "   
lv_warrantbond  TYPE BAPI1076_WARRANTBOND, "   
lv_stock  TYPE BAPI1076_STOCK, "   
lt_partpaids  TYPE STANDARD TABLE OF BAPI1076_PARTPAID. "   

  CALL FUNCTION 'BAPI_FP_GETDETAIL'  "Read Detail Data for Securities
    EXPORTING
         SECURITYNUMBER = lv_securitynumber
    IMPORTING
         PRODUCTCATEGORY = lv_productcategory
         SHAREHOLDING = lv_shareholding
         INVESTMENT = lv_investment
         SUBSCRIPTIONRIGHT = lv_subscriptionright
         OPTION = lv_option
         FUTURE = lv_future
         RETURN = lv_return
         ADDITIONALDATA = lv_additionaldata
         POOLDATA = lv_pooldata
         CUSTOMERDATA = lv_customerdata
         BONDWARRANT = lv_bondwarrant
         CURRENCYWARRANT = lv_currencywarrant
         EQUITYWARRANT = lv_equitywarrant
         INDEXWARRANT = lv_indexwarrant
         BOND = lv_bond
         CONVERTIBLEBOND = lv_convertiblebond
         WARRANTBOND = lv_warrantbond
         STOCK = lv_stock
    TABLES
         REFERENCES = lt_references
         SHARECAPITALS = lt_sharecapitals
         RATINGS = lt_ratings
         POOLREMARK = lt_poolremark
         POOLRATING = lt_poolrating
         EXTENSIONOUT = lt_extensionout
         LISTINGS = lt_listings
         INDICES = lt_indices
         CONDITIONS = lt_conditions
         SUBSCRIPTIONPERIODS = lt_subscriptionperiods
         FORMULARS = lt_formulars
         NOTICES = lt_notices
         SWAPS = lt_swaps
         PARTPAIDS = lt_partpaids
. " BAPI_FP_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM BAPI_FP_GETDETAIL

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 SECURITY_NUMBER FROM BAPI1076 INTO @DATA(ld_securitynumber).
 
"SELECT single PRODUCT_CATEGORY FROM BAPI1076 INTO @DATA(ld_productcategory).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!