BAPI For Legacy Data Transfer

Hello Dear folks, If you are looking for BAPI of Legacy Data Transfer | BAPI for Legacy Data Transfer | BAPI Legacy Data Transfer Tutorial Step by Step in SAP ABAP | List of BAPIs for Legacy Data Transfer | What is the BAPI to Legacy Data Transfer then you will get all the details here in this blog post.

The BAPI_FIXEDASSET_OVRTAKE_CREATE BAPI is a specialized function module in SAP Asset Accounting that handles asset takeover scenarios during corporate acquisitions, mergers, or reorganizations. This BAPI enables:

  • Recording of existing assets from acquired entities
  • Proper valuation of taken-over assets
  • Depreciation calculation from takeover date
  • Integration with acquisition accounting processes

Key Features of BAPI_FIXEDASSET_OVRTAKE_CREATE

✔ Create asset master records for taken-over assets
✔ Maintain original acquisition values and dates
✔ Set up proper depreciation calculations
✔ Handle different valuation approaches (fair value, book value)
✔ Comprehensive error handling capabilities

Technical Structure of BAPI_FIXEDASSET_OVRTAKE_CREATE

Key Import Parameters

ParameterTypeDescription
COMPANYCODECHAR(4)Target company code
ASSETCLASSCHAR(6)Asset class for new asset
KEYDATEDATSTakeover effective date

Key Table Parameters

ParameterStructurePurpose
GENERALDATABAPI1022_FA_OVRTAKEGeneral takeover data
ORIGINDATABAPI1022_FA_ORIGINOriginal acquisition data
DEPRECIATIONBAPI1022_FA_DEP_AREADepreciation area setup
RETURNBAPIRET2Return messages

ABAP BAPI_FIXEDASSET_OVRTAKE_CREATE Implementation Examples

REPORT ZCREATE_ASSET_OVERTAKE.

DATA:
  ls_general    TYPE bapi1022_fa_ovrtake,
  ls_origin     TYPE bapi1022_fa_origin,
  lt_depreciation TYPE TABLE OF bapi1022_fa_dep_area,
  ls_depreciation LIKE LINE OF lt_depreciation,
  lt_return     TYPE TABLE OF bapiret2,
  lv_asset      TYPE bapi1022_fa-asset.

* Set takeover general data
ls_general = VALUE #(
  comp_code  = '3000'         "Target company code
  assetclass = 'BUILDING'     "Asset class
  descript   = 'Acquired HQ Building'
  costcenter = 'ADMIN300'
  takeover_date = '20230101'  "Takeover effective date
).

* Set original acquisition data
ls_origin = VALUE #(
  acq_date   = '20150101'     "Original acquisition date
  acq_value  = '5000000.00'   "Original acquisition value
  currency   = 'USD'
  vendor     = 'ACME_CORP'    "Original vendor
  acq_docno  = 'INV-2015-0456'
).

* Set up depreciation area 01 (Book)
ls_depreciation = VALUE #(
  area        = '01'
  dep_key     = 'STD1'
  useful_life = 300           "25 years remaining
  book_value  = '3500000.00'  "Current book value
).
APPEND ls_depreciation TO lt_depreciation.

* Execute takeover BAPI
CALL FUNCTION 'BAPI_FIXEDASSET_OVRTAKE_CREATE'
  EXPORTING
    companycode = ls_general-comp_code
    assetclass  = ls_general-assetclass
    keydate     = ls_general-takeover_date
    generaldata = ls_general
    origindata  = ls_origin
  IMPORTING
    asset       = lv_asset
  TABLES
    depreciation = lt_depreciation
    return      = lt_return.

* Commit if no errors
READ TABLE lt_return WITH KEY type = 'E' TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait = 'X'.
  WRITE: / 'Asset takeover created. New asset number:', lv_asset.
ELSE.
  CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
  WRITE: / 'Errors during asset takeover:'.
  LOOP AT lt_return WHERE type CA 'EA'.
    WRITE: / return-message.
  ENDLOOP.
ENDIF.

Common Use Cases

  1. Merger & Acquisition Integration
    • Recording acquired company assets
    • Proper valuation of purchased assets
    • Setting up depreciation schedules
  2. Corporate Reorganizations
    • Asset transfers between legal entities
    • Spin-off company asset accounting
    • Joint venture asset contributions
  3. International Accounting
    • Handling different valuation approaches
    • Managing foreign currency assets
    • Complying with local accounting standards

Error Handling

Common issues include:

  • Missing mandatory fields (complete all required data)
  • Invalid depreciation keys (verify configuration)
  • Currency inconsistencies (match valuation currencies)
  • Authorization failures (check AA transaction permissions)

BAPI_FIXEDASSET_OVRTAKE_CREATE provides a robust solution for asset takeover scenarios in SAP. When implemented correctly, it enables:

  • Accurate recording of acquired assets
  • Proper depreciation setup
  • Flexible valuation approaches
  • Compliance with accounting standards

For complete asset takeover solutions, combine with:

  • BAPI_FIXEDASSET_GETDETAIL for verification
  • BAPI_FIXEDASSET_CHANGE for subsequent adjustments
  • BAPI_ACC_DOCUMENT_POST for acquisition accounting entries

Leave a Comment