Functionality The parameters CONFIRMATION and CONFIRMATIONCOUNTER are checked to seewhether a confirmation recors exists with this key. If this is not thecase, a corresponding message is returned via the export parameterRETURN. If the confirmation exists, but is assigned to another order type thanproduction order, a message is also returned via RETURN. Example You want to check whether the confirmation "12345" exists with theconfirmation counter "3". Call the method DATA: I_RETURN LIKE BAPIRET1. CALL FUNCTION 'BAPI_PRODORDCONF_EXIST_CHK' EXPORTING CONFIRMATION = 12345 CONFIRMATIONCOUNTER = 3 IMPORTING RETURN = I_RETURN. Description The Return parameter provides information about the followingexceptions:
- The confirmation with the key Confirmation> and
ConfirmationCounter> does not exist.
- The order, for which the confirmation with the key Confirmation>
and ConfirmationCounter> was entered, no longer exists.
- The order, for which the confirmation with the key Confirmation>
and ConfirmationCounter> was entered, is not a productionorder>. The Return> parameter contains all the necessary informationabout the error in detail. This is also prepared in the message textMESSAGE>.Default If none of the above exceptions are detected, the return parameter isreturned with initial values. Description The confirmation number is assigned internally. It is assigned to everyoperation in an order at the point when the operation is created. Ittherefore clearly identifies the operation. If a confirmation is entered for an order, rather than for anoperation, this internal number is not assigned until the firstconfirmation is made. The number is then stored in the order header. The confirmation number and the confirmation counter combine to formthe key for every confirmation record in the table AFRU. Description The confirmation counter is assigned internally and is used todifferentiate between several confirmations for the same operation orthe same order. The last confirmation counter to be assigned is alwaysrecorded in the operation or the order. The confirmation number and the confirmation counter combine to formthe key for every confirmation record in table AFRU.
|