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_NUMBEROptional: 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_CATEGORYOptional: No
Call by Reference: No ( called with pass by value option)
SHAREHOLDING - Structure for shareholdings
Data type: BAPI1076_SHAREHOLDINGOptional: No
Call by Reference: No ( called with pass by value option)
INVESTMENT - Structure for investment certificates
Data type: BAPI1076_INVESTMENTOptional: No
Call by Reference: No ( called with pass by value option)
SUBSCRIPTIONRIGHT - Structure for subscription rights
Data type: BAPI1076_SUBSCRIPTIONRIGHTOptional: No
Call by Reference: No ( called with pass by value option)
OPTION - Structure for listed options
Data type: BAPI1076_OPTIONOptional: No
Call by Reference: No ( called with pass by value option)
FUTURE - Structure for listed futures
Data type: BAPI1076_FUTUREOptional: No
Call by Reference: No ( called with pass by value option)
RETURN - Result parameter
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
ADDITIONALDATA - Additional Fields for the BAPI Interface
Data type: BAPI1076_ADDITIONALDATAOptional: No
Call by Reference: No ( called with pass by value option)
POOLDATA - BAPI Structure for Pool Data
Data type: BAPI1076_POOLDATAOptional: No
Call by Reference: No ( called with pass by value option)
CUSTOMERDATA - BAPI Structure for Customer parameters for Class Master Data
Data type: BAPI1076_CUSTDATAOptional: No
Call by Reference: No ( called with pass by value option)
BONDWARRANT - Structure for bond warrants
Data type: BAPI1076_BONDWARRANTOptional: No
Call by Reference: No ( called with pass by value option)
CURRENCYWARRANT - Structure for currency warrants
Data type: BAPI1076_CURRENCYWARRANTOptional: No
Call by Reference: No ( called with pass by value option)
EQUITYWARRANT - Structure for equity warrants
Data type: BAPI1076_EQUITYWARRANTOptional: No
Call by Reference: No ( called with pass by value option)
INDEXWARRANT - Structure for index warrants
Data type: BAPI1076_INDEXWARRANTOptional: No
Call by Reference: No ( called with pass by value option)
BOND - Structure for bonds
Data type: BAPI1076_BONDOptional: No
Call by Reference: No ( called with pass by value option)
CONVERTIBLEBOND - Structure for convertible bonds
Data type: BAPI1076_CONVERTIBLEBONDOptional: No
Call by Reference: No ( called with pass by value option)
WARRANTBOND - Structure for warrant bonds
Data type: BAPI1076_WARRANTBONDOptional: No
Call by Reference: No ( called with pass by value option)
STOCK - Structure for stocks
Data type: BAPI1076_STOCKOptional: 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_REFERENCEOptional: Yes
Call by Reference: No ( called with pass by value option)
SHARECAPITALS - Stock capital and voting rights
Data type: BAPI1076_SHARECAPITALOptional: Yes
Call by Reference: Yes
RATINGS - Rating
Data type: BAPI1076_RATINGOptional: Yes
Call by Reference: Yes
POOLREMARK - BAPI Structure for Asset Pool Comments
Data type: BAPI1076_POOLREMARKOptional: Yes
Call by Reference: Yes
POOLRATING - BAPI Structure for Pool Rating
Data type: BAPI1076_POOLRATINGOptional: Yes
Call by Reference: Yes
EXTENSIONOUT - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
LISTINGS - Table for exchanges
Data type: BAPI1076_LISTINGOptional: Yes
Call by Reference: No ( called with pass by value option)
INDICES - Table for secondary indexes
Data type: BAPI1076_INDEXOptional: Yes
Call by Reference: No ( called with pass by value option)
CONDITIONS - Table for conditions
Data type: BAPI1076_CONDITIONOptional: Yes
Call by Reference: No ( called with pass by value option)
SUBSCRIPTIONPERIODS - Table for subscription periods
Data type: BAPI1076_SUBSCRIPTPERIODOptional: Yes
Call by Reference: No ( called with pass by value option)
FORMULARS - Table for formula
Data type: BAPI1076_FORMULAROptional: Yes
Call by Reference: No ( called with pass by value option)
NOTICES - Table for notice
Data type: BAPI1076_NOTICEOptional: Yes
Call by Reference: Yes
SWAPS - Stock Swap
Data type: BAPI1076_SWAPOptional: Yes
Call by Reference: Yes
PARTPAIDS - Partly paids for securities
Data type: BAPI1076_PARTPAIDOptional: 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