webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  SAP BAPI Calls Rollback Issue

    Posted Wed October 11, 2006 03:45 PM

    Hi all,

    My Scenario is

    1. Lock the session(WmSAP/pub.sap.client:lockSession)
    2. Create a BAPI template(WmSAP/pub.sap.bapi:createTemplate)
    3. pass the Input to BAPI (Modify the BAPI XMl returned from step2)
      4)Decode the bapi xml(WmSAP/pub.sap.bapi:decode)
      5)BAPI Outbound call (WmSAP/pub.sap.transport.BAPI:OutboundProcess)
      Synchronous call.
      6)Depending on any errors ; commit (WmSAP/pub.sap.bapi:commit) or Rollback(WmSAP/pub.sap.bapi:rollback)
      7)Release session(WmSAP/pub.sap.client:releaseSession)

    I see that the resulsts are commited as part of the Step5 without any need for explicit commit (step6).

    I want to test the rollback of BAPI; But when i do rollback after step5 The results are not rollbacked…

    Can some one throw light on this issue?

    we want to have multiple BAPI calls in one session and do a commit/rollback on all these.

    Environment:
    IS: 6.5
    wmSAP: 6.5.0 (with WmSAP_6-5-0_Fix3)
    OS: red hat linux

    SAP Server: mySAP 4.6x

    TIA
    PRY


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: SAP BAPI Calls Rollback Issue

    Posted Wed October 11, 2006 04:45 PM

    adding further…

    SAP Version: sap ecc 6.0

    TIA
    PRY


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 3.  RE: SAP BAPI Calls Rollback Issue

    Posted Thu November 09, 2006 09:43 AM

    I guess you are not Tracing in webMethods to check rollback and commit. This does not work when you are tracing.

    Also check whether the BAPI in SAP has been coded to Commit by default

    Hope this helps
    Bhavani Shankar


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards