SAP BAPI_FIXEDASSET_OVRTAKE_CREATE Function Module for BAPI for Legacy Data Transfer









BAPI_FIXEDASSET_OVRTAKE_CREATE is a standard bapi fixedasset ovrtake 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 BAPI for Legacy Data Transfer 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 ovrtake create FM, simply by entering the name BAPI_FIXEDASSET_OVRTAKE_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: 18-Mar-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_FIXEDASSET_OVRTAKE_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_OVRTAKE_CREATE'"BAPI for Legacy Data Transfer
EXPORTING
KEY = "Key of Asset Being Created
* 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
* REFERENCE = "Reference for Creating Using Reference
* 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
* CREATESUBNUMBER = "Create Asset Subnumber?
* CREATEGROUPASSET = "Indicator: Asset is a group asset
* TESTRUN = ' ' "Test Run
* GENERALDATA = "General Data
* GENERALDATAX = "Change Parameters for General Data
* INVENTORY = "Inventory
* INVENTORYX = "Change Parameters for Inventory

IMPORTING
COMPANYCODE = "Company Code of Asset Created
ASSET = "Main Number of Asset Created
SUBNUMBER = "Subnumber of Created Asset
ASSETCREATED = "Asset Created

TABLES
* DEPRECIATIONAREAS = "Depreciation Areas
* POSTINGHEADERS = "Header Info for Postings During Year - Legacy Data Transfer
* DEPRECIATIONAREASX = "Change Parameters for Depreciation Areas
* INVESTMENT_SUPPORT = "Investment Support Key
* EXTENSIONIN = "Customer Enhancements
* CUMULATEDVALUES = "Cumulative Values
* POSTEDVALUES = "Posted values
* TRANSACTIONS = "Transactions for Transfer during Fiscal Year
* PROPORTIONALVALUES = "Proportional Values on Transactions
* RETURN = "BAPI Return Table
.




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_OVRTAKE_CREATE

KEY - Key of Asset Being Created

Data type: BAPI1022_KEY
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)

REFERENCE - Reference for Creating Using Reference

Data type: BAPI1022_REFERENCE
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)

CREATESUBNUMBER - Create Asset Subnumber?

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

CREATEGROUPASSET - Indicator: Asset is a group asset

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

TESTRUN - Test Run

Data type: BAPI1022_MISC-TESTRUN
Default: SPACE
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_OVRTAKE_CREATE

COMPANYCODE - Company Code of Asset Created

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

ASSET - Main Number of Asset Created

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

SUBNUMBER - Subnumber of Created Asset

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

ASSETCREATED - Asset Created

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

TABLES Parameters details for BAPI_FIXEDASSET_OVRTAKE_CREATE

DEPRECIATIONAREAS - Depreciation Areas

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

POSTINGHEADERS - Header Info for Postings During Year - Legacy Data Transfer

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

DEPRECIATIONAREASX - Change Parameters for Depreciation Areas

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

INVESTMENT_SUPPORT - Investment Support Key

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

EXTENSIONIN - Customer Enhancements

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

CUMULATEDVALUES - Cumulative Values

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

POSTEDVALUES - Posted values

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

TRANSACTIONS - Transactions for Transfer during Fiscal Year

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

PROPORTIONALVALUES - Proportional Values on Transactions

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

RETURN - BAPI Return Table

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

Copy and paste ABAP code example for BAPI_FIXEDASSET_OVRTAKE_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_key  TYPE BAPI1022_KEY, "   
lv_companycode  TYPE BAPI1022_1-COMP_CODE, "   
lt_depreciationareas  TYPE STANDARD TABLE OF BAPI1022_DEP_AREAS, "   
lt_postingheaders  TYPE STANDARD TABLE OF BAPI1022_POSTINGHEADER, "   
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_reference  TYPE BAPI1022_REFERENCE, "   
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, "   
lv_createsubnumber  TYPE BAPI1022_MISC-XSUBNO, "   
lt_investment_support  TYPE STANDARD TABLE OF BAPI1022_INV_SUPPORT, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_assetcreated  TYPE BAPI1022_REFERENCE, "   
lv_creategroupasset  TYPE BAPI1022_MISC-XANLGR, "   
lv_testrun  TYPE BAPI1022_MISC-TESTRUN, "   SPACE
lt_cumulatedvalues  TYPE STANDARD TABLE OF BAPI1022_CUMVAL, "   
lv_generaldata  TYPE BAPI1022_FEGLG001, "   
lt_postedvalues  TYPE STANDARD TABLE OF BAPI1022_POSTVAL, "   
lv_generaldatax  TYPE BAPI1022_FEGLG001X, "   
lt_transactions  TYPE STANDARD TABLE OF BAPI1022_TRTYPE, "   
lv_inventory  TYPE BAPI1022_FEGLG011, "   
lt_proportionalvalues  TYPE STANDARD TABLE OF BAPI1022_PROPVAL, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_inventoryx  TYPE BAPI1022_FEGLG011X. "   

  CALL FUNCTION 'BAPI_FIXEDASSET_OVRTAKE_CREATE'  "BAPI for Legacy Data Transfer
    EXPORTING
         KEY = lv_key
         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
         REFERENCE = lv_reference
         NETWORTHVALUATION = lv_networthvaluation
         NETWORTHVALUATIONX = lv_networthvaluationx
         REALESTATE = lv_realestate
         REALESTATEX = lv_realestatex
         INSURANCE = lv_insurance
         INSURANCEX = lv_insurancex
         LEASING = lv_leasing
         LEASINGX = lv_leasingx
         CREATESUBNUMBER = lv_createsubnumber
         CREATEGROUPASSET = lv_creategroupasset
         TESTRUN = lv_testrun
         GENERALDATA = lv_generaldata
         GENERALDATAX = lv_generaldatax
         INVENTORY = lv_inventory
         INVENTORYX = lv_inventoryx
    IMPORTING
         COMPANYCODE = lv_companycode
         ASSET = lv_asset
         SUBNUMBER = lv_subnumber
         ASSETCREATED = lv_assetcreated
    TABLES
         DEPRECIATIONAREAS = lt_depreciationareas
         POSTINGHEADERS = lt_postingheaders
         DEPRECIATIONAREASX = lt_depreciationareasx
         INVESTMENT_SUPPORT = lt_investment_support
         EXTENSIONIN = lt_extensionin
         CUMULATEDVALUES = lt_cumulatedvalues
         POSTEDVALUES = lt_postedvalues
         TRANSACTIONS = lt_transactions
         PROPORTIONALVALUES = lt_proportionaltalues
         RETURN = lt_return
. " BAPI_FIXEDASSET_OVRTAKE_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_FIXEDASSET_OVRTAKE_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).
 
 
 
 
"SELECT single XANLGR FROM BAPI1022_MISC INTO @DATA(ld_creategroupasset).
 
"SELECT single TESTRUN FROM BAPI1022_MISC INTO @DATA(ld_testrun).
DATA(ld_testrun) = ' '.
 
 
 
 
 
 
 
 
 
 


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!