Propagate fault message from ABAP server proxy to XI

Hello
My scenario is asynch HTTP -> async ABAP server proxy.
I have searched a forum but I didn't find the ansver on my question:
Is it possible to propagate a fault message from SAP system to XI in case of asyncronous ABAP Proxy in order to see in SXMB_MONI of XI?
I see errors only on SAP side but this solution doesn't satisfied me I want to see all errors in one place.

Hi,
Have u used commit work at the end of the code.
Can you please tell me what all configuration u have done.
U have referred the ABAP Proxy configuration:
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
Refer the below log for Client Proxy -
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Chirag

Similar Messages

  • Exception using fault message in java server proxy.

    Hi All,
    I am trying to use Fault message inside my server proxy code in Asynchronous java server proxy. I am referring the below mentioned link :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd23702?quicklink=index&overridelayout=true
    I successfully deployed my SDA file but while running the scenario(http-XI-ftp in PI7.11) i am getting the folowing exception under MDT:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing inbound message. Exception: Cannot locate proxy bean ServerProxyFTTest3.
    I am using the following library refernces under application-j2ee-engine.xml file:  com.sap.aii.af.sdk.lib, com.sap.aii.proxy.svc, com.sap.xi.util.misc,com.sap.guid,com.sap.exception all of type "weak".
    I have checked almost all the forums related to fault messages in asynchronous java server proxy but couldn't find much help.
    Request you all to help me.
    Thanks
    Amit

    Hi Rajesh,
    I am deploying my SDA file on Non Central Adapter Engine.
    I have also registered my interface using:
    http://ISVSAPPISB:51000/ProxyServer/register?ns=http://infosys.com/poc&interface=SI_Proxy_IA&bean=localejbs/ServerProxyFTTest3&method=sIProxyIA
    But still i ma getting the same exception.
    Hi Gabriel,
    I implemented my scenario using the same. But in addittion to the librarry referneces mentioned over there i have added one more refrence in it "com.sap.exception"  of type "weak". My structure is like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <application-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="application-j2ee-engine.xsd">
    <reference reference-type="weak">
      <reference-target provider-name="sap.com" target-type="library">com.sap.aii.af.sdk.lib</reference-target>
      </reference>
    <reference reference-type="weak">
      <reference-target provider-name="sap.com" target-type="service"> com.sap.aii.proxy.svc</reference-target>
      </reference>
    <reference reference-type="weak">
      <reference-target provider-name="sap.com" target-type="library">com.sap.xi.util.misc</reference-target>
      </reference>
    <reference reference-type="weak">
      <reference-target provider-name="sap.com" target-type="library">com.sap.guid</reference-target>
      </reference>
        <reference reference-type="weak">
      <reference-target provider-name="sap.com" target-type="library">com.sap.exception</reference-target>
      </reference>
        </application-j2ee-engine>
    Please help.
    Thanks
    Amit

  • HOW TO EXECUTE ABAP SERVER PROXY?

    Hi,
    I am working on a scenario in which message is passed from Integration Server to ABAP server proxy.
    In case of client proxy we execute EXECUTE_SYNCHRONOUS methjod of proxy,but I am bit confused in case of server proxies.
    How do we execute server proxy method?

    Hi Similar to Client proxy, you will have the method EXECUTE_SYNCHRONOUS or EXECUTE_ASYNCHRONOUS for your server proxy. If your WebAS is based on 6.4 or above you can test the server proxy with a sample pay load very easily. In T-code sproxy, you will see a menu called proxy, Click on that and click test proxy, check the XML payload and you can enter the payload in the next screen and check your proxy..
    Regards,
    Jai Shankar.

  • Problem with Consuming ABAP Server Proxy WSDL in InfoPath

    Tried to design a InfoPath (MS Office 2003) form from a WSDL file of a web service generated from an ABAP Server Proxy in a NW2004s SP10 system.  InfoPath rejected this WSDL with error “InfoPath cannot use the selected Web service method for receiving data because the method does not provide valid XML data”.  Tried other WSDL files from other web services from ABAP Proxy with InfoPath, all got rejected.
    Validated the WSDL file with XMLSPY, no error.  Tried to import the WSDL into XI 3.0, no error.  Also tried the WSDL in .NET C#, also worked fine.  It seemed only InfoPath does not like this WSDL from ABAP Proxy. 
    Created a similar web service in XI 3.0 and InfoPath had no problem with its WSDL.  Then I compared the two WSDL files.  There are differences.  After try and error on changing the differences, I have nailed down to the XML tag that caused the problem.  Please see the extracted WSDL line attached at the end.  In the XI 3.0 generated WSDL the wsdl:message and the wsdl:part have the same name.  In the ABAP Proxy generated WSDL the wsdl:part has the name “Parameters” which is different from the wsdl:message.  After I copied the wsdl:message name to the wsdl:part name, InfoPath accepted the WSDL file without any problem.
    I know the fix but I like to find out the root cause.  Is this a known issue?  Did we miss some configuration setting that’s causing this issue?  Any help will be much appreciated.
    WSDL from NW2004s SP10 ABAP Proxy
    <wsdl:message name="RegionR3GetList_Req_MT">
        <wsdl:part name="Parameters" element="tns:RegionR3GetList_Req_MT"/>
    </wsdl:message>
    <wsdl:message name="RegionR3GetList_Resp_MT">
        <wsdl:part name=" Parameters" element="tns:RegionR3GetList_Resp_MT"/>
    </wsdl:message>
    WSDL from XI 3.0 Interface
    <wsdl:message name="RegionR3GetList_Req_MT">
        <wsdl:part name="RegionR3GetList_Req_MT" element="tns:RegionR3GetList_Req_MT"/>
    </wsdl:message>
    <wsdl:message name="RegionR3GetList_Resp_MT">
        <wsdl:part name="RegionR3GetList_Resp_MT" element="tns:RegionR3GetList_Resp_MT"/>
    </wsdl:message>

    Anne Tarnoruder has pointed out to me that her SDN article "Consuming SAP Enterprise Services in a Microsoft Office InfoPath Form" has described the the cause and workaround of this issue on page 9.  I am extracting it below and mark this thread as answered.  Thanks to Anne but not sure how I can award point to her.
    Currently SAP supports only the Document style of WSDL, and not the Microsoft-specific RPC style, which causes a problem when consuming SAP services in the Microsoft environment. In this example, you need to apply a workaround that involves a minor correction of locally-stored WSDL files:
    a. In the Project Explorer toolbar, click the Show all files icon and expand the Web reference folder.
    b. For each Web reference in the project, perform the following steps:
    c. Open the WSDL file, replace all instances of <wsdl:part name="parameters" with <wsdl:part name="parameter" (remove the s in parameters) and save the file.
    d. Right-click the Reference.map file and choose Run Custom Tool to invoke a utility that generates code for XML Web services. This recreates the local proxy.

  • ABAP server proxy as web service provider ??

    Hi friends,
    I am wondering that if is possible to expose an ABAP server proxy as a web service on NetWeaver ABAP. I tried that, but failed to call it.
    I generated a ABAP server proxy by using the PI inbound interface. I can call the ABAP server proxy by PI. From SOAMANAGER of the beckend system, i saw that this just generated ABAP server proxy is a service. Then i curious if this generated ABAP server proxy can be exposed as the web service like other RFC function modules on the same beckend system. So i generated a ABAP client proxy by using the binding WSDL of the ABAP server proxy. But the testing of the generated ABAP client proxy failed.
    So my question is if it is possible  to expose an ABAP server proxy as a web service on NetWeaver ABAP?
    The beckend system is SAP ERP 6.0 EHP4. The PI is 7.11.
    Thanks!

    In other words, is it possible to consume a server proxy by client proxy? If yes, how to consume it?
    Edited by: Chris Xu on Jan 16, 2011 8:59 PM

  • ABAP Server Proxy OR RFC - for attaching a file

    Hello ABAP gurus,
    Just to give a brief background, systems involved are ERP and PI
    Certain Files (3 files to be exact) are generated in the ERP directory/file system
    I need to transfer these files to PI "without" using the readily available FTP/NFS adapters (this is a limitation - no use of direct FTP is allowed)
    Making the directory as a "shared" directory between ERP and PI is also not an option.
    With the scenario above, I though of using an RFC or an ABAP Server Proxy to attach the said files to send them to PI
    Which is the better way to do it?
    I've seen a documentation for the ABAP Server Proxy that makes it possible to attach files to the proxy message, but for RFC I don't know if this is possible?
    Your expert advise is highly appreciated

    hI,
    Use class CL_PROXY_CLIENT in the program and method IF_PROXY_CLIENT~EXECUTE.
    You can refer documentation of this class as well as if you will search on any search portal using name of this class, you will get the briefe idea with the refernce procedure too.
    Unfortunately I am unable to post you few links but try search on it, hopefully you will get it.
    try below link.
    <link to blocked site removed by moderator>
    Edited by: Thomas Zloch on Oct 7, 2011 10:37 AM

  • ABAP Server Proxy development for creation of IDOC

    Hi all,
    I am working on JDBC to ABAP Server Proxy where i need to populate fields and then i need to mapp to the standard IDOC ie, SHIPMENT_CREATEFROMDATA01 which will create shipment idoc this is my requirement.Can anyone provide me the proxy development part  for creation of IDOC.
    Regards,
    Bhoj

    Hi,
    Create server proxy at the receiver end and deploy it using the following links:
    ABAP Server proxies
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Debugging of Inbound ABAP proxies
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    File to R/3 via ABAP Proxy
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    How to push data from BI to XI using proxy
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e698aa90-0201-0010-7982-b498e02af76b
    How to push data into BW from XI using proxy
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/18dfe590-0201-0010-6b8b-d21dfa9929c9
    http://help.sap.com/saphelp_nw04s/helpdata/en/2d/b9766df88f4a24967dae38cb672fe1/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/11/e2bc3d9ecc6b3be10000000a114084/frameset.htm
    Server proxy part1 and part2:
    /people/sap.user72/blog/2005/12/08/integration-builders-through-proxy-server-part--1
    /people/sap.user72/blog/2005/12/13/integration-builders-through-proxy-server-part--2
    Regards,
    Vinod.

  • Abap Server Proxy acknowledgment

    Hi All,
    Typicall scenerio FILE->PI->ERP(abap server proxy).
    is there any possibility(excluding BPM) to request acknowledgment from erp to be sent to pi and fill second column in sxi_monitor. similar situation to aleaud in idoc processing..
    BR
    Maciej

    is possible
    take a loko to this.
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/8620c6b58c422c960c53f3ed71b432/frameset.htm
    Acknowledgment Types
    SYSTEM_OK
    Positive system acknowledgment.
    The receiver was reached successfully. For server proxies, this means that the implementing class for the server proxy was found and that the method for inbound processing could be called.

  • ABAP Server Proxy Issue

    Guys,
    For a scenario i am using ABAP Server Proxy.
    I have successfully generated the proxy object but when i want to put some logic in server proxy by double clicking on execute_synchronous, i am getting nothing and when i am trying to use the toggle button to bring the proxy in editable mode i am getting the message that " you can't edit proxy objects ".
    What is the solution....
    Regards,

    As sheetal said  "Have you activated the proxy object properly ".
    no i didn't ...
    I went to SE24 and selected the class with my interface and activated it..
    Process should be : Under Proxy Objects choose your interface and test .
    It will show you the class needed to be activated..Finally i activated the class..
    and get the ball rolling..
    Thanx to Sheetal.
    Regards,

  • ABAP server proxy- parser-item missing error

    Dear all,
    I am working on File to proxy scenario (ABAP server proxy).
    When I executing my scenario, I am getting following error at call adapter pipline step .
       < SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="PARSER">ITEM_MISSING</SAP:Code>
      <SAP:P1>Envelope</SAP:P1>
      <SAP:Stack>XML element Envelope missing in SOAP message header (SAP XI Extension)</SAP:Stack>
    I checked my message payload after message mapping it containing the perfect SOAP Envelop.
    What may be the reason for the error?
    Regards,
    navneet.

    navneet
    is your path determined ok.
    /sap/xi/engine?type=entry
          for SAP systems based on SAP BASIS 6.40 (XI 3.0 message protocol).
    /sap/xi/engine?type=receiver
          for SAP systems based on SAP BASIS 6.20 (XI 2.0 message protocol).
    http://help.sap.com/saphelp_nw04/helpdata/EN/85/78af1bf407434796aaf8dbd6d4e7b7/frameset.htm
    Sorry forget my message, this is not applicable for you
    Greets
    Edited by: Patrick Pot on Feb 25, 2009 10:42 AM

  • File to ABAP Server Proxy Scenario

    Hi 2 all,
    I am running File to Server(ABAP) Proxy scenario...
    I have checked the ABAP Server Proxy at application server only and it is working fine....But when i am running the whole scenario my server proxy is not getting executed..( i.e my file is being picked up but proxy is not getting called ..:(( )
    Can i expect some valuable inputs regarding this issue..?
    Regards,

    to debug the problem....
    first check SXMB_MONI of R3 system... where proxy has been created.
    1 .check whether your proxy has been called ... it will be evident you get any message in moni for you interface or namespace..
    2. check you proxy message has not got stucked in queue... sometimes message get stucked in queue and hence proxy are not called.. release the messaeg using smq2.
    ELSE
    1 .go to SXMB_MONI...of XI..
    2. select 'Call Adapter'  in right hand of monitor.
    3. check the 'trace' under Call Adapter.
    4. if you go at end of trace or somewhat near to end.. there should trace like...this ...
    Trace level="1" type="T">Receiver party normalized =</Trace>
      <Trace level="1" type="T">Receiver party external =</Trace>
    - <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP">
      <Trace level="2" type="T">Addressing mode: destination</Trace>
      <Trace level="3" type="T">Destination = D67CLNT103_HTTP</Trace>
      <Trace level="3" type="T">Attributes of destination: D67CLNT103_HTTP</Trace>
      <Trace level="3" type="T">Type = H</Trace>
      <Trace level="3" type="T">Pipeline = ENTRY</Trace>
      <Trace level="3" type="T">Action = EXECUTE</Trace>
      <Trace level="3" type="T">Host = XXXXXXX</Trace>
      <Trace level="3" type="T">Port = XXXX7</Trace>
      <Trace level="3" type="T">Client = 103</Trace>
      <Trace level="3" type="T">User = XIAPPLUSER</Trace>
      <Trace level="3" type="T">Language = E</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">SSL not active</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="3" type="T">Creating HTTP-client</Trace>
      <Trace level="3" type="T">HTTP-client: creation finished</Trace>
      <Trace level="3" type="T">Serializing message object...</Trace>
      <Trace level="3" type="T">HTTP-client: sending http-request...</Trace>
      <Trace level="3" type="T">HTTP-client: request sent</Trace>
      <Trace level="3" type="T">HTTP-client: Receiving http-response...</Trace>
      <Trace level="3" type="T">HTTP-client: response received</Trace>
      <Trace level="3" type="T">HTTP-client: checking status code...</Trace>
      <Trace level="3" type="T">HTTP-client: status code = 200</Trace>
      <Trace level="3" type="T">Deserializing message object...</Trace>
      <Trace level="3" type="T">HTTP-client: closing...</Trace>
      </Trace>
    check whether connection establishment between XI and R3 is successful or not...
    if you are getting same message as above ,,that means ur RFC is working fine...
    problem is on r3 side.. for this go to r3 and check moni...

  • Superclass for ABAP server proxy?

    Hi Experts,
    I generated an ABAP server proxy by using a synchronous inbound interface of XI.
    Can someone tell me which superclass does the server proxy use? I am trying to send an attachment back to XI in the proxy response but am not able to write the code of it.
    Please help.
    Thanks,
    Shobhit

    Hi Prateek,
    This blog is for sending attachment in client proxy. (Sending data from ECC to XI using a trigger in ECC)
    But my requirement is to send the attachment in server proxy (XI calling the ECC proxy program which returns the attachment back to XI synchronously)
    For this purpose Im not able to use the code in https://weblogs.sdn.sap.com/pub/wlg/3509. [original link is broken] [original link is broken] [original link is broken]
    The server prxoy does not recognize the statement
    attachment_protocol ?= prxy->get_protocol(
    if_wsprotocol=>attachments ).
    as the superclass of this method is not accessable by this proxy interface.
    HELP!!
    Regards,
    Shobhit

  • How to debug XI--- R/3 (abap server proxy) code,  SYSFAIL in SMQ2

    Hi
    i have a XI (BPM) to R/3 (ABAP server proxy) scenario,
    when the data goes from XI to R/3, it is getting stuck at R/3 inbound queue (SMQ2), with status : SYSFAIL and error text: "No roll storage space of length
    3391496 available for internal storage",
    we tried activating the queue/ reexecute the LUW, but it still shows the same error status after running for some time,
    how can i debug the ABAP server proxy,
    pls tell me how can i debug the ABAP proxy code in the R/3
    very critical issue

    Have a look at SAP Note 17965 - No storage space available
    Regards,
    Prateek

  • Sync ABAP Server Proxy - Attachment in Response possible ?

    Hi I need to send an attachment in a synchronous ABAP Server Proxy.
    I proceeded as follows:
    1. design sync inbound interface in PI
    2. generate abap server proxy
    3. implement this abap proxy
    4. tried to attach file to response like this:
        data server_context type ref to if_ws_server_context.
        data attachment_prot type ref to if_wsprotocol_attachments.
        data attachment          type ref to if_ai_attachment.
        data attachments         type prx_attach.
        data lo_protocol         type ref to if_wsprotocol.
        data lo_payload_protocol type ref to if_wsprotocol_payload.
        try.
            server_context = cl_proxy_access=>get_server_context(
            attachment_prot ?= server_context->get_protocol( if_wsprotocol=>attachments ).
            attachment = attachment_prot->get_attachment_from_binary(
                data       = lv_xdata
                type       = if_ai_attachment=>c_mimetype_pdf
                name       = 'my attachment'
            append attachment to attachments.
            attachment_prot->set_attachments( attachments ).
          catch cx_ai_system_fault .
            output-mt_get_documents_resp-fault-fault_text = 'cx_ai_system_fault'.
            output-mt_get_documents_resp-fault-fault_url = 'ERR001'.
        endtry.
    However I cannot see any attachment in the response.
    Q1: is it possible at all to create attachments in sync server abap proxy?
    Q2: if it is, what is wrong with my coding?
    cheers
    simon:)

    Veronica,
        Unfortunately, this was not possible, due to the system EHP state.
    First after upgrade this functionality will be possible ( ECC 6.0 EHP5 - corresponding to NW AS EHP2 )
    For an example, as Stefan pointed out, you might want to open OSS if your system is up-to-date and you need one.
    best regards
    Simon:)

  • HOW TO RUN ABAP SERVER PROXY IN BACKGROUND?

    Hi All,
    I have a ABAP Server Proxy running in WAS 6.20. This Server Proxy runs as a foreground Process when the scenario is executed. if we run a scenario with huge load or run scenarios with continuous load, due to the fact that the server proxy runs as a foreground process, the system slows down and has some performance issues. How to handle this issue.Is there a way to run the Server Proxy as a background Job. Please do help me out.
    Regards,
    Sundararamaprasad.

    hi,
    here's an idea: encapsulate your proxy call inside an object which can be ran in background.... like an IDoc !
    Steps:
    create a zidoc in ECC and use it from PI to ECC to send data (instead of your direct abap proxy call).
    Afer that, in z_function_module which is used to intregate your zidoc, call your abap proxy.
    in WE20 (partner profile), the process mode of your idoc should be of course "Triggered by background program", and then use a job on program RBDAPP01 (with a variant limited to your zidoc) to process your idocs.
    Note:
    1. the only interest to do that compare to create a real IDoc interface is just (in my mind) to call a common proxy or to want to reuse an existing proxy without too more effort.
    2. of course your current proxy call should be asynchronous.
    I never tested it, so it's without warranty !
    Regards.
    Mickael

Maybe you are looking for

  • FILE NAME WITH FILE EXTENTIONS

    HI EXPERTS!! I WANT TO GET THE FULL FILE NAME STRORED IN THE SERVER FOLDER. I USED  FM RZL_READ_DIR_LOCAL BUT I AM GETTING ONLY 32 DIGITS OF NAME NOT FULL NAME AND ALSO SIZE PARAMETER IS CONCATENATING WITH NAME. I WANT THE FILE NAME WITH FILE EXTENTI

  • Windows Shares Not Showing Up In Finder (Master Browser Problem)

    Hi, on leopard I had no problems with Windows shares showing up in finder. However, having upgraded to Snow Leopard, I've now lost that ability. Before I had my Leopard computer set as the master browser. I did this by specifying domain master = yes

  • How to handle Scrollbar's event in the Form Block !

    I want to create three Block like Block : X-axis , Source From View Block : Y-axis , Source From View Block : Cell , Source From Stored Procedure. The relation is (X-axis , Cell) , (Y-axis ,Cell). Then , if i scroll X-axis or Y-axis Scrollbar , then

  • T 410s : the best of Lenovo ever

    Is it only me believing this ? I think this model is the best laptop one can buy today - although it is not as customizable as T410.  It has the right size, the ideal weight and it is worth all its money ( unless there are any "issues" ).

  • Cross company code

    Hi to all nice to meet u Plz clarify my doubt any one What is difference between inbound delivary and out bound delivary. thank u