PM BAPI RFC Used the same way in S/4HANA

BAPI_FUNCLOC_CREATE Create Functional Location

Creates a functional location from its label (EXTERNAL_NUMBER) with general and location-specific data. It is used to build plant structures during migration, usually top-down so that superior locations exist first. The label must fit the structure indicator; check RETURN and call BAPI_TRANSACTION_COMMIT.

Function group
ITOB_BAPI_FL
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
EXTERNAL_NUMBERBAPI_ITOB_PARMS-FUNCLOCFunctional location labelYes
LABELING_SYSTEMBAPI_ITOB_PARMS-LABEL_SYSTLabeling system—
DATA_GENERALBAPI_ITOBGeneral dataYes
DATA_SPECIFICBAPI_ITOB_FL_ONLYFunctional location-specific dataYes
AUTOMATIC_INSTALLBAPIFLAG-BAPIFLAGInstall automatically in superior location—

Exporting parameters

ParameterTypeDescription
FUNCTLOCATIONBAPI_ITOB_PARMS-FUNCLOC_INTCreated functional location (internal number)
DATA_GENERAL_EXPBAPI_ITOBGeneral data (result)
DATA_SPECIFIC_EXPBAPI_ITOB_FL_ONLYSpecific data (result)
RETURNBAPIRET2Return message

Tables parameters

ParameterTypeDescriptionRequired
EXTENSIONINBAPIPAREXCustomer extension (input)—
EXTENSIONOUTBAPIPAREXCustomer extension (output)—

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_FUNCLOC_CREATE'
  EXPORTING
    external_number = lv_external_number
    data_general = lv_data_general
    data_specific = lv_data_specific
  IMPORTING
    functlocation = lv_functlocation
    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

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.

Request a custom report