SAP BAPI_FIXEDASSET_CREATE Function Module for Creates an Asset









BAPI_FIXEDASSET_CREATE is a standard bapi fixedasset create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Creates an 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 create FM, simply by entering the name BAPI_FIXEDASSET_CREATE 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_CREATE 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_CREATE'"Creates an Asset
EXPORTING
COMPANYCODE = "Company Code
* POSTINGINFORMATION = "Posting information
* POSTINGINFORMATIONX = "Change Parameters for Posting Information
* TIMEDEPENDENTDATA = "Time-Dependent Data
* TIMEDEPENDENTDATAX = "Change Parameters for Time-Dependent Data
* ALLOCATIONS = "Allocations
* ALLOCATIONSX = "Change Parameters for Allocations
* ORIGIN = "Origin
* ORIGINX = "Change Parameters for Origin
* INVESTACCTASSIGNMNT = "Account Assignment for Investment
* INVESTACCTASSIGNMNTX = "Change Parameters for Investment Account Assignments
* ASSET = "Main Asset Number
* NETWORTHVALUATION = "Net Worth Valuation
* NETWORTHVALUATIONX = "Change Parameters for Net Worth Valuation
* REALESTATE = "Real Estate and Similar Rights
* REALESTATEX = "Change Parameters for Real Estate
* INSURANCE = "Insurance
* INSURANCEX = "Change Parameters for Insurance
* LEASING = "Leasing
* LEASINGX = "Change Parameters for Leasing
* SUBNUMBER = "Asset Subnumber
* REFERENCE = "Reference for Creating Using Reference
* CREATESUBNUMBER = "Create Asset Subnumber?
* GENERALDATA = "General Data
* GENERALDATAX = "Change Parameters for General Data
* INVENTORY = "Inventory
* INVENTORYX = "Change Parameters for Inventory

IMPORTING
ASSETCREATED = "Asset Created
RETURN = "Information about Errors which Occurred

TABLES
* DEPRECIATIONAREAS = "Depreciation Areas
* DEPRECIATIONAREASX = "Change Parameters for Depreciation Areas
* EXTENSIONIN = "Customer Enhancements
.




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_CREATE

COMPANYCODE - Company Code

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

POSTINGINFORMATION - Posting information

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

POSTINGINFORMATIONX - Change Parameters for Posting Information

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

TIMEDEPENDENTDATA - Time-Dependent Data

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

TIMEDEPENDENTDATAX - Change Parameters for Time-Dependent Data

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

ALLOCATIONS - Allocations

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

ALLOCATIONSX - Change Parameters for Allocations

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

ORIGIN - Origin

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

ORIGINX - Change Parameters for Origin

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

INVESTACCTASSIGNMNT - Account Assignment for Investment

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

INVESTACCTASSIGNMNTX - Change Parameters for Investment Account Assignments

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

ASSET - Main Asset Number

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

NETWORTHVALUATION - Net Worth Valuation

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

NETWORTHVALUATIONX - Change Parameters for Net Worth Valuation

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

REALESTATE - Real Estate and Similar Rights

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

REALESTATEX - Change Parameters for Real Estate

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

INSURANCE - Insurance

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

INSURANCEX - Change Parameters for Insurance

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

LEASING - Leasing

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

LEASINGX - Change Parameters for Leasing

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

SUBNUMBER - Asset Subnumber

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

REFERENCE - Reference for Creating Using Reference

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

CREATESUBNUMBER - Create Asset Subnumber?

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

GENERALDATA - General Data

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

GENERALDATAX - Change Parameters for General Data

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

INVENTORY - Inventory

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

INVENTORYX - Change Parameters for Inventory

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

EXPORTING Parameters details for BAPI_FIXEDASSET_CREATE

ASSETCREATED - Asset Created

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

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_CREATE

DEPRECIATIONAREAS - Depreciation Areas

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

DEPRECIATIONAREASX - Change Parameters for Depreciation Areas

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

EXTENSIONIN - Customer Enhancements

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

Copy and paste ABAP code example for BAPI_FIXEDASSET_CREATE 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_companycode  TYPE BAPI1022_1-COMP_CODE, "   
lv_assetcreated  TYPE BAPI1022_REFERENCE, "   
lt_depreciationareas  TYPE STANDARD TABLE OF BAPI1022_DEP_AREAS, "   
lv_postinginformation  TYPE BAPI1022_FEGLG002, "   
lv_postinginformationx  TYPE BAPI1022_FEGLG002X, "   
lv_timedependentdata  TYPE BAPI1022_FEGLG003, "   
lv_timedependentdatax  TYPE BAPI1022_FEGLG003X, "   
lv_allocations  TYPE BAPI1022_FEGLG004, "   
lv_allocationsx  TYPE BAPI1022_FEGLG004X, "   
lv_origin  TYPE BAPI1022_FEGLG009, "   
lv_originx  TYPE BAPI1022_FEGLG009X, "   
lv_investacctassignmnt  TYPE BAPI1022_FEGLG010, "   
lv_investacctassignmntx  TYPE BAPI1022_FEGLG010X, "   
lv_asset  TYPE BAPI1022_1-ASSETMAINO, "   
lv_return  TYPE BAPIRET2, "   
lt_depreciationareasx  TYPE STANDARD TABLE OF BAPI1022_DEP_AREASX, "   
lv_networthvaluation  TYPE BAPI1022_FEGLG006, "   
lv_networthvaluationx  TYPE BAPI1022_FEGLG006X, "   
lv_realestate  TYPE BAPI1022_FEGLG007, "   
lv_realestatex  TYPE BAPI1022_FEGLG007X, "   
lv_insurance  TYPE BAPI1022_FEGLG008, "   
lv_insurancex  TYPE BAPI1022_FEGLG008X, "   
lv_leasing  TYPE BAPI1022_FEGLG005, "   
lv_leasingx  TYPE BAPI1022_FEGLG005X, "   
lv_subnumber  TYPE BAPI1022_1-ASSETSUBNO, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_reference  TYPE BAPI1022_REFERENCE, "   
lv_createsubnumber  TYPE BAPI1022_MISC-XSUBNO, "   
lv_generaldata  TYPE BAPI1022_FEGLG001, "   
lv_generaldatax  TYPE BAPI1022_FEGLG001X, "   
lv_inventory  TYPE BAPI1022_FEGLG011, "   
lv_inventoryx  TYPE BAPI1022_FEGLG011X. "   

  CALL FUNCTION 'BAPI_FIXEDASSET_CREATE'  "Creates an Asset
    EXPORTING
         COMPANYCODE = lv_companycode
         POSTINGINFORMATION = lv_postinginformation
         POSTINGINFORMATIONX = lv_postinginformationx
         TIMEDEPENDENTDATA = lv_timedependentdata
         TIMEDEPENDENTDATAX = lv_timedependentdatax
         ALLOCATIONS = lv_allocations
         ALLOCATIONSX = lv_allocationsx
         ORIGIN = lv_origin
         ORIGINX = lv_originx
         INVESTACCTASSIGNMNT = lv_investacctassignmnt
         INVESTACCTASSIGNMNTX = lv_investacctassignmntx
         ASSET = lv_asset
         NETWORTHVALUATION = lv_networthvaluation
         NETWORTHVALUATIONX = lv_networthvaluationx
         REALESTATE = lv_realestate
         REALESTATEX = lv_realestatex
         INSURANCE = lv_insurance
         INSURANCEX = lv_insurancex
         LEASING = lv_leasing
         LEASINGX = lv_leasingx
         SUBNUMBER = lv_subnumber
         REFERENCE = lv_reference
         CREATESUBNUMBER = lv_createsubnumber
         GENERALDATA = lv_generaldata
         GENERALDATAX = lv_generaldatax
         INVENTORY = lv_inventory
         INVENTORYX = lv_inventoryx
    IMPORTING
         ASSETCREATED = lv_assetcreated
         RETURN = lv_return
    TABLES
         DEPRECIATIONAREAS = lt_depreciationareas
         DEPRECIATIONAREASX = lt_depreciationareasx
         EXTENSIONIN = lt_extensionin
. " BAPI_FIXEDASSET_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_FIXEDASSET_CREATE

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 XSUBNO FROM BAPI1022_MISC INTO @DATA(ld_createsubnumber).
 
 
 
 
 


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!