Fonction SAP BAPI_PRODORDCONF_GET_TE_PROP - Propose Data for Confirmation Time Event

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
PROP_GMOV BAPI_CORU_PARAM-PROP_GMOV C 1 SPACE X Ind.: Propose Goods Movements

Paramètre Reférence Type Long. Description
RETURN BAPIRET1 u 470 Return parameter

Paramètre Reférence Long. Facultatif Description
DETAIL_RETURN BAPI_CORU_RETURN 568 X Return parameter for confirmation table
GOODSMOVEMENTS BAPI2017_GM_ITEM_CREATE 1106 X Table of goods movements
LINK_CONF_GOODSMOV BAPI_LINK_CONF_GOODSMOV 12 X Link table for confirmations/goods movement
TIMEEVENTS BAPI_PP_TIMEEVENT 333 Table of time events

Functionality
You can use this method to prepare default data for time eventsfor operations in production orders.
Along with the confirmation data, those goods movements can also beproposed that are specified according to standard SAP logic on thebasis of the quantity of the operation still to be confirmed forbackflushing and automatic goods receipt.
You must specify for which operations the data is to be proposed in thetable Timeevents.
The operation can be identified either using the confirmation number inthe field

  • Timeevents-Conf_No

  • or by specifying the order, sequence and operation in the fields
    • Timeevents-Orderid,

    • Timeevents-Sequence and

    • Timeevents-Operation.
    • Notes
      Authorization check
      The authorization object C_AFRU_AWK with theactivity 01 (create) and also the order type and plant of theproduction order to be confirmed are checked.
      Parameter

      • PropGmov

      • You can use the parameter PropGmov to specify whether, inaddition to the proposed time event data, goods movements forbackflushing and automatic goods movements are to be proposed for thetime event data, depending on the quantity still to be confirmed.
        • Return

        • If the default data is not provided because of a serious error, theparameter Return contains information concerning the error thathas occurred.
          • Timeevents

          • The table Timeevents serves both as input for the keys for theoperations to be confirmed and also as output for the data still to beconfirmed for the various operations.
            • Goodsmovements

            • If default values were proposed for goods movements for confirmations(see parameter PropGmov) then these are provided in the tableGoodsmovements.
              • LinkConfGoodsmov

              • If default values for goods movements for the confirmation werecalculated, then the table LinkConfGoodsmov links theconfirmation in table Timeevents to the associated goodsmovements in the table Goodsmovements. The index in the fieldLinkConfGoodsmov-Index_Confirm points to the line of therelevant confirmation in the table Timeevents and the index inthe field LinkConfGoodsmov-Index_Goodsmov to the relevant goodsmovement in the table Goodsmovements.
                • DetailReturn

                • The table DetailReturn provides information for every entry inthe table Timeevents as to whether an error arose on proposaland if so, which error.
                  If no error arose for an entry in the table Timeevents then anentry is made with initial data in the table DetailReturn.

                  Description
                  The Return parameter is only used for serious errors that prevent allconfirmations from being processed further. As a rule, this type oferror only occurs if the transferred confirmation data cannot beconverted into the internal structures, because conventions regardingdata definitions have not been adhered to.
                  The Return parameter's structure contains all the necessaryinformation about the error in detail. This is also prepared in themessage text MESSAGE.

                  Default
                  If no serious error is found, the return parameter is returned withinitial values.

                  Description
                  The PropGmov parameter can be used to control whether goodsmovements are to be proposed for backflushing and automaticgoods receipt dependent on the quantity still to be confirmed, inaddition to the proposed time events data.

                  Description
                  The parameter table DetailReturn provides information about anyexception that may occur due to incorrect data, for each time event inthe Timeevents table. An entry is made in the DetailReturn
                  table for each time event in the Timeevents table. Forexample, the third entry in the DetailReturn table shows whetheran exception has arisen for the third time event in the Timeevents
                  table.
                  If no exception is detected, an entry with initial values is providedin the DetailReturn table.

                  Description
                  Automatic goods movements, that is automatic goods receipts andbackflushing of components, are only proposed if thePropGmov parameter is set.
                  The goods movements are then determined on the basis of the quantity tobe confirmed by the confirmation in question.

                  Description
                  Each individual goods movement item is assigned to a time event in theTimeevents table via the parameter tableLinkConfGoodsmov.
                  Assignment occurs via the IndexConfirm and IndexGoodsmovindices. For this process the IndexConfirm index refers to thetime event in the Timeevents parameter table and theIndexGoodsmov index to the goods movement in theGoodsmovements parameter table.

                  Description
                  Table of confirmations, as time events.
                  You can identify the confirmed operation by entering theconfirmation number in the CONF_NO field. Alternatively, you canidentify the operation by entering the order, sequence and operation,and if necessary the sub-operation, in the ORDERID, SEQUENCE
                  , OPERATION and SUB_OPER fields.
                  If an individual capacity is being confirmed, you can identify theindividual capacity with the help of the CAPA_CATEGORY andSPLIT fields, in addition to entering the operation.
                  Each entry in the Timeevents table represents a separate timeevent that is checked and processed in the sequence in which it istransferred.