none
SAP ECC Connector - BAPI Commit not working RRS feed

  • Question

  • Hi,

    Am trying to call BAPI "BAPI_SALESORDER_CREATEFROMDAT2" to create sales order in SAP ECC instance with the data gateway. Once the salesOrder created, am sending "BAPI_TRANSACTION_COMMIT" to commit the sales order. But we are not seeing this Sales order got commited in SAP, and am not seeing any error on commit transaction response. Following are the Commit request and response messages.

    BAPI_TRANSACTION_COMMIT request:

    <ns0:BAPI_TRANSACTION_COMMIT xmlns:ns0="http://Microsoft.LobServices.Sap/2007/03/Rfc/" xmlns:ns3="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"><ns0:WAIT>X</ns0:WAIT></ns0:BAPI_TRANSACTION_COMMIT>

    BAPI_TRANSACTION_COMMIT Response:

    <BAPI_TRANSACTION_COMMITResponse xmlns="http://Microsoft.LobServices.Sap/2007/03/Rfc/">
      <RETURN>
        <TYPE xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></TYPE>
        <ID xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></ID>
        <NUMBER xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">0</NUMBER>
        <MESSAGE xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></MESSAGE>
        <LOG_NO xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></LOG_NO>
        <LOG_MSG_NO xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">0</LOG_MSG_NO>
        <MESSAGE_V1 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></MESSAGE_V1>
        <MESSAGE_V2 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></MESSAGE_V2>
        <MESSAGE_V3 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></MESSAGE_V3>
        <MESSAGE_V4 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></MESSAGE_V4>
        <PARAMETER xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></PARAMETER>
        <ROW xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">0</ROW>
        <FIELD xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></FIELD>
        <SYSTEM xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/"></SYSTEM>
      </RETURN>
    </BAPI_TRANSACTION_COMMITResponse>

    Thanks,

    Praveen



    Praveen

    Monday, February 18, 2019 5:17 PM

All replies

  • From the Document:

    "Only a single Send to SAP call or message works with tRFC. The Business Application Programming Interface (BAPI) commit pattern, such as making multiple tRFC calls in the same session, isn't supported."

    See if you are hitting with the same limitation.

    Tuesday, February 19, 2019 5:22 AM
    Moderator
  • Hello Praveen,

    Do you have any update on this?

    Monday, February 25, 2019 5:28 AM
    Moderator
  • Hello Praveen,

    BAPI Commit, rollback, enqueue/dequeue and stateful sessions are now in public preview for the Azure Logic Apps SAP connector. Give it a try!

    With regards,

    David.


    Senior Soft. Dev. Eng. | Microsoft IT | Microsoft Corporation

    Monday, August 5, 2019 6:04 PM