# BAPI_FUNCLOC_CHANGE — Change Functional Location

> Changes the master data of an existing functional location. Fill DATA_GENERALX and DATA_SPECIFICX for every field you want to change. Pass the internal number in FUNCTLOCATION (convert the label with conversion exit TPLNR if needed) and commit with BAPI_TRANSACTION_COMMIT.

- Modules: PM
- Type: BAPI
- Function group: ITOB_BAPI_FL
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-funcloc-change/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| FUNCTLOCATION | BAPI_ITOB_PARMS-FUNCLOC_INT | Functional location (internal number) | Yes |
| DATA_GENERAL | BAPI_ITOB | General data | Yes |
| DATA_GENERALX | BAPI_ITOBX | General data change flags | Yes |
| DATA_SPECIFIC | BAPI_ITOB_FL_ONLY | Functional location-specific data | Yes |
| DATA_SPECIFICX | BAPI_ITOB_FL_ONLYX | Specific data change flags | Yes |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| DATA_GENERAL_EXP | BAPI_ITOB | General data (result) |
| DATA_SPECIFIC_EXP | BAPI_ITOB_FL_ONLY | Specific data (result) |
| RETURN | BAPIRET2 | Return message |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| EXTENSIONIN | BAPIPAREX | Customer extension (input) | - |
| EXTENSIONOUT | BAPIPAREX | Customer extension (output) | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_FUNCLOC_CHANGE'
  EXPORTING
    functlocation = lv_functlocation
    data_general = lv_data_general
    data_generalx = lv_data_generalx
    data_specific = lv_data_specific
    data_specificx = lv_data_specificx
  IMPORTING
    data_general_exp = lv_data_general_exp
    data_specific_exp = lv_data_specific_exp
    return = lv_return
  TABLES
    extensionin = lt_extensionin
    extensionout = lt_extensionout.
```

## Related tables

IFLOT, IFLOTX, ILOA

