Ansicht
Dokumentation

MMPUR_ORDCONFRQIN_PO - BAdI: Execute Post Processing After Posting Confirmation

MMPUR_ORDCONFRQIN_PO - BAdI: Execute Post Processing After Posting Confirmation

CPI1466 during Backup   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

The API Order Confirmation – Receive (OrderConfirmationRequest_In) enables you to receive order confirmations from an external supplier system in your SAP S/4HANA buyer system. The supplier confirms the goods or services, their pricing and the delivery schedule. This message can be generated by a sales order in the supplier SAP system, which in turn triggers a message through this web service, confirming the purchase order. Upon receipt of this message, the order confirmation is generated in the SAP S/4HANA system.

This BAdI can be used to generate information messages based on the data returned by this API after posting purchase order confirmation.

Note:

This BAdI does not support return orders.

To create a BAdI implementation, use the transaction SE18 or SE19.

Parameters

Importing Parameters

IS_INBOUND_MESSAGE: Contains ABAP structure of the incoming XML message.

Changing Parameters

IS_BAPIMECONF_HEADER: Contains the purchase order header data for the API.

IS_BAPIMECONF_HEADERX: If this parameter contains ‘X’, it means changes in the purchase order header data are done and confirmed.

IT_BAPIMECONF_ITEM: Contains the purchase order confirmation item data.

IT_BAPIMECONF_ITEMX: If this parameter contains ‘X’, it means changes in the purchase order confirmation item data are done and confirmed.

IT_BAPIMECONF_DETAIL: Contains the purchase order confirmation details.

IT_BAPIMECONF_DETAILX: If this parameter contains ‘X’, it means changes in the purchase order confirmation details data are done and confirmed.

IT_MESSAGES: Use this parameter to raise information messages, see sample implementation below.

* Customer can read and use the data that is updated to PO from importing parameter and change messages as per business need.


  METHOD if_mmpur_ordconfrqin_post_appl~process_post_appl_interface.

* Read the purchase order data.
    SELECT SINGLE * FROM i_purchaseorderapi01 WITH PRIVILEGED ACCESS
    WHERE purchaseorder = @is_inbound_message-order_confirmation-purchase_order_id
    INTO @DATA(ls_po).

    IF ls_po-documentcurrency <> is_bapimeconf_header-currency.
     APPEND VALUE #( type = 'W'
                     id = 'EDI_MM_ORDER_RESP'
                     number = '021'
                     message =  'PO Currency is changed') TO ct_messages.
    ENDIF.
  ENDMETHOD.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Material Data  
This documentation is copyright by SAP AG.

Length: 3268 Date: 20240523 Time: 221412     sap01-206 ( 49 ms )