Doubt in Synchronous outbound Proxy.

Hi,
I am an abaper & new to Proxies.
In My system there is an outbound synchronous proxy.
Proxy Name : ZCO_DUPLICATE_CHECK_SEND_OUT_S
Method name: DUPLICATE_CHECK_SEND_OUT_SYN
Method Parameters: INPUT & OUTPUT.
Can i create a report using this proxy by calling
DATA : CL_DUPLICATE_CHECK_DATA TYPE REF TO ZCO_DUPLICATE_CHECK_SEND_OUT_S .
TRY.
    CREATE OBJECT CL_DUPLICATE_CHECK_DATA.
    CATCH CX_AI_SYSTEM_FAULT.
  ENDTRY.
TRY .
CALL METHOD CL_DUPLICATE_CHECK_DATA->DUPLICATE_CHECK_SEND_OUT_SYN
      EXPORTING
        output = gto1
     IMPORTING
        input  = gti1
CATCH cx_ai_system_fault.
ENDTRY.
Now my doubt is
Will the input parameter give me exact structure i.e. returned table contents or i need to write inbound method for that?
How can i check that the proxy is working fine? i.e. Data is being sent to PI?
TIA
vikash

Hi Vikash,
As others mentioned please check sxmb_moni and see what are you getting out from SAP. Also worth looking at this thread:
Asychronous outbound Proxy test with SPROXY
Regards,
---Satish

Similar Messages

  • Synchronous outbound proxy

    Hi all,
    I need a synchronous outbound proxy in SAP BW from XI. I do not know how to get it or how to implement it. I do not really know how the proxy works.....
    I am thankful for every little help or explanation.
    Thanks in forward
    Peter

    Hello Peter,
    Proxy Generation 
    Purpose
    Proxy generation converts non-language-specific interface descriptions in WSDL into executable interfaces known as Proxies.
    Depending on the target programming language, you choose one of the following:
    u2022        ABAP proxy generation is part of the SAP Web AS 6.40. ABAP proxy generation enables you to generate proxies to communicate by using the Web service infrastructure and by using SAP Exchange Infrastructure. ABAP proxies that were generated from message interfaces in the Integration Repository (IR) can be used in both infrastructures. This means that if none of the Integration Server services are required for a proxy-to-proxy communication scenario in ABAP, you can use a point-to-point connection using the Web service infrastructure instead.
    u2022        Java proxy generation in the Integration Builder (Design) generates proxies from message interfaces in the Integration Repository. Java proxy generation packs the proxy objects in a Jar file, which you can save locally. You use the generated classes in J2EE applications on the SAP J2EE Engine.
    How to create proxy.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm
    How to Activate Proxy.
    How do you activate ABAP Proxies?
    ABAP Server Proxies (Inbound Proxy)
    ABAP Server Proxies
    OutBound Proxy (Client Proxy)
    Smarter Approach for coding ABAP Proxies
    ABAP Proxies in XI(Client Proxy)
    File to R/3 via ABAP Proxy with good example
    File to R/3 via ABAP Proxy
    Debug your inbound ABAP Proxy implementation
    XI: Debug your inbound ABAP Proxy implementation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    Synchronous Proxies:
    Outbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    Hope this info is very useful to you,
    Thanks,
    Satya Kumar
    Edited by: SATYA KUMAR AKKARABOYANA on Dec 17, 2008 3:49 PM

  • Exception handling in synchronous client proxy

    Hi, I have a synchronous outbound proxy-web service scenario. If our Post request (unknown data in the receiver) fails, the receiver system returns a 404 error that results in application error in PI. Now, I want know how to handle CX_AI_APPLICATION_FAULT using the standard fault message type (ExchangeFaultData). I couldn't find any reference for synchronous client proxies using this. I hope you can help me out. Thank you.

    Hi Mark,
    You have a link here How to handle CX_AI_SYSTEM_FAULT in RFC - Code Gallery - SCN Wiki or here https://help.sap.com/saphelp_nw04/helpdata/en/75/a55c3cff8ca92be10000000a114084/content.htm
    I dont know what is your exact problem, you can retrieve certain information in the ABAP code but i usually set a generic message like "Connection unsuccessful" because if you debbug the object the information is so technical to be showed to a client.
    Hope this helps.
    Regards.

  • Error while triggering Synchrous outbound proxy

    Hi,
    While triggering synchronous outbound proxy from a abap program,it is throwing an system fault message. the system fault message is "Application Integration system error".
    Please help me how to avoid this error.
    My code is as below.
      TRY.
        CALL METHOD proxy=>execute_synchronous
          EXPORTING
            output     = op_message
          IMPORTING
            input      = ip_message.
        CATCH cx_ai_system_fault into LO_SYS_EXCEPTION.
          CALL METHOD LO_SYS_EXCEPTION->IF_MESSAGE~GET_TEXT
            RECEIVING
              RESULT = TECHNICAL_EXCP_MESSAGE.
        CATCH cx_ai_application_fault .
      ENDTRY.

    Hi Ashwini,
    Quite possible, there is something missing in the partner profile. There are several threads already in SCN with the same problem. Please refer below and see if it is helpful:
    http://scn.sap.com/thread/319852
    Entry in outbound table not found: Error Status... | SCN
    Idoc Error Status "Entry in outbound table not found "
    Regards,
    Abhishek

  • Error handling using fault message type in outbound synchronous ABAP proxy

    Hi,
    We've a scenario, outbound synchronous ABAP proxy to synchronous SOAP receiver. The requirement is to send multiple records in a single rquest and get response for all the records sent (in the same response message).
    Say if I send 10 records from ECC, I should get 10 records as response from SOAP to ECC. But the problem here is, there could be some invalid requests, for which an invalid error status code should be sent as part of response.
    Source Structure
    Req_Proxy
        req (0..unbounded, string)
    Response Structure
    Resp_SOAP
      Resp (0..Unbounded)
           respString (0..1, String) (carries the actaul response message)
          status code (0..1, String) (carries the status of the response, for ex, 001 (successful), 002 (error))
    And now we are planning to make use of Fault Message Type, to track the errors from SOAP (status code 002). But, we are not sure on how to track this for all the requested records. Is it possible to track the errors for all the requested records in a singe call using fault message type? For eg if 8 records are successful and 2 are invalid, then we should get 10 records in response 8 for valid and 2 for invalid accordingly.
    Please calrify.
    Thanks.
    Rohit

    For eg if 8 records are successful and 2 are invalid, then we should get 10 records in response 8
    for valid and 2 for invalid accordingly.
    Check if you can modify the WSDL structure to include an error node that would get populated incase of invalid entries....this would mean that you get the success and failure details in the single message....also at the proxy-end make the necessary change in your DT.....may be then you do not need to use the fault message...
    Regards,
    Abhishek.

  • Synchronous abap proxy to sysnchronous soap: complex problem

    Hi experts,
    My scenario is synchronous abap proxy to sysnchronous soap. for proxy I am using business system name as ERDCLNT220 and soap business system name as BS_HRS_DEV
    client proxy to soap(request) i have configured. But when I am doing the configuration for soap to server proxy(response) I am not able to get the message interface name in the configuration.
    Note: In the soap BS_HRS_DEV business system receiver only we will get the message interface.
    but we cannot get sender side in the same business system BS_HRS_DEV find message interface. as we are aware as a synchronous scenario both side we have to get the message interface(sender and receiver BS_HRS_DEV).
    2. what are the configuration steps  i have to do for response message
    Kindly help me.
    advance thanks
    thanks and regards
    elton

    Hello,
    client proxy to soap(request) i have configured. But when I am doing the configuration for soap to server proxy(response) I am not able to get the message interface name in the configuration.
    In a synch scenario, you only need to configure it like it is an asynch scenario. The only exception is that the service interfaces are synchronous. Each synch service interface requires at least two messages (request and response), fault message is optional. So for your scenario, at least four messages are required
    1.) 1st message (Outbound request) -> Proxy message type request that will be entering PI
    2.) 2nd message (Inbound request) -> Soap request message type going to the webservice
    3.) 3rd message (Inbound response) -> Soap response message type from webservice going to PI
    4.) 4th message (Outbound response) -> contains the message type that has the values that you want
    So the flow could be like this (fault messages not shown)
    Outbound SI (1) -> PI -> Inbound SI (2)
                (4) <- PI <-            (3)
    what are the configuration steps i have to do for response message
    No additional steps in ID. Just make sure you handle the mapping of response message in ESR (if you have one)
    Hope this helps,
    Mark
    Edited by: Mark Dihiansan on May 3, 2011 10:01 AM

  • Sync Async using proxies ( Calling Outbound proxy from Inbound proxy )

    I'm trying to generate Asynchronous Outbound message from the Synchronous Inbound message message  due to a requirement. My question is : is it really possible to develop such a scenario?. I'm getting weird error such as Kernal exception etc. Please let me know if you have developed such scenario and what should we do dfifferently in such scenarios?. Thank you for any suggestions.

    Hi,
    This error has has nothing to do with Calling Outbound Proxy from from Inbound Proxy. The scenario which you are telling is very much possible.
    It looks like there is some problem in your proxy code while calling RFC from within there or something like that. Try catching the exception and see what is the exact error or put in debug mode and see the step where exactly your code is failing.
    Use the following links for Catching Exception in Proxy
    Inbound ABAP Proxy Trace and error handling
    Handling Exceptions
    ABAP Server Proxies - Fault Handling
    Exception handling in integration processes
    ABAP Proxy and fault messages
    /people/bhanu.thirumala/blog/2006/02/07/abap-proxy--xml-to-abap-transformation
    Thanks
    Amit
    Reward point if answer is helpful

  • Alert in synchronous SOAP- PROXY scenario

    Hi,
    I am woking on a synchronous  SOAP- PROXY scenario. The XI outbound interface has been exposed as web service which is invoked  by .NET application to send the request. The inbound interface is ABAP proxy which is retrieving the data from R3 tables based on the selection criteria in request and sending back the same as response. Now it is required to send an alert to the specified recipient in case there is any application error on the receiver side.
    Please help.

    Now it is required to send an alert to the specified recipient in case there is any application error on the receiver side.
    Check this thread on similar topic....see my reply: Re: raising sap alert in case of "Application Error"
    Regards,
    Abhishek.

  • RFC calls & Synchronous Client Proxy

    If I want to execute a Synchronous Client Proxy, sending request to XI and waiting for response from XI, do I HAVE TO define and import a RFC structure ?
    My doubt is whether implementing RFC is a must in this case, or we can just define a equivalent structure (to the RFC structure: request & response), define all the mapping and create the proxy accordingly and it will work?
    Your help is appreciated.

    Hi!
    No, you don't need to do that. Simply define your interface and generate proxies.
    Peter

  • Synchronous ABAP proxy development

    Hi Folks,
                   What is the process to develop a synchronous abap proxy? I have an inbound interface (going to SAP) in PI that is defined as synchronous but when I look in SPROXY although I have an inbound mesage interface for that message there appears to be no matching outbound message interface to send the response back to PI.
    Ross

    So far some good then The abap proxy was generated by the original developer and has I see the execute_synchronous method as you say. This simply appears to get the database data and fill the outbound structure. The last few lines of the method are shown below
      loop at lt_out_log_tbl into ls_out_log.
        move-corresponding ls_out_log to ls_log .
        append ls_log to lt_log_tab .
      endloop.
                                                                                    append lines of lt_log_tab to lwa_output-mt_sales_order_check_response-sales_order_message-item.
                                                                                    output = lwa_output.
                                                                                    clear: lwa_input,
             lwa_output,
             lt_log_tab,
             lv_so_num.
                                                                                    refresh: lt_bapiret2.
                                                                                    endmethod.
    Once the method ends what is the mechanism that sends the output structure to PI or can I simply assume that is handled by the proxy runtime? I ask as no reponse meesage is arriving in PI at this point in time.
    Cheers,
    Ross

  • Sync abap outbound proxy steps

    Hi friends,
    Could you please help me to send the sync abap outbound proxy creation blogs.
    advanced thanks
    Rao

    hi
    check this
    Outbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    rgds
    Arun

  • ABAP Outbound Proxy: some messages stuck in CRM system

    Hi all,
    we've a strange issue with a ABAP Outbound proxy we've generated in our CRM 5.0 system (asynchronous interface).
    Sometimes messages stuck in the CRM system. They are in status 'Scheduled' (green flag) in SXMB_MONI in the CRM system. When I have a look at the corresponding queue, there's no message within. Status in SMQ1 and SMQ2 is fine, too. All queues are registered. When I reprocess such a message manually in SXMB_MONI in CRM with the restart button, they're sent fine to XI.
    Please note: it's NOT a general issue with that outbound proxy. In most cases the messages are sent immediately, just in some cases the messages stuck and I don't know why.
    Is it possible to restart such messages automatically? I just know the report RSXMB_RESTART_MESSAGES, but that one just restarts messages in Error status. But the ones we have aren't in error status so they cannot be selected with that report.
    Any idea where could be the problem / we should check?
    BR
    Holger

    On which SP r u working correctly. May be an SP upgrade could help.
    Regards,
    Prateek

  • Outbound Proxy is generating Mapping Transformation XSLT error in SPROXY Test

    Hi,
    I have searched already online but i am unable to find anything relevant.
    The scenario is that I have an Inbound proxy for processing the incoming payload and in this code the call is made to the oubound proxy method and i am gettin the MAPPING.TRANSFORMER_EXCEPTION Exception occurred during XSLT mapping of the application
    CALL METHOD outbound_obj->shipment_status_notification_o
    EXPORTING
    output = wa_orders_request_out
    IMPORTING
    input = wa_orders_response_out.
    We just updated the orders_request_out  with a single field and activated and regnerated the proxy in ECC and i can now see the updated structure.
    However, if i take the payload from production and just pass the payload in debug to the above method call  in both Dev and QA with the added field, I am getting the above error.
    I cannot do the proxy debug in production unfortunately so i cannot see if this is happening only in Dev and QA.
    Can anyone please help me as this is urgent and If i can get past this error  i can actually test if processing is working as expected?
    Regards,
    Archana

    Hi Mark,
    I have checked the data type and the field occurrence is 0.1
    The change was made only to the request structure as based on this field value some selection needs to be made. The Response structure was not changed at all.
    I have regenerated the outbound proxy as well and surprisingly even though it was not modified it still did not give me a message that the proxy object has not changed. I had to activate it as changed to inactive.
    I am also not sure why that happened.
    Regards,
    Archana

  • Error in synchronous( abap proxy to soap)scenario

    Hi experts,
    My scenario is synchronous abap proxy to sysnchronous soap. for proxy I am using business system name as ERDCLNT220 and soap business system name as BS_HRS_DEV
    configuration steps are
    1. only client proxy to soap scenario I have done.
    communication channels: only receiver soap adapter. no proxy sender communication channel for client proxy.
    Already we have RFC destination connection and connection type H for proxy to xi.
    1.Is it required RFC destination connection for xi to server proxy.
    2.Is it required receiver proxy communication channel for server proxy?.
    i HAVE TESTED THIS INTERFACE. I am able to send the request. But I am not able to receive the response from soap webservice message .
    error is:
    SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Exception occurred while trying to invoke service method getPerson
    exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Exception occurred while trying to invoke service method getPerson
    Error Adapter Framework caught exception: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Exception occurred while trying to invoke service method getPerson
    Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Exception occurred while trying to invoke service method getPerson. Setting message to status failed.
    Kindly help me.
    advance thanks
    thanks and regards
    elton
    Edited by: eltonsaranya on May 9, 2011 10:27 AM

    Your exception message shows problem at the webservice side.
    Check the following:
    a) you need two mappings one for proxy req to soap request and other soap response to proxy response
    b) You need to create service interfaces both sender and receiver synchronous .
    c) communication channel  QOS is best effort for both sender and receiver
    d) I dont see problem in soap configuration. Bcuz you are able to ping and while getting response from the method getPerson it fails.
    f) See your SOAP response structure matches with WSDL provided.
    g) You can also test outside PI.. I meant testing via soap client tool like SOAPUI  for that web service. So that you know whether problem exists on the target system or not.
    Hope that helps.

  • Outbound Proxy - No XML message seen !!!!!!!!!!

    Hi All
    I am trying to use outbound ABAP proxy from an R/3 system . I have written  a Z program to triger the execute_asynchronous method of the proxy generated. Now when i go to see the SXMB_MONI txn to see any XML message flow i dont see anything .
    Any pointers so to what need to be perfect to see a XML message is the monitor for an outbound proxy??
    Thanks in advance for your help
    rohan

    Hi,
    Generally the message goes in the schedule mode when the target system is not available or the connection to target system is broken. Pl check the target system.
    You can use this weblog as checklist.
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies - Activate Proxy
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies - ABAP Server Proxy
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Client Proxy
    Thanks,
    Prateek
    Message was edited by: Prateek Shah

Maybe you are looking for