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.

Similar Messages

  • 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

  • Mail Sender to Abap Proxy Receiver with Attachements

    Hi All,
    Scenario: I need to create a ticket in Solman from a mail. I intend to do the scenario as Mail sender to Abap Proxy receiver asynchronous.
    I have configured my sender mail adapter and am able to get the mails in XI. The attachements also appear in Inbound payload as MailAttachement-1, MailAttachement-2 etc. I have checked use mail packege and keep attachements in sender adapter.
    Transport Protocol: IMAP4
    Message Protocol: XIPAYLOAD
    Queries:
    1. My Inbound Data Type is the mail Package -- ximail30_xsd. Here in sxmb_moni I can see the mail attributes like from, to and the mail body in content. But How can I read the attachements in my message mapping.
    2. How can I pass these attachements to Abap Proxy ( I do not need to alter attachments only pass to proxy ). These attachements have to be attached to the Solman ticket in SOLMAN server.
    Appreciate your kind response to my above queries.
    Thanks.
    Regards,
    Siddhesh S.Tawate
    PS: I have tried using PayloadSwapBean in adapter module but still the content at source remains same.

    Hi,
    Please find below the part of code that might help you. I have given code only responsible for attachements part of the ticket.
    loop at lt_attach into l_attachment.
            count = count + 1.
            if count = 1.
              first_line = 1.
            endif.
            l_type = l_attachment->GET_CONTENT_TYPE( ).
            split l_type at '"' into l_type
                                     file_name
                                     l_name.
            l_name = file_name.
            split file_name at '.' into file_name
                                        file_type.
            l_xstring = l_attachment->GET_BINARY_DATA( ).
            strlen = xstrlen( l_xstring ).
            Compute int = ( strlen div 255 ).
            Compute rem = ( strlen mod 255 ).
            if rem <> 0.
              int = int + 1.
            endif.
            count1 = int.
            if count = 1.
              last_line = count1.
            else.
              if int = 1.
                first_line = last_line.
              else.
                last_line = first_line + count1.
              endif.
            endif.
            wa_APPX_HEADERS-APPXNO = count.
            wa_APPX_HEADERS-DESCR = l_name.
            wa_APPX_HEADERS-FILETYP = file_type.
            wa_APPX_HEADERS-FILENAM = l_name.
            wa_APPX_HEADERS-FILEFM_UL = 'BIN'.
            wa_APPX_HEADERS-FIRSTL = first_line.
            wa_APPX_HEADERS-LASTL = last_line.
            wa_APPX_HEADERS-FILELEN = strlen.
            wa_APPX_HEADERS-LAST_USR = sy-uname.
            GET TIME STAMP FIELD wa_appx_headers-TIMESTAMP.
            append wa_APPX_HEADERS to it_APPX_HEADERS.
            while count1 <> 0.
              count1 = count1 - 1.
              if count1 <> 0.
                wa_APPX_LINES_bin-LINE = l_xstring+0(255).
                shift l_xstring left by 255 places in BYTE MODE.
              ELSE.
                wa_APPX_LINES_bin-LINE = l_xstring.
              endif.
              append wa_APPX_LINES_bin to it_APPX_LINES_bin.
              clear: wa_APPX_LINES_bin, wa_APPX_LINES.
            endwhile.
            first_line = last_line + 1.
            clear: strlen, count1, file_name, file_type, l_type, int, rem, l_xstring, l_attachment.
          endloop.
    CALL FUNCTION 'BAPI_NOTIFICATION_CREATE'
            EXPORTING
              NOTIF_EXT                = wa_NOTIF_EXT
            NOTIF_CRM                = wa_NOTIF_CRM
      IBASE_DATA               =
         IMPORTING
           NUMBER                   = Refnum
           NUMB                     = Numb
           REFNUM                   = Ticket_No
           SYSID                    = SYSID
            TABLES
              NOTIF_PARTNERS           = it_NOTIF_PARTNERS
            NOTIF_NOTES              = it_NOTIF_N_EXT
              NOTIF_SAP_DATA           = it_NOTIF_SAP_DATA
            NOTIF_TEXT_HEADERS       = it_NOTIF_TEXT_HEADERS
            NOTIF_TEXT_LINES         = it_NOTIF_TEXT_LINES
            APPX_HEADERS             = it_APPX_HEADERS
            APPX_LINES               = it_APPX_LINES
            APPX_LINES_BIN           = it_APPX_LINES_BIN
             RETURN                   = RETURN
    Please observe how first and last line of attachement is calculated. That is what created problem for me initially.
    Hope this helps.
    Regards,
    Siddhesh S.Tawate

  • 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 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

  • Sender ABAP Proxy - EOIO

    Dear Experts,
    I have two requirements. Requesting experts' help.
    1. How to acheive Quality of Service EOIO for Sender ABAP Proxy. I know there is set_serialization_context method that we can use, but do not how to. Do we have a guide? Can  you please help?
    2. When I acheive EOIO as mentioned in point-1, when all the messages are sent to same queue, in case if previous message fails in PI mapping, I do not want the next message to stuck in the queue, it should continue processing. How can we do this?
    Thank you.
    Best Regards,
    Saravanan

    Hi sarvana,
    For your first question:
    Please see the thread:
    How to determine quality of service of communication between XI and R/3
    second question
    In Case EOIO any kind of error Message processing will be stopped.
    You cant specify that only for mapping error EOIO will not work and for other error it should work as EOIO

  • ABAP Proxy Receiver Asynchronous EOIO

    Hi,
    Is it possible to Guaranteeing the Sequence of Asynchronous Messages for ABAP Proxy Receiver(EOIO)?
    If yes, how can I configure?
    Thanks,
    Kiara.

    Hi Stefan,
    Thank you.
    One quick question.
    In case if I  use JMS>PI>RFC(Async) then also no need of maintaining EOIO for RFC Receiver Async?
    On JMS sender we are maintaining EOIO.
    Reason for this request is currently we are using JMS>PI>RFC Async. We are using EOIO on JMS sender, but some times sequence of messages is missing.
    Can you please let us know the cause of this issue.
    Thanks,
    Kiara.

  • I want to test sender ABAP proxy in AAE by SOAP client

    To PI Specialists
    Now I plan to test sender ABAP proxy in AAE by SOAP client system.
    (we use aae so we set sender abap proxy by sender soap adapter.)
    ABAP creating team and PI creating team are in other site.We cant contact easily.
    I want to separate ABAP Unit test and PI Unit test, plan to use soap client for test driver.
    (we use SOAPUI. )
    the url is http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=party:service:channel
    I noticed that sender soap adapter is started, but the messeage protocol is invalid.
    we use messege of wsdl. it must be XI3.0 protocol.
    Please tell me XI3.0 protocol.
    Naoki

    This is possible to do in SOAPUI.  I am testing this scenario using AAE, but I am also using SOAP UI Pro.  The procedure is pretty basic.  Instead of sending your payload in as part of the body, you have to send it in as an attachment.  You will also need to set the header correctly.  Here is a sample message from my SOAP UI tests that may help. The only thing you need to do differently is load the attachment, name it, and make sure that the name of the attachment is reflected in the SAP:Payload attribute.  Also, I am using a Groovy script to create a GUID.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30">
    <soapenv:Header>
      <SAP:Main versionMajor="003" versionMinor="000" SOAP:mustUnderstand="1" wsu:Id="wsuid-main-92FFF13F5C59777FE1ABE00000A1551F7" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
                xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
       <SAP:MessageClass>ApplicationMessage</SAP:MessageClass>
       <SAP:ProcessingMode>asynchronous</SAP:ProcessingMode>
       <SAP:MessageId>${Create GUID#result}</SAP:MessageId>
       <SAP:TimeSent>${=new java.text.SimpleDateFormat("yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'").format(new Date())}</SAP:TimeSent>
       <SAP:Sender>
        <SAP:Service>SVCNM</SAP:Service>
       </SAP:Sender>
       <SAP:Interface namespace="Interface_Namehttp://namespace.com">Interface_Name</SAP:Interface>
      </SAP:Main>
      <SAP:ReliableMessaging SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SAP:QualityOfService>ExactlyOnce</SAP:QualityOfService>
      </SAP:ReliableMessaging>
      <SAP:System SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SAP:Record namespace="http://www.sap.com/webas/712/soap/features/runtime/metering/" name="CallingType">SA</SAP:Record>
      </SAP:System>
      <SAP:Diagnostic SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SAP:TraceLevel>Information</SAP:TraceLevel>
       <SAP:Logging>Off</SAP:Logging>
      </SAP:Diagnostic>
      <SAP:HopList SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SAP:Hop timeStamp="${=new java.text.SimpleDateFormat("yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'").format(new Date())}" wasRead="false">
        <SAP:Engine type="BS">SVCNM</SAP:Engine>
        <SAP:Adapter namespace="XIhttp://sap.com/xi/XI/System">XI</SAP:Adapter>
        <SAP:MessageId>${Create GUID#result}</SAP:MessageId>
        <SAP:Info>3.0</SAP:Info>
       </SAP:Hop>
      </SAP:HopList>
    </soapenv:Header>
    <soapenv:Body>
      <SAP:Manifest wsu:Id="wsuid-main-92FFF13F5C59777FE1ABE00000A1551F7" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink"
                    xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
       <SAP:Payload xlink:href="cid:TestPayload.xml">
        <SAP:Name>MainDocument</SAP:Name>
        <SAP:Description/>
        <SAP:Type>Application</SAP:Type>
       </SAP:Payload>
      </SAP:Manifest>
    </soapenv:Body>
    </soapenv:Envelope>
    Here is a picture of my SOAP UI project in case it help the understanding.

  • Error while executing sender ABAP proxy program in ECC

    Hi,
    We have lot of proxy to file scenarios, most of them are working fine. I am having issue with 2 interfaces, when I execute sender ABAP proxy program, we are getting following errors in ECC:
    <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="PARSING">GENERAL</SAP:Code>
    <SAP:Stack>com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=ED1CLNT290;TS=;AN=CustTrPowersellS_Out;ANS=urn:maines-net:OTC_079E:PowersellCustomerTerms; at com.sap.aii.af.service.cpa.impl.lookup.CommonLookup.getInboundBinding(CommonLookup.java:237) at com.sap.aii.af.service.cpa.impl.lookup.CommonLookup.getInboundBinding(CommonLookup.java:167) at com.sap.aii.af.service.cpa.InboundRuntimeLookup.<init>(InboundRuntimeLookup.java:88) at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBinding(AbstractLookupManager.java:519) at com.sap.aii.adapter.soap.web.MessageServlet.getBinding(MessageServlet.java:875) at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:439) at   etc etc
    Configuration should be fine because many scenarios are working. Can you please help me where could be the error?
    Let me know if you need more info.
    Regards,
    N@v!n

    Hi Naveen,
    We saw your solution about this issue. We are also facing same issue. I wanted to know where we have to update scenario as simple scenario or integrated scenario.
    And could you please tel me what is the main diff between in these two.
    As we are are using PI 7.31 java stack so for this version what we have to use.
    Thanks,
    Shivdeep Kumar

  • Error in Receiver RNIF1.1 communication channel

    Hi ,
    We are getting the below error in the Receiver RNIF1.1 communication channel
    Transmitting the message to endpoint https://TTT.com.tw:4443/invoke/wm.ip.rn/receive using connection RNIF11Adapter failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: <BODY bgcolor=#dddddd> <TABLE bgcolor=#dddddd border=1> <TR> <TD valign="top"><B>$errorDump</B></TD> <TD>Server error occurred</TD> </TR> <TR> <TD valign="top"><B>$errorInfo</B></TD> <TD><TABLE bgcolor=#dddddd border=1> <TR> <TD valign="top"><B>$errorDump</B></TD> <TD>Server error occurred</TD> </TR> <TR> <TD valign="top"><B>$error</B></TD> <TD>com.wm.estd.rosettaNet.TransportNotFoundException: The transport '' is not a registered RosettaNet transport. Ensure that the required package is activated. If the package is activated, then reload the pac
    Please suggest,what caused this error.
    Regards,
    AR

    Please check the Transport Parameters.
    Refer for configuration 
    http://help.sap.com/saphelp_nwpi71/helpdata/en/3d/99743f3d4b0866e10000000a114084/frameset.htm
    Regards
    Raj

  • Problem with sender ABAP proxy

    Hi All,
       I have created sender ABAP proxy (Async). I am testing the proxy from SPROXY transaction it selft .. when i provide the data and execute the proxy it is showing <b>"Services Processed Without Error"</b> , but i am not getting any error , i am not able to see any message in SXMB_MONI or RWB .. how to check where the message is failing ??

    Hi,
    You said you are sending message from proxy....its very easy to debug in this case. You can set a breakpoint directly in your proxy caling program. Just check if you are calling commit work after calling proxy.
    Also you can do it using the abap system command '/H' or the code 'BREAK-POINT' for/in the report program triggering the iterface.
    Check out this thread...
    How to Debug proxies
    Hope this will help you.
    Ni;esh

  • Sender Abap Proxy no get in PI

    Hi expert,
    I have an sender abap proxy scenario which working fine in development server and even staging server but when transported to production server, the data seem can't go into PI server. I have check all the setting and sure the setting was set correctly. When i check on the system log in sm21 abap ERP, it show an error.
    Operating system call gethostbyname failed (error no. 0 )
    Any idea on how to solve this? Thanks.

    Hi,
    plz check transactions sldcheck and sldapicust. Everything ok?
    What about SXMB_ADM? System maintained as Application System? Destination given to PI Runtime?
    Can you ckeck that destination at SM59?
    Plz have a look to destinations SLD_NUC and SLD_UC. Do they work?
    Regards,
    Udo

  • EOIO in sender ABAP proxy

    Hi
    I am referring to I am referring to /people/arulraja.ma/blog/2006/08/18/xi-reliable-messaging-150-eoio-in-abap-proxies for EOIO in sender abap proxy
    My requirement was to send thedata and trigger messages in EOIO fashion in one Queue.
    This is working fine for one interface...
    but for the other interface it  is always creating 2 queueids...one for data messages and other for the trigger message..
    Queueid that I have given is supose "ABC"
    then it is always creating 1 Q like XBQOT___ABC
    and 2nd Q    like XBQOH1__ABC.
    ideally both the Qname should be the same...any ideas?
    PS: if i check the Q name in SXMB_MONI of SAP system it is same for both the data and trigger like "ABC"
    Edited by: Tarang Shah on Jun 4, 2010 5:12 PM

    Any ideas ?

  • Make Sender ABAP proxy transport HTTPS

    Hi Experts,
    I have a sender ABAP proxy scenario without CC configuraiton. Now if i want to HTTPS for data transportation from R3 to PI. What could be the possible ways?

    Hey,
    >Now if i want to HTTPS for data transportation from R3 to PI. What could be the possible ways?
    Yes,
    Create the Port for HTTPS, Install the certificates , Change the parametr in Visual admin for HTTPS call.
    Cheers
    Agasthuri

  • Jdbc to proxy error while testing communication channel in rwb

    Hi experts,
    my scenario is JDBC to Proxy...
    while testing in communication channel i got the following error.
    26.02.2014 12:29:44.378
    Error
    SOAP: Call failed: com.sap.aii.af.sdk.xi.srt.BubbleException: HTTP Response Received. Status Code = 500 [null "null"]
    26.02.2014 12:29:44.384
    Error
    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: HTTP Response Received. Status Code = 500 [null "null"]
    26.02.2014 12:29:44.384
    Error
    SOAP: Error occurred: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: HTTP Response Received. Status Code = 500 [null "null"]
    Based on the above error please tell me where is the fault in my scenario
    Thanks & Regards
    E. Ravichandra Reddy

    Hi,
    could you check if the below thread helps you
    http://scn.sap.com/thread/3184803
    http://scn.sap.com/thread/3253448
    http://scn.sap.com/thread/3413678
    Regards

Maybe you are looking for

  • "An error occurred while connecting to the AirPlay device "Living Room Apple TV". An unknown error occurred (406)."

    This error message keeps popping up overtime I try to play an iTunes bought tv show from my mac book pro to my apple tv "An error occurred while connecting to the AirPlay device "Living Room Apple TV". An unknown error occurred (406)." Does anyone kn

  • Connection to Internet via Airport snow

    Help. For years my airport iMac and MacBook pro worked in harmony but my network was open. When I started any computer including my MacBook pro I was able to join the network without a password. "Foolishly" I decided to add a password. I used the iMa

  • Supplier Details in EBS Payables

    When a supplier changes there names, our systems admin has asked us to create a whole new supplier and enter the details again with the name change. As this takes a while for data entry, is there anyway to copy details of an exisiting supplier record

  • Additional search field in "Identify Account"

    Hi, We have CRM 5.0 system and in the IC for "Identify Accounts" the requirement is to add the field for organization so that the users can arrive at the customer by mentioning the organization name.  I am new to CRM . Can some one suggest me or prov

  • HOW TO KEEP PRINTER ON AND READY TO ACCEPT PHOTOS

    WHEN SENDING PHOTOS FROM IPAD TO PRINTER I MUST TURN PRINTER ON MANUALLY  IKEEP GETTING MESSAGE DELAYED OR FAILED