# BAPI_NETWORK_COMP_REMOVE — Remove Network Material Components

> Removes material components from network activities. It is used when project material demand is cancelled or replaced by an external planning system. Check RETURN and E_MESSAGE_TABLE and call BAPI_TRANSACTION_COMMIT.

- Modules: PS
- Type: BAPI
- Function group: CNIF_MAT
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-network-comp-remove/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI_NETWORK_LIST-NETWORK | Network number | Yes |

## Exporting parameters

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

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| I_COMPONENTS_REMOVE | BAPI_NETWORK_COMP_ID | Material components to remove | Yes |
| E_MESSAGE_TABLE | BAPI_METH_MESSAGE | Message table | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_NETWORK_COMP_REMOVE'
  EXPORTING
    number = lv_number
  IMPORTING
    return = lv_return
  TABLES
    i_components_remove = lt_i_components_remove
    e_message_table = lt_e_message_table.
```

## Related tables

RESB

