# BAPI_ASSET_ACQUISITION_POST — Post Asset Acquisition

> Posts an asset acquisition (for example external acquisition with offsetting entry), creating the asset line items and the related FI/CO documents. It is used in legacy-data transfers of acquisitions during the year and in interfaces from investment or procurement systems. Fill GENERALPOSTINGDATA and ACQUISITIONDATA, check RETURN and RETURN_ALL, and call BAPI_TRANSACTION_COMMIT.

- Modules: FI
- Type: BAPI
- Function group: AMFA
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-asset-acquisition-post/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| GENERALPOSTINGDATA | BAPIFAPO_GEN_INFO | General posting data | Yes |
| ACQUISITIONDATA | BAPIFAPO_ACQ | Acquisition data | Yes |
| FURTHERPOSTINGDATA | BAPIFAPO_ADD_INFO | Additional posting data | - |
| ACCOUNTASSIGNMENTS | BAPIFAPO_ACC_ASS | Additional account assignments | - |
| ORIGINDOCREFERENCE | BAPIFAPO_DOC_REF | Reference to original document | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| DOCUMENTREFERENCE | BAPIFAPO_DOC_REF | Reference to the created FI/CO documents |
| RETURN | BAPIRET2 | Result message |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| PROPAREAVALUES | BAPIFAPO_AREAVALUES_PROP | Proportional values per depreciation area | - |
| RETURN_ALL | BAPIRET2 | All return messages | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_ASSET_ACQUISITION_POST'
  EXPORTING
    generalpostingdata = lv_generalpostingdata
    acquisitiondata = lv_acquisitiondata
  IMPORTING
    documentreference = lv_documentreference
    return = lv_return
  TABLES
    propareavalues = lt_propareavalues
    return_all = lt_return_all.
```

## Related tables

ANEP, ANLA, BKPF

