Debugging a server proxy with attachments

Hello,
Although there are other questions posted about debugging server proxies, I can't figure out how I can debug my server proxy that receives attachments. If I debug the program, because there's no attachment at that point, I get other errors.
There's an unhandled exception in the coding. When receiver SAP system receives the message, the queue is stopped. Can I somehow restart and debug afterwards this erronous message that does carry the attachment?
Thanks,
Gökhan

Hello Gökhan,
did you try inserting an endless loop in the server proxy and start debugging the program from the SM50? This is the way I usually catch processes crossing system borders.
Regards,
Jörg

Similar Messages

  • Abap proxy with attachments in enhanced interface determination/mapping

    Hi guys.
    We were receiving a abap proxy from ECC with a pdf attached in the header.
    This was the scenario PROXY ---> FILE
    We used the PayloadSwapBean Module in a Receiver File Adapter to get this document and put it in a FTP Server.
    Now we have to make and improvement in the scenario and we have to generate two receiver interfaces so the scenario looks like this:
    PROXY ---> FILE and JDBC.
    So we have to use an enhanced interface mapping and an enhanced interface determination.
    The problem is that with this enhanced interface determination/mapping the attached document is lost.
    Any solution?
    Thanks a lot.
    Regards.

    > The problem is that with this enhanced interface determination/mapping the attached document is lost.
    I know there was an issue in early PI 7.1 SP versions. maybe you find a bug fix for this?
    Otherwise report to SAP.

  • Inbound proxy with attachments.

    We've created an inbound proxy.  The inbound message has an attachment.  How do I get access to it, within the inbound proxy method?
    I've got this from the various helps and blogs:
      DATA: lt_attach    TYPE prx_attach,
            l_name       TYPE string,
            l_xstring    TYPE xstring,
            l_string     TYPE string,
            l_type       TYPE string,
            l_attachment TYPE REF TO if_ai_attachment,
    DATA: lr_controller TYPE REF TO if_wsprotocol_attachments.
    * Get attachments
      lr_controller = cl_wsprotocol_attachments=>get_protocol( ).
      lt_attach = lr_controller->get_attachments( ).
      LOOP AT lt_attach INTO l_attachment.
    But lt_attach is always empty. 
    Any ideas?
    Thanks
    matt
    Edited by: Matt on Mar 23, 2009 4:15 PM

    OK, I got it.  I needed the server context in order to get the attachments
    New code:
      DATA: lr_attachments TYPE REF TO if_wsprotocol_attachments.
      DATA:  lr_server_context   TYPE REF TO if_ws_server_context.
      lr_server_context = cl_proxy_access=>get_server_context( ).
      lr_attachments ?=
           lr_server_context->get_protocol( if_wsprotocol=>attachments ).
      lt_attach = lr_attachments->get_attachments( ).
    * instantiate Attachment
      LOOP AT lt_attach INTO l_attachment.
    The final clue came from [here|http://help.sap.com/saphelp_nw70/helpdata/en/51/d5cd16235e4643ae8ec92395c4ad97/frameset.htm]
    Thanks for you help though
    matt.

  • I use the MAIL app with Microsoft Exchange server- prob with attachments

    Occasionally I get an email in MAIL that I KNOW has an attachment but it doesn't appear in my MAIL client. I see no attachment icon at all. I have to go to WEB-MAIL to retrieve it and sure enough it's there. Has anyone else encountered MAIL's idiosyncratic behavior in this regard?
    Another "sometimes" problem is with HTML emails. Sometimes they come in with no graphics, mostly text, lines etc, and sometimes they even look like CODE.
    I think (hope) these things will be solved with Snow Leopard, but in the meantime... Anyone?

    I gave up on mail for exchange and use Entourage for my exchange mail - not helpful I'm afraid but mail simply does not work well with exchange in my experience (and in lots of other's)
    LN

  • Server proxy implementation with synchronous inbound interface

    <b>Hi all,</b>
        How we can implement a server proxy with synchronous inbound interface.If any example weblog please send the link.
    <b>thanks,
    Kishan.</b>

    Hi,
    For sync interface. You have to have a sync MI with both request and response message type.
    when you generate a proxy for the same , you will get a method called execute_synchronous, and import and export parameter.
    You don't have explicitly identify anywhere that the interface is sync.
    Regards
    Vijaya

  • Not able to debug server proxy

    Hi All,
    Iam doing File-Proxy scenario.
    I set a break point in server proxy code.
    But the breakpoint is not getting triggered.
    Please help me in this regard.
    Thanks.

    HI
    If u need to debug the server proxy then just go through the below thread.
    Debugging Inbound Proxy:
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    Thnx
    Chirag

  • SOAP Receiver adapter with attachments not working

    Hello,
    I have a simple synchronous scenario like this; ABAP proxy with attachments to SOAP with attachments.
    The SOAP receiver adapter has been configured with the parameters 'Do not Use SOAP envelope' and 'Keep attachments'. We create our own SOAP envelope with custom SOAP headers, so that's the reason for the 'Do not use SOAP envelope' setting.
    When we test the scenario with an attachment then we get a timeout from PI. However, when we test the same scenario without any attachment then no errors occur.
    The external webservice has also been tested with SOAP UI and it works fine.
    Do you have any clues what the problem can be? What are we still missing in the configuration?
    We did try with the adapter modules such as PayloadSwapBean and the Message TransformBean, so far without success...
    Many thanks.
    Roberto

    Hi Stefan,
    The attachments are not really big, around 150KB.
    According to the other party (Oracle Service Bus) no messages with attachments have been received. In fact it seems like those messages never leave the PI server. SOAP requests without attachments are processed successfully.
    Thanks
    Roberto

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

  • Inbound proxy with attachment

    Hi All,
    I have a scenario where in I need to pick one zip file from FTP and pass it to SAP system over proxy communication.I have searched on SDN,find blogs on outbound proxy but didnt get much information on inbound proxy with attachment.
    Or please suggest if there is any other way to pick the zip file from source and send that zip file to SAP system over proxy.
    Please provide your inputs.
    Thanks,
    Ruchi

    Hi ruchi,
    You can use PayloadSWAPBean and PayloadZipBean for attachment related configuration.
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/45/da9358a1772e97e10000000a155369/content.htm
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Also Please find DOCs for handiling attachment in ABAP codes(Proxy)
    Re: Inbound proxy with attachments.
    http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/content.htm
    Regards,
    Debashish

  • Java Server Proxy Monitoring

    hi......All
    let me explain my scenario.Client java proxy connect to the JMS Server and receive the Messages and send through the XI and Java Server Proxy send that messages to the multiple Queues based on that message ROUTE ID.now the SXMB-Moni showing successful flag but how can we monitor the  java server proxy
    with warm regards,
    madhu

    hi
    ref this
    Re: Java Proxy Monitoring
    Java Server Proxy
    XI Configuration for Java Server Proxy

  • 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

  • Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).

    Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).
    Problem - SFDC does not create cases from emails that have more than 10 MB of attachments. Our clients will not go-live if their clients cannot send in emails with attachments over 10 MBs
    Potential resolution - Configure MS exchange to strip off the attachments(if over 10 MB) and store it in a public folder, forward the email to Salesforce (so the case gets created or the email
    is associated to an existing case), the client should have some way to know if the attachments were stripped off and should be able to dlownload the attachments and continue with case resolution.
    Any help is appreicated!
    Thanks

    Hi,
    From your description, you want to achieve the following goal:
    Configure Exchange to filter the attachments if the size is over 10 MB and store it in a public folder, and then forward the email to Salesforce.
    Based on my knowledge, I'm afraid that it can't be achieved. Exchange can filter messages with attachments, but it couldn't store these attachments on public folder automatically. Also, I don't see any transport rule can do it.
    Hope my clarification is helpful.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Creation of Server Proxy for  Message interface with External Defination

    Dear All,
    I am getting a problem while generating a server proxy for the inbound interface . The request message used in the inbound interface is a external definition which is uploaded using a XSD file. The XSD file was supplied by a third party which is having very high complex strucuture and used lot of abstract data types in the design. When i tried to generate the proxy in the R/3 system (Transaction SPROXY) for the inbound interface i am getting following error.
    Interface uses external and internal message definitions
    Message no. SPRX122 *
    Diagnosis
    In a message interface you can use messages from different sources:
    Message types and fault message types edited in the Enterprise Services Repository
    Messages imported into the Enterprise Services Repository (external definitions, RFC, IDoc)
    In the current message interface, message types from different sources have been used. Since messages from these different sources must be handled differently during proxy generation, such a mixture of messages within a message interface is not possible.
    System Response
    The interface cannot be generated.
    Procedure
    Change the interface definition accordingly in the Enterprise Services Repository.
    Please guide me, how to generate the proxy for the interface with external defination message. I could nt geneate manullay, because it is having very high complexity and its a big structure.
    Is there is any way to generate the proxy for interface with external definition
    Regards
    Vijayanand

    Hi,
    i.       Import your message schemas from external definitions, or RFCs or IDocs from SAP systems. These definitions already contain data types.
    ii.       Create a message interface and reference the messages of the external definition, or the RFC or IDoc message.
    Check this, it may help you
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/01623c4f69b712e10000000a114084/content.htm
    REgards
    Seshagiri

  • RFC with Multilevel Hierarchy call from Server Proxy

    Dear Experts,
    We would like to call BAPI inside a server proxy.
    PI has created an interface structure exactly identical as the BAPI structure, but while generating ABAP proxy, system has added additional controller structure for each hierarchy.
    Now our ABAP team is facing the difficulty to map Proxy structure with BAPI Structure as now the structures are not identical any more due to control structure .
    Also since the BAPI has multilevel hierarchy and to fill the bapi structure from proxy structure (which is having the same structure as bapi but with control records) there are lots of loops required.
    Please share your thoughts on how to get rid of looping on proxy structure when both the structure are identical but only control structure has been added to proxy structure.
    Also would like to know if we can restrict the control structure generation during proxy generation process.
    - Shri

    Yes, you have to read and map the abap proxy structure to bapi structure.
    Take a look here:
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/585f3c482a7331e10000000a114084/content.htm

  • Need some quick help with server proxy on PI 7.1 system

    Hi,
    I am implementing a server proxy on the PI 7.1 system to do some logging to a table. So, when I go the the proxy in sproxy and generate it, in the interface section on the properties tabs I only see a drop down that says point to point enabled. There is no implementing class to click into and thus not method to populate with the custom code. Some direction would be appreciated, I have been working 7.0 for a while, so the missing implementing class is new to me! I know the method name has changed from the execute_asycronous etc... Am I going to the wrong place now to find the implementing method?
    Thanks,
    Chris

    Whoops! Brain cramp. accidentally set the interface to outbound and not inbound in the ESR lol. Sorry.

Maybe you are looking for