SAP BAPI_FIXEDASSET_GETDETAIL Function Module for Display Detailed Information on a Fixed Asset
BAPI_FIXEDASSET_GETDETAIL is a standard bapi fixedasset 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 Display Detailed Information on a Fixed Asset 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 fixedasset getdetail FM, simply by entering the name BAPI_FIXEDASSET_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: 1022
Program Name: SAPL1022
Main Program: SAPL1022
Appliation area: A
Release date: 24-Jul-1997
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_FIXEDASSET_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_FIXEDASSET_GETDETAIL'"Display Detailed Information on a Fixed Asset.
EXPORTING
COMPANYCODE = "Company Code
ASSET = "Main Asset Number
SUBNUMBER = "Asset Subnumber
* EVALUATION_DATE = '00000000' "Report Date (Default = Today's Date)
IMPORTING
BASIC_DATA = "General Data
ORGANIZATIONAL_DATA = "Allocations to Org. Structures and CO Objects
SPECIAL_CLASSIFICATIONS = "Evaluation Groups / Further Assignments
RETURN = "Information about Errors which Occurred
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPL1022_001 Check of User-Defined Fields when Using Create and Change BAPI
IMPORTING Parameters details for BAPI_FIXEDASSET_GETDETAIL
COMPANYCODE - Company Code
Data type: BAPI1022_1-COMP_CODEOptional: No
Call by Reference: No ( called with pass by value option)
ASSET - Main Asset Number
Data type: BAPI1022_1-ASSETMAINOOptional: No
Call by Reference: No ( called with pass by value option)
SUBNUMBER - Asset Subnumber
Data type: BAPI1022_1-ASSETSUBNOOptional: No
Call by Reference: No ( called with pass by value option)
EVALUATION_DATE - Report Date (Default = Today's Date)
Data type: BAPI1022_5-EVAL_DATEDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_FIXEDASSET_GETDETAIL
BASIC_DATA - General Data
Data type: BAPI1022_2Optional: No
Call by Reference: No ( called with pass by value option)
ORGANIZATIONAL_DATA - Allocations to Org. Structures and CO Objects
Data type: BAPI1022_3Optional: No
Call by Reference: No ( called with pass by value option)
SPECIAL_CLASSIFICATIONS - Evaluation Groups / Further Assignments
Data type: BAPI1022_4Optional: No
Call by Reference: No ( called with pass by value option)
RETURN - Information about Errors which Occurred
Data type: BAPIRETURNOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_FIXEDASSET_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: | ||||
| lv_basic_data | TYPE BAPI1022_2, " | |||
| lv_companycode | TYPE BAPI1022_1-COMP_CODE, " | |||
| lv_asset | TYPE BAPI1022_1-ASSETMAINO, " | |||
| lv_organizational_data | TYPE BAPI1022_3, " | |||
| lv_subnumber | TYPE BAPI1022_1-ASSETSUBNO, " | |||
| lv_special_classifications | TYPE BAPI1022_4, " | |||
| lv_return | TYPE BAPIRETURN, " | |||
| lv_evaluation_date | TYPE BAPI1022_5-EVAL_DATE. " '00000000' |
|   CALL FUNCTION 'BAPI_FIXEDASSET_GETDETAIL' "Display Detailed Information on a Fixed Asset |
| EXPORTING | ||
| COMPANYCODE | = lv_companycode | |
| ASSET | = lv_asset | |
| SUBNUMBER | = lv_subnumber | |
| EVALUATION_DATE | = lv_evaluation_date | |
| IMPORTING | ||
| BASIC_DATA | = lv_basic_data | |
| ORGANIZATIONAL_DATA | = lv_organizational_data | |
| SPECIAL_CLASSIFICATIONS | = lv_special_classifications | |
| RETURN | = lv_return | |
| . " BAPI_FIXEDASSET_GETDETAIL | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_FIXEDASSET_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 COMP_CODE FROM BAPI1022_1 INTO @DATA(ld_companycode). | ||||
| "SELECT single ASSETMAINO FROM BAPI1022_1 INTO @DATA(ld_asset). | ||||
| "SELECT single ASSETSUBNO FROM BAPI1022_1 INTO @DATA(ld_subnumber). | ||||
| "SELECT single EVAL_DATE FROM BAPI1022_5 INTO @DATA(ld_evaluation_date). | ||||
| DATA(ld_evaluation_date) | = '00000000'. | |||
Search for further information about these or an SAP related objects