Ansicht
Dokumentation

BAPI_PRODORDCONF_CREATE_HDR - Enter Order Confirmations

BAPI_PRODORDCONF_CREATE_HDR - Enter Order Confirmations

BAL Application Log Documentation   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to enter order confirmations for production orders.

Goods movements that are posted together with a confirmation can also be passed on. If no goods movements are specified for a confirmation, they are determined according to the standard logic for backflushes and automatic goods receipts relating to a confirmation.

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.
  • AtHdrLevels
The confirmation data is passed on in the AtHdrLevels 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 each entry in the Goodsmovements table. The index in the LinkConfGoodsmov-Index_Confirm field refers to the line of the associated confirmation in the AtHdrLevels 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 AtHdrLevels table. The index in the LinkConfGoodsmov-Index_Confirm field refers to the line of the associated confirmation in the AtHdrLevels 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.
  • 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

ATHDRLEVELS
CHARACTERISTICS_BATCH
DETAIL_RETURN
GOODSMOVEMENTS
LINK_CONF_GOODSMOV
LINK_GM_CHAR_BATCH
NO_DATA_RESET
POST_WRONG_ENTRIES
RETURN
TESTRUN

Exceptions

Function Group

2116

RFUMSV00 - Advance Return for Tax on Sales/Purchases   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 7840 Date: 20240523 Time: 174810     sap01-206 ( 115 ms )