Ansicht
Dokumentation

BAPI_PRODORDCONF_CREATE_TT - Enter Confirmation Time Ticket

BAPI_PRODORDCONF_CREATE_TT - Enter Confirmation Time Ticket

BAL Application Log Documentation   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to enter confirmation time tickets for operations in production orders.

Goods movements that are posted together with a confirmation can also be passed on. If no goods movements have been specified for a confirmation, they are determined using the standard logic for backflushing and automatic goods receipt for confirmations.

Creation of a WIP batch

During the entry of a confirmation, you can additionally create a WIP batch. This functionality is available as of Enhancement Package 4 for ERP2005. To be able to use the functionality, you must activate the Business Function LOG_PP_WIP_BATCH. In addition, you must activate the WIP batch in Customizing under Logistics General → Batch Management → WIP Batches → Activate WIP Batch.

To create a WIP batch with a confirmation, you must specify a batch number in the WIP_BATCH field of the table TIMETICKETS. The WIP batch specified must not yet exist - it is created when the confirmation is posted.

If internal number assignment is to be used for the batches, you must enter the * sign (asterisk) in the WIP_BATCH field instead of a batch number.

Classification of batches

You can not only create a batch for goods receipt items that are passed on but also classify it. Use the table CHARACTERISTICS_BATCH for the characteristics and their values, as well as the table LINK_GM_CHAR_BATCH for the assignment of the characteristic values to a goods receipt item that is subject to a batch management requirement. In the case of already existing batches, you thus also have the option of changing previously entered characteristic values.

Example

Notes

Authorization check

The authorization object C_AFRU_AWK with the activity 01 (Create), the order type, and the work of the production order to be confirmed is checked.

Parameters

  • PostWrongEntries
You can use the PostWrongEntries parameter to control whether in an exception situation (incorrect data/locked objects) the confirmations to be entered are nevertheless accepted by the SAP system and included in the error pool.
Exception situations for a confirmation are logged in the parameter table DetailReturn.
The following instances of the PostWrongEntries parameter are possible:
  • " ": Confirmations in which no exception situation occurred are posted. All other confirmations are rejected and not included in the error pool.

  • "1": Confirmations in which no exception situation occurred are posted. All confirmations with incorrect data are included in the error pool. On the other hand, confirmations that could not be posted due a lock situation are not processed. That is to say, such confirmations are not included in the error pool.

  • "2": Confirmations in which no exception situation occurred are posted. All confirmations in respect of which faulty data or lock situations were detected are included in the error pool.

  • Testrun
You can use the Testrun parameter to specify that the data passed on is only checked for correctness. Locking of objects such as Order and Reservation or the updating of databases does not take place in this mode.
You set the value "X" to activate the Testrun mode.
  • Return
If confirmations could not be processed due to a major error, you receive information about the error in the Return parameter.
  • Timetickets
The data of the confirmation time tickets is passed on in the Timetickets table.
  • Goodsmovements
If goods movements that differ from the standard logic are to be posted, they can be passed on in the Goodsmovements table.
  • LinkConfGoodsmov
The assignment of the goods movements to a confirmation is effected via the LinkConfGoodsmov table. There must be an entry in this table for every entry in the Goodsmovements table. The index in the LinkConfGoodsmov-Index_Confirm field refers to the line of the associated confirmation in the Timetickets table and the index in the LinkConfGoodsmov-Index_Goodsmov field refers the associated goods movement in the Goodsmovements table.
If you want to prevent a goods movement from being posted for a confirmation according to the standard logic, make an entry in the LinkConfGoodsmov table as well as in the Timetickets table. The index in the LinkConfGoodsmov-Index_Confirm field refers to the line of the associated confirmation in the Timetickets table. Enter the initial value 0 in the LinkConfGoodsmov-Index_Goodsmov field. It is not necessary to make an entry in the Goodsmovements table in this case.
If there is no entry in the LinkConfGoodsmov table for a confirmation, goods movements are determined for backflushing and automatic goods receipt using the standard logic.
  • CharacteristicsWIPBatch
Table of characteristics of a WIP batch that is to be created
In the CHAR_NAME field, you have to specify the characteristic name, and in the CHAR_VALUE field the associated characteristic value.
The characteristic name passed on must be defined in the class of the material to be classified. The technical name of the characteristic must be specified, not the short description of the characteristic.
If a characteristic name that is passed on is not defined in the class of the material, the system ignores the table entry. No error message is issued.
If a mandatory characteristic is not valuated, the WIP batch is created neverthe less. In this case the classification of the WIP batch acquires the status Incomplete.
  • LinkConfCharWIPBatch
The assignment of each individual characteristic valuation for a WIP batch is effected via the parameter table LinkConfCharWIPBatch. Characteristic valuations that are not assigned to any WIP batch are not taken into consideration.
Assignment is carried out using the indexes IndexConfirm and IndexCharWIPBatch. In the process, the index IndexConfirm must reference the entry in the parameter table Timetickets and the index IndexCharWIPBatch the entry in the parameter table CharacteristicsWIPBatch.
As a rule, therefore, the number of entries in the LinkConfCharWIPBatch table corresponds to the number in the CharacteristicsWIPBatch table.
  • DetailReturn
The DetailReturn table provides information for each confirmation to be entered regarding whether the the confirmation was entered successfully, whether entry was prevented due to a lock conflict, and/or which error occurred.
  • If it was possible to enter the confirmation successfully, the key for the confirmation generated is logged in the DetailReturn-Conf_No aund DetailReturn-Conf_Cnt fields.

  • In the case of a lock conflict, the DetailReturn-Flg_Locked indicator is set.

  • If faulty confirmation data is detected, the associated error message is issued in the relevant fields of the DetailReturn table.

Further information





Parameters

CALL_ON_INBOUND_QUEUE
CHARACTERISTICS_BATCH
CHARACTERISTICS_WIPBATCH
DETAIL_RETURN
GOODSMOVEMENTS
LINK_CONF_CHAR_WIPBATCH
LINK_CONF_GOODSMOV
LINK_GM_CHAR_BATCH
POST_WRONG_ENTRIES
RETURN
TESTRUN
TIMETICKETS

Exceptions

Function Group

2116

ROGBILLS - Synchronize billing plans   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 11361 Date: 20240523 Time: 161502     sap01-206 ( 139 ms )