# BAPI_OBJCL_DELETE — Classification: Delete Object Assignment

> Removes the assignment of an object to a class together with its characteristic values. It is used to clean up wrong classifications or before re-assigning objects to another class in migration programs. Check RETURN and call BAPI_TRANSACTION_COMMIT; with a change number the deletion is recorded with change history.

- Modules: CA
- Type: BAPI
- Function group: CLBPA
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-objcl-delete/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| OBJECTKEY | BAPI1003_KEY-OBJECT | Object key (concatenated) | - |
| OBJECTTABLE | BAPI1003_KEY-OBJECTTABLE | Object table | Yes |
| CLASSNUM | BAPI1003_KEY-CLASSNUM | Class | Yes |
| CLASSTYPE | BAPI1003_KEY-CLASSTYPE | Class type | Yes |
| CHANGENUMBER | BAPI1003_KEY-CHANGENUMBER | Change number | - |
| KEYDATE | BAPI1003_KEY-KEYDATE | Key date | - |
| OBJECTKEY_LONG | BAPI1003_KEY-OBJECT_LONG | Object key (long form) | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| RETURN | BAPIRET2 | Return messages | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_OBJCL_DELETE'
  EXPORTING
    objecttable = lv_objecttable
    classnum = lv_classnum
    classtype = lv_classtype
  TABLES
    return = lt_return.
```

## Related tables

AUSP, KSSK

