# BAPI_NETWORK_COMP_ADD — Add Material Components to Network

> Adds material components to activities of a network, which creates reservations or purchase requisitions depending on the item category. Project material planning tools and BOM transfer programs use it. 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-add/

## 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_ADD | BAPI_NETWORK_COMP_ADD | Material components to add | Yes |
| E_MESSAGE_TABLE | BAPI_METH_MESSAGE | Message table | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_NETWORK_COMP_ADD'
  EXPORTING
    number = lv_number
  IMPORTING
    return = lv_return
  TABLES
    i_components_add = lt_i_components_add
    e_message_table = lt_e_message_table.
```

## Related tables

RESB

