Handling Transport ack. in Abap Proxy to JDBC Scanario

HI all
I have a scanario  where i have message which is being sent from an abap proxy to a SQL Server database using JDBC adapter. The scenario involves a BPM.While sending the message the message shows delivered in MDT (Message monitor for Adapter  ) but the Business process is still executing and is waiting for the acknowledgement(transport) . Can anyone please tell me how do find where the exact prblem lies.And how do i delete these acknowledgements. Even though i deleted the work items  the Ack Status column still shows "Still Awaiting Acknowledgement"
regards
Nilesh Taunk

Hi,
As metioned check the Send Step Properties ( mode etc)..
After changing activate the BPM and refersh the cache in SXI_CACHE and test the scenario.
also check the BPM technical details. For this go to SXMB_MONI>PE>Technical Details so that you can find the logs in the monitor.
Regards,
Moorthy

Similar Messages

  • ABAP Proxy to JDBC syncronous method

    Hi Experts,
    I am very new to ABAP Proxy to JDBC syncronous method.
    I have used 4 DT, 4 MT, 2 MI, 2 MM and 1 IM.
    I have used reference from
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3928. [original link is broken] [original link is broken]
    My question is in Integration Directory how many sender agrement, receiver agrement, receiver determination and interface determination should i use?
    Is my above DT , MT , MI , MM and IM is correct?
    I am not using any BPM.
    Thank you in advanced.
    regards,
    S.Saravannan

    mrsaravannan wrote:
    > My question is in Integration Directory how many sender agrement, receiver agrement, receiver determination and interface determination should i use?
    for a Sync sceanrio, you will create
    1 RD
    1 ID
    1 SA (since its a ABAP proxy call this is optional)
    1 RA
    >
    > Is my above DT , MT , MI , MM and IM is correct?
    Yes

  • Using of Integration Scenario in a Abap Proxy to JDBC receiver synchronous

    Hi ,
    Can any one help me out  how to go about for creating Integraion scenario in ESR as i'm new to the use of Integration scenario..
    its an Abap proxy to Jdbc synchronous scenario... kindly help in this regards.

    Hi Indudhar,
    Right click on the namespace where you want to create the IS and say new, Select process integration scenario option, give a suitable name and say OK.
    In the Component View section right click on the first grey column and Insert a sender Application component. Enter ur product and the software component version. Like wise in the next grey column enter the target Application component.
    Now go to the top level menu and click on view and select grid.
    Now right click on each App. component and insert the created actions. If the scenario is sync then the actions will be side by side otherwise the target one will be in the next grid of the target app. component.
    After entering the actions click on the source action then press shift and click on the target action, right click and choose create connection between the two actions.
    Fill in the info and then save.
    Regards,
    Anshul

  • Abap proxy to JDBC call

    The scenario is Sender is ABAP proxy and receiver side is JDBC adapter.
    While creating Purchase order(PO) in SAP, interface should be triggered and it should go and fetch the tax amount from a external Database(DB) and return the tax amount to SAP.
    PO can have mulitple line items so for each item it should get the tax amount from DB.
    I know we can change the occurence of Statement tag of JDBC structure to unbounded and accomplish multiple stored procedure calls.
    But how to handle multiple response from DB for each line item and send it as a single message to SAP.
    Is this possible without BPM ?

    For every purchase order there are mulitple line items and for each line item we need to extract tax amount.
    Question: Are these line items are in single db table or different? If it is one table, Why dont you use jdbc lookup during mapping time to fetch item amounts (Just using Select queries.. if the requirement is feasible) ?
    If there are multiple tables, receiving response from many tables might not be possible. If  response fails from first table then further query to the tables will not proceed. Jdbc treats entire query as one transaction.

  • Sender Abap Proxy -- Receiver JDBC , catch communication channel exceptions

    Hi All,
    I have a sender abap proxy and a receiver jdbc asynchronous interface.
    Now under some circumstances when I send some junk data for an update query(which satisfies metadata requirement but wrong primary key) it shows chequered flag in both XI and r/3.
    But in communication channel it shows error.
    Queries:
    1. How do I handle this.
    2. Since this is triggered from Abap wht will be subrc when method ends in this particular case.
    3. Is there any possibility of program goin into dump?
    Regards,
    Prem

    You can catch the exception in cx_ai_system_fault.
    http://help.sap.com/saphelp_nw70/helpdata/en/75/a55c3cff8ca92be10000000a114084/content.htm
    DATA:
    lo_mes TYPE REF TO
         [Client proxy class],
    l_sys_exc TYPE REF TO
            cx_ai_system_fault,
    l_app_exc TYPE REF TO
            cx_ai_application_fault.
    CREATE OBJECT lo_mes.
    TRY.
    CALL METHOD
      lo_mes->EXECUTE_SYNCHRONOUS
        EXPORTING
          OUTPUT    = ls_request
        IMPORTING
          INPUT     = ls_response.
    CATCH cx_ai_system_fault
                INTO l_sys_exc.
    * handle system error
        EXIT.
    CATCH cx_fault_1
                INTO l_app_exc.
    * handle application error 1
    CATCH cx_fault_n
                INTO l_app_exc.
    * handle application error n
    CATCH cx_ai_application_fault
                INTO l_app_exc.
    * handle other
    * application errors
    ENDTRY.
    Thanks,
    Beena.

  • Handling Transport Errors in OSB Proxy Services

    Hi,
    I have a requirement of storing and handling Transport level Security Errors in my proxy services . In fact, my proxy services are secured with HTTP Basic Authentication and i am not able to catch authentication errors. I added a Service Error Handler to my proxy service but unfortunatly it doesn't handle these errors.
    Does anyone know how can we catch these errors in OSB, and if it is possible to execute activities like alerts, reports, logging in these cases.
    I read in some blogs that Error handlers are nested like this : Route Node ->  Proxy Service -> System Error Handler
    so maybe it would be good to customize the System Error Handler Behavior. I don't know if this is possible.
    Any help will be appreciated.
    Best regards
    Farouk

    Transport level authentication is done at transport layer even before the actual proxy service gets initiated. So you wont be able to catch authentication errors in the proxy service (and do alerting/logging/reporting etc). You can probably try enabling debug logging for HTTP protocol and see if you can capture these errors in the Access.log of the servers.    

  • Reg. Client(ABAP) Proxy to JDBC scenario

    Hi All,
    I am working on a scenario of Proxy to JDBC. The scenario goes like this.....
    SAP is the sender and I need to fetch data from the database table at the R/3 end and update in the legacy system at the receiver end .
    Can anybody guide me apart from PI configuration, the settings need to be done at the R/3 end in the transaction sproxy i.e. the ABAP class and objects. Also let me know if I need to trigger the interface weekly once, is it possible to trigger it automatically by using ABAP  class and objects else I need to write an ABAP program in order to trigger the interface.
    Thanks for understanding in advance.
    Regards,
    Neethu Chordia

    Hi,
    Can anybody guide me apart from PI configuration, the settings need to be done at the R/3 end in the transaction sproxy -
    As Raj suggested please search on SDN, you will find lot of links on this.
    Also let me know if I need to trigger the interface weekly once, is it possible to trigger it automatically by using ABAP class and objects else I need to write an ABAP program in order to trigger the interface. -
    >For this you need to write Abap class program and override method "Execute asynchronous" this will send the SAP R3 data to XI and then you have to configure job on R3 to run this program periodically as per your requirement.
    Divyesh Vasani

  • How to handle exceptions in sender ABAP Proxy

    Hi Experts,
       I have a synchronous scenario.
       SAP R/3 System A -ABAP Proxy <-> PI <-----> SOAP< ---> Webservice
       In system 'A', a function module calls the ABAP Proxy method.
       My requirement is that if there is an exception in PI ( for example: timeout or ABAP engine error) then I want to get the exception details in the calling function module.
    For example:
    Exception in PI:
      <SAP:Error xmlns:SAP="XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    <SAP:Category>XIAdapterFramework</SAP:Category>
    <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
    <SAP:P1/><SAP:P2/>
    <SAP:P3/><SAP:P4/>
    <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.ConnectException: Connection timed out: connect</SAP:AdditionalText>
    <SAP:ApplicationFaultMessage namespace=""/>
    <SAP:Stack/>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    In the calling function module:
    Try
    Call to proxy-> method
    Catch cx_ai_system_fault INTO v_o_fault.
           v_err_msg1 = v_o_fault->GET_TEXT( ).
           v_err_msg2 = v_o_fault->errortext.
           v_err_msg3 = v_o_fault->code.
    Endtry.
    Here I get value "MESSAGE.GENERAL" for  v_err_msg1 and v_err_msg3. v_err_msg2 is blank.
    I want to capture the info available under <SAP:AdditionalText>. How to get that?
    Please help!
    Thanks & Regards
    Gopal

    >
    gopalkrishna baliga wrote:
    > Hi Experts,
    >
    >    I have a synchronous scenario.
    >
    >    SAP R/3 System A -ABAP Proxy <-> PI <-----> SOAP< ---> Webservice
    >
    >    In system 'A', a function module calls the ABAP Proxy method.
    >
    >    My requirement is that if there is an exception in PI ( for example: timeout or ABAP engine error) then I want to get the exception details in the calling function module.
    >
    >  For example:
    >
    > Exception in PI:
    >
    >   <SAP:Error xmlns:SAP="XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    > <SAP:Category>XIAdapterFramework</SAP:Category>
    > <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
    > <SAP:P1/><SAP:P2/>
    > <SAP:P3/><SAP:P4/>
    > <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.ConnectException: Connection timed out: connect</SAP:AdditionalText>
    > <SAP:ApplicationFaultMessage namespace=""/>
    > <SAP:Stack/>
    > <SAP:Retry>M</SAP:Retry>
    > </SAP:Error>
    >
    > In the calling function module:
    > Try
    >  Call to proxy-> method
    >
    >  Catch cx_ai_system_fault INTO v_o_fault.
    >        v_err_msg1 = v_o_fault->GET_TEXT( ).
    >        v_err_msg2 = v_o_fault->errortext.
    >        v_err_msg3 = v_o_fault->code.
    > Endtry.
    >
    > Here I get value "MESSAGE.GENERAL" for  v_err_msg1 and v_err_msg3. v_err_msg2 is blank.
    >
    > I want to capture the info available under <SAP:AdditionalText>. How to get that?
    >
    > Please help!
    >
    > Thanks & Regards
    > Gopal
    Hi Gopal,
    Maybe the exception is CX_SY_APPLICATION_FAULT, or you can catch by BPM in PI and send back to proxy like a message response.

  • Handling appln errors in ABAP proxy

    Hello All,
    How is application related exceptions handled in a ABAP server proxy.
    Say I update a customer  record from a proxy(asynch). Now the customer data does not exist in R/3.
    Regards,
    Jai Shankar

    Jai,
    for this purpose you should define your message interface to include a fault message type using the default data types created in a namespace exchangefault data and exchange log data.
    when you create the proxy object for this interface, you will get exceptions defined int he object. You can raise the exception and populate the error details into corresponding strucures for exchange fault data & exchange log data.
    praveen

  • Exception Handling in Inbound Synchronous ABAP Proxy

    Hi All,
    I am implementing inbound synchronous proxy which has inbound ,outbound and fault message ( same of SAP-PI).
    I am calling a FM inside inside the method. All the business logic is coded in the FM which also handles the exception.
    The exception raised in the FM is captured in the MESSAGE table of type BAPIRET2.
    During testing I found that the exception raised inside the FM( Message Table) is not passed to Fault message
    which is in the proxy method( If sy-subrc 0, raise excption type MT_FaultMessage was coded after FM).
    I found 5 instance under the Fault message exception.IF_MESSAGEGET_TEXT , IF_MESSAGEGET_LONGTEXT ,IF_AI_APPLICATION_FAULT~GET_RT_FAULT_TEXT,
    GET_SOURCE_POSITION and CONSTRUCTOR.
    Kindly provide the input how to pass the error text captured in MESSAGE TABLE of FM to the exception message MT_FaultMessage of Proxy
    Regards
    Alice Rebecca

    Hi Alice ,
    Please have a look at the below document which contains ways to handle different errors and exception.If you still have doubts please revert back .
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502a7f0e-e5d9-2910-5aa2-976a8ed8384f?QuickLink=index&overridelayout=true]
    For more specific i.e to handle the retrun message from a BAPI go through the below link .I assuming that you have exception class  already created and it is available in the Exception tab of the execute_synchronus .
    [http://help.sap.com/saphelp_nw04/helpdata/en/25/a45c3cff8ca92be10000000a114084/frameset.htm]
    Thanks,
    Anjaneya .
    Edited by: Anjaneya Bhardwaj on Jan 13, 2012 6:26 AM

  • ABAP Proxy to JDBC : UPDATE_INSERT issue.

    Dear Friends
       I am inserting one ekpo records to MS SQL server. my structure and records are below.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_EKPO_RECEIVE xmlns:ns0="http://gspcgas.net/asset_rfid">
    - <StatementName>
                   - <dbTableName action="UPDATE_INSERT">
                      <table>EKPO</table>
    - <access>
               <EBELN>4500000687</EBELN>
               <EBELP>00010</EBELP>
              <MATNR>000000000100000012</MATNR>
              <MENGE>1.000</MENGE>
              <MEINS>EA</MEINS>
              <WERKS>1000</WERKS>
              <LGORT />
              <AEDAT>2011-12-12</AEDAT>
              <BUKRS>1000</BUKRS>
              <ANLN1>010023000315</ANLN1>
              <PSTYP>0</PSTYP>
              <KNTTP>A</KNTTP>
              <LOEKZ /> <-- during insertion I am not updating this field ( this is for item deletion)
      </access>
      - <Key1>
              <EBELN>4500000687</EBELN>
              <EBELP>00010</EBELP>
      </Key1>
      </dbTableName>
      </StatementName>
      </ns0:MT_EKPO_RECEIVE>
    this works absolutly fine and record inserted in the MS SQL server.
    problem occurs when in second run my user is changing the fields means he deletes the item  from the PO,  but it is not reflecting in the data base. only I can see previously created entery not the changed one. I have below payload in RWB for the receiver communication channel. 
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_EKPO_RECEIVE xmlns:ns0="http://gspcgas.net/asset_rfid">
    - <StatementName>
                   - <dbTableName action="UPDATE_INSERT">
                      <table>EKPO</table>
    - <access>
               <EBELN>4500000687</EBELN>
               <EBELP>00010</EBELP>
              <MATNR>000000000100000012</MATNR>
              <MENGE>1.000</MENGE>
              <MEINS>EA</MEINS>
              <WERKS>1000</WERKS>
              <LGORT />
              <AEDAT>2011-12-12</AEDAT>
              <BUKRS>1000</BUKRS>
              <ANLN1>010023000315</ANLN1>
              <PSTYP>0</PSTYP>
              <KNTTP>A</KNTTP>
              <LOEKZ>L</LOEKZ> <---- I receive the value here when user has deleted the item in the PO.
      </access>
      - <Key1>
              <EBELN>4500000687</EBELN>
              <EBELP>00010</EBELP>
      </Key1>
      </dbTableName>
      </StatementName>
      </ns0:MT_EKPO_RECEIVE>
    Please help me to understand why the changed values are not reflecting in my MSSQL server from PI. and tell me what should i do to correct it.  I have no error message in RWB for the receiver communication channel. please reply me. your any reply will be highly appreciated. Please reply me

    Delete is handled differently when compared to an  Update_Insert.
    an Update_insert statement is like a modify command. it either inserts an entry or changes it, but does not delete it. You need to specify the keys in the Update_insert XML-SQL.
    In case you have a scenario for delete along with update/insert, please do the following
    1.  Let the source system determine an action, and pass it to PI
    2. Based on the action code, implement 2 split mappings using enhanced interface determination ( rule based interface determination).
    3. Implement 2 seperate maps for Delete and Update, and call them based on the action code rule from the interface determinaton.
    Hope this helps.
    Regards,
    Abhishek

  • Sender Abap Proxy -- Receiver JDBC MaxDB

    Hi Experts,
    Please, PI works with MaxDB database?
    What is the procedure? Need to install drivers?
    SO is Linux.
    Thanks for the help!

    Hi,
    >>>>Please, PI works with MaxDB database?
    yes
    >>>What is the procedure? Need to install drivers?
    yes you need to install the driver - the rest is the same as with any other DB
    Regards,
    Michal Krawczyk

  • Error Handling for ABAP Proxy sender

    Hello Everyone,
    I am trying out a scenario of SAP R/3 to Oracle database (ABAP Proxy to JDBC).
    I have the following code and it works fine.
    CALL METHOD prxy->execute_asynchronous
          EXPORTING
            output = it.
         commit work
      CATCH cx_ai_system_fault .
        DATA fault TYPE REF TO cx_ai_system_fault .
        CREATE OBJECT fault.
        WRITE :/ fault->errortext.
    I know that the above Catch block would be used to handle system errors on the sender side.
    Please tell me what kind of errors could these be and what I can do to test these errors. ie. I want to  create error situations explicitely and see how they are handled.
    Thanks and Regards,
    Ashwin

    Thanks guys, this was useful.
    My scenario is for Asynchronous communication.
    I guess Fault messages are used in case of Synchronous communication for handling application errors. So if there was something wrong at the JDBC end then I could use the fault messages.
    Have i got this right?
    I also came across this piece on Acknowledgements. But is says that they can be used with the following Receivers:
    The following receivers support acknowledgments:
    ABAP and Java proxies (XI 3.0 SP1 for the latter)
    Integration processes
    IDocs (note that IDocs only return acknowledgments when they have been configured using the ALE audit)
    Receiver adapters support system acknowledgments but not application acknowledgments
    My Receiver is JDBC. So I guess I cannot use acknowledgements either.
    Hence, I need to know what I can do to replicate the system errors eg. failed server etc...so that I can get catch these errors during sending.
    I'll tell you abt what happened earlier.
    My XI server was down. I executed the code for the sender ABAP Proxy and it did not catch the error. In SXMB_MONI in the R/3 system, I could see the messages queued up. When the XI server started, the messages were transferred to XI.
    I need to handle such errors...ie. If  the server is down or message did not reach XI then my ABAP program that sends data via ABAP proxy needs to know that something went wrong.
    Thanks and Regards,
    Ashwin

  • Sender ABAP Synchronous proxy -- PI -- JDBC sync scenario pls!!

    Hi Guys,
    Can any one help to find one sample scenario like ABAP Proxy --> PI --> JDBC Sync call ? Sync ABAP proxy sample code any 2 or more filelds going from ABAP proxy and maps on JDBC sync request, up date target side SQL server database tables, in case if any error happens error/success message must go back to SAP one Z table with response.
    Any help would be really great!!
    Many thanks in advance
    San

    up date target side SQL server database tables, in case if any error happens error/success message must go back to SAP
    one Z table with response.
    When you do an update you can get back the number of rows updated in the JDBC response....you can find this in the help page showing JDBC structure. If you are looking for any other response then probably the message needs to be genarated by PI itself after checking the response from JDBC.
    Regards,
    Abhishek.

  • Synchronous ABAP Proxy - no answer

    Hello!
    I have scenario ABAP Proxy --> PI --> JDBC
    It's synchronous. Messages are sending, in PI in SXI_MONITOR I see a response from database, but in ERP in debug mode I don't see this response
    My proxy call look like that:
    TRY.
      CALL METHOD g_proxy->OS_DOM_CAJO
        EXPORTING
          output = ls_out_mt
        IMPORTING
          input = ls_in_response_mt.
      COMMIT WORK.
       CATCH cx_ai_system_fault .
        CATCH cx_ai_application_fault .
    ENDTRY.
    So, there is no data in  ls_in_response_mt.

    Hi,
    1. both of your service interfaces are sync right (outbound and inbound) ?
    2. and did you try to use the reponse XML from JDBC in your message mapping (copy/paste) to check the mapping as Grzegorz suggested ?
    3. just a reminder :
    you can also turn on loggin_sync on ERP backend not only in PI system
    to see sync calls in ERP backend too (req/resp)
    Regards,
    Michal Krawczyk

Maybe you are looking for

  • How to get a canon mp620 to work with mac wifi on os 10.5.6

    Hi y'all This is simply a summary of the steps outlined by PAHU and Kappy on the tiger print & fax page who are the big brains here that explained the steps that worked for me on Mac OS 10.5.6. Thanks and respect to those guys. First thing to underst

  • Unable to mount external fire-wire hard drive - help, please!

    After working the last couple of days to resolve the failure of an internal drive, now one of my external drives (LaCie fire-wire) will not mount. I was using it to back up the bad internal drive, and probably forgot to eject the drive before turning

  • G5 and 37" LCD TV... how?

    I have a G5 with a stock GeForce FX5200 card that I want to connect to a Toshiba 37HLV66. The Toshiba does have a VGA input, but the best it yields is a 4:3 1024x768 image. I want to be able to use the full native resolution (1366x768) of the TV. I t

  • Presentation on Bex

    Hi All, I  hav to give  presentation on Bex for  User's (@ Client Location)..on next couple of days Can anyone provide me PPT or Presentation Docs on End User training material on BEx .. pls send to [email protected] Its very urgent for me .. i  wil

  • What do I do if I am having problems installing Security Update 2012-004?

    All, Howdy.  My Software Update fails every time I attempt to install the Security Update 2012-004.  I can use the Software Update for other installations.  I downloaded the Security Update 2012-004.dmg from the Apple Support site.  However, that ins