# BAPI_PRODORDCONF_CREATE_TT — Enter Production Order Confirmation (Time Ticket)

> Posts operation confirmations for production orders as time tickets, with yield, scrap, activities and optional goods movements, like CO11N. It is the usual choice for MES, terminal and Excel upload interfaces that report shop-floor progress. RETURN is a single BAPIRET1 structure, so also check DETAIL_RETURN line by line and call BAPI_TRANSACTION_COMMIT after a successful call.

- Modules: PP
- Type: BAPI
- Function group: 2116
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-prodordconf-create-tt/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| POST_WRONG_ENTRIES | BAPI_CORU_PARAM-INS_ERR | Post incorrect entries to error pool | - |
| TESTRUN | BAPI_CORU_PARAM-TESTRUN | Test run (no update) | - |

## Exporting parameters

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

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| DETAIL_RETURN | BAPI_CORU_RETURN | Detailed return messages per object | - |
| GOODSMOVEMENTS | BAPI2017_GM_ITEM_CREATE | Goods movements | - |
| LINK_CONF_GOODSMOV | BAPI_LINK_CONF_GOODSMOV | Link between confirmation and goods movement | - |
| TIMETICKETS | BAPI_PP_TIMETICKET | Time ticket confirmations | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
  IMPORTING
    return = lv_return
  TABLES
    detail_return = lt_detail_return
    goodsmovements = lt_goodsmovements
    link_conf_goodsmov = lt_link_conf_goodsmov
    timetickets = lt_timetickets.
```

## Related tables

AFKO, AFRU, AFVV, MSEG

