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

BAPI_ROUTING_CREATE Create Routing

Creates a routing with header, material assignment, sequences, operations, component assignments, PRTs and inspection characteristics in one call. It is used in master data migration and in uploads from engineering or PLM systems. Run it first with TESTRUN, link operations to the header through the task list keys, and commit only if RETURN contains no E message.

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

Importing parameters

ParameterTypeDescriptionRequired
TESTRUNBAPIFLAGTest run (no update)—
PROFILEBAPI1012_CONTROL_DATA-PROFILEProfile—
BOMUSAGEBAPI1012_CONTROL_DATA-BOM_USAGEBOM usage—
APPLICATIONBAPI1012_CONTROL_DATA-APPLICATIONBOM application—

Exporting parameters

ParameterTypeDescription
GROUPBAPI1012_TSK_C-TASK_LIST_GROUPTask list group
GROUPCOUNTERBAPI1012_TSK_C-GROUP_COUNTERGroup counter

Tables parameters

ParameterTypeDescriptionRequired
TASKBAPI1012_TSK_CTask list headerYes
MATERIALTASKALLOCATIONBAPI1012_MTK_CMaterial assignment—
SEQUENCEBAPI1012_SEQ_CSequences—
OPERATIONBAPI1012_OPR_COperations—
SUBOPERATIONBAPI1012_SUB_OPR_CSuboperations—
COMPONENTALLOCATIONBAPI1012_COM_CComponent assignments—
PRODUCTIONRESOURCEBAPI1012_PRT_CProduction resource/tool assignments—
INSPCHARACTERISTICBAPI1012_CHA_CInspection characteristics—
TEXTBAPI1012_TXT_CLong text lines—
RETURNBAPIRET2Return messages—

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_ROUTING_CREATE'
  IMPORTING
    group = lv_group
    groupcounter = lv_groupcounter
  TABLES
    task = lt_task
    materialtaskallocation = lt_materialtaskallocation
    sequence = lt_sequence
    operation = lt_operation
    suboperation = lt_suboperation
    componentallocation = lt_componentallocation
    productionresource = lt_productionresource
    inspcharacteristic = lt_inspcharacteristic
    text = lt_text
    return = lt_return.

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