SAP BAPI_FIXEDASSET_GETLIST Function Module for Information on Selected Assets









BAPI_FIXEDASSET_GETLIST is a standard bapi fixedasset getlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Information on Selected Assets 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 getlist FM, simply by entering the name BAPI_FIXEDASSET_GETLIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: 1022
Program Name: SAPL1022
Main Program: SAPL1022
Appliation area: A
Release date: 19-May-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_FIXEDASSET_GETLIST 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_GETLIST'"Information on Selected Assets
EXPORTING
COMPANYCODE = "Company Code
* EVALUATIONDATE = "Report Date (Default = Today's Date)
* DEPRECIATIONAREA = "Depreciation Area for which Information is Requested
* MAXENTRIES = "Maximum Number of Assets to be Returned
* REQUESTEDTABLESX = "Specification of Data to be Returned

IMPORTING
RETURN = "Information about Errors which Occurred

TABLES
* SELECTIONCRITERIA = "Selection Criteria
* REALESTATE = "Real Estate and Similar Rights
* INSURANCE = "Insurance
* LEASING = "Leasing
* DEPRECIATIONAREAS = "Depreciation Areas
* DEPRECIATIONAREAVALS = "Selected Values
* EXTENSIONOUT = "User Fields in Asset Master Record
* INVESTMENT_SUPPORT = "Investment Support Measures
* GENERALDATA = "General Data
* INVENTORY = "Inventory
* POSTINGINFORMATION = "Posting Information
* TIMEDEPENDENTDATA = "Time-Dependent Data
* ALLOCATIONS = "Allocations
* ORIGIN = "Origin
* INVESTACCTASSIGNMNT = "Account Assignment for Investment
* NETWORTHVALUATION = "Net Worth Valuation
.




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_GETLIST

COMPANYCODE - Company Code

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

EVALUATIONDATE - Report Date (Default = Today's Date)

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

DEPRECIATIONAREA - Depreciation Area for which Information is Requested

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

MAXENTRIES - Maximum Number of Assets to be Returned

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

REQUESTEDTABLESX - Specification of Data to be Returned

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

EXPORTING Parameters details for BAPI_FIXEDASSET_GETLIST

RETURN - Information about Errors which Occurred

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

TABLES Parameters details for BAPI_FIXEDASSET_GETLIST

SELECTIONCRITERIA - Selection Criteria

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

REALESTATE - Real Estate and Similar Rights

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

INSURANCE - Insurance

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

LEASING - Leasing

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

DEPRECIATIONAREAS - Depreciation Areas

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

DEPRECIATIONAREAVALS - Selected Values

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

EXTENSIONOUT - User Fields in Asset Master Record

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

INVESTMENT_SUPPORT - Investment Support Measures

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

GENERALDATA - General Data

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

INVENTORY - Inventory

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

POSTINGINFORMATION - Posting Information

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

TIMEDEPENDENTDATA - Time-Dependent Data

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

ALLOCATIONS - Allocations

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

ORIGIN - Origin

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

INVESTACCTASSIGNMNT - Account Assignment for Investment

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

NETWORTHVALUATION - Net Worth Valuation

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

Copy and paste ABAP code example for BAPI_FIXEDASSET_GETLIST 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_return  TYPE BAPIRET2, "   
lv_companycode  TYPE BAPI1022_1-COMP_CODE, "   
lt_selectioncriteria  TYPE STANDARD TABLE OF BAPI1022_SELECTIONCRITERIA, "   
lt_realestate  TYPE STANDARD TABLE OF BAPI1022_FEGLG007_PID, "   
lt_insurance  TYPE STANDARD TABLE OF BAPI1022_FEGLG008_PID, "   
lt_leasing  TYPE STANDARD TABLE OF BAPI1022_FEGLG005_PID, "   
lt_depreciationareas  TYPE STANDARD TABLE OF BAPI1022_DEP_AREAS_PID, "   
lt_depreciationareavals  TYPE STANDARD TABLE OF BAPI1022_VALUES, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_investment_support  TYPE STANDARD TABLE OF BAPI1022_INV_SUPPORT_PID, "   
lt_generaldata  TYPE STANDARD TABLE OF BAPI1022_FEGLG001_PID, "   
lv_evaluationdate  TYPE BAPI1022_5-EVAL_DATE, "   
lt_inventory  TYPE STANDARD TABLE OF BAPI1022_FEGLG011_PID, "   
lv_depreciationarea  TYPE BAPI1022_DEP_AREAS-AREA, "   
lv_maxentries  TYPE BAPI1022_MISC-MAXENTRIES, "   
lt_postinginformation  TYPE STANDARD TABLE OF BAPI1022_FEGLG002_PID, "   
lv_requestedtablesx  TYPE BAPI1022_REQUESTEDTABLESX, "   
lt_timedependentdata  TYPE STANDARD TABLE OF BAPI1022_FEGLG003_PID, "   
lt_allocations  TYPE STANDARD TABLE OF BAPI1022_FEGLG004_PID, "   
lt_origin  TYPE STANDARD TABLE OF BAPI1022_FEGLG009_PID, "   
lt_investacctassignmnt  TYPE STANDARD TABLE OF BAPI1022_FEGLG010_PID, "   
lt_networthvaluation  TYPE STANDARD TABLE OF BAPI1022_FEGLG006_PID. "   

  CALL FUNCTION 'BAPI_FIXEDASSET_GETLIST'  "Information on Selected Assets
    EXPORTING
         COMPANYCODE = lv_companycode
         EVALUATIONDATE = lv_evaluationdate
         DEPRECIATIONAREA = lv_depreciationarea
         MAXENTRIES = lv_maxentries
         REQUESTEDTABLESX = lv_requestedtablesx
    IMPORTING
         RETURN = lv_return
    TABLES
         SELECTIONCRITERIA = lt_selectioncriteria
         REALESTATE = lt_realestate
         INSURANCE = lt_insurance
         LEASING = lt_leasing
         DEPRECIATIONAREAS = lt_depreciationareas
         DEPRECIATIONAREAVALS = lt_depreciationareavals
         EXTENSIONOUT = lt_extensionout
         INVESTMENT_SUPPORT = lt_investment_support
         GENERALDATA = lt_generaldata
         INVENTORY = lt_inventory
         POSTINGINFORMATION = lt_postinginformation
         TIMEDEPENDENTDATA = lt_timedependentdata
         ALLOCATIONS = lt_allocations
         ORIGIN = lt_origin
         INVESTACCTASSIGNMNT = lt_investacctassignmnt
         NETWORTHVALUATION = lt_networthvaluation
. " BAPI_FIXEDASSET_GETLIST




ABAP code using 7.40 inline data declarations to call FM BAPI_FIXEDASSET_GETLIST

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 EVAL_DATE FROM BAPI1022_5 INTO @DATA(ld_evaluationdate).
 
 
"SELECT single AREA FROM BAPI1022_DEP_AREAS INTO @DATA(ld_depreciationarea).
 
"SELECT single MAXENTRIES FROM BAPI1022_MISC INTO @DATA(ld_maxentries).
 
 
 
 
 
 
 
 


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!