FI
BAPI
RFC
Used the same way in S/4HANA
BAPI_ASSET_RETIREMENT_POST Post Asset Retirement
Posts an asset retirement (with or without revenue, complete or partial) and creates the related FI/CO documents. It is used for mass scrapping or sales of assets and for interfaces that report disposals from other systems. Fill GENERALPOSTINGDATA and RETIREMENTDATA (amount, quantity or percentage), check RETURN and RETURN_ALL, and call BAPI_TRANSACTION_COMMIT.
- Function group
- AMFA
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| GENERALPOSTINGDATA | BAPIFAPO_GEN_INFO | General posting data | Yes |
| RETIREMENTDATA | BAPIFAPO_RET | Retirement data | — |
| 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 |
|---|---|---|---|
| RETURN_ALL | BAPIRET2 | All return messages | — |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_ASSET_RETIREMENT_POST'
EXPORTING
generalpostingdata = lv_generalpostingdata
IMPORTING
documentreference = lv_documentreference
return = lv_return
TABLES
return_all = lt_return_all.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.