Calling abap proxy synchronous ...

Hi everyone.
I have this scenario.
abap proxy (request) -
> XI (BPM) -
> abap proxy (response).
I'm able to send async the data using the proxy and i would like to send the response to other proxy.
The best scenario for me would be if the proxy in sync, the BPM do some checks and finally, sender proxy returns the values.
any idea of how to do this two scenarios?
Regards,
Inigo.

Hi,
>>>abap proxy (request) -
> XI (BPM) -
> abap proxy (response).
are you sure that processing inside the BPM will take less then 30 sec?
if not why do you want a syn call ? do you use this sync proxy call
from an online report in r3 ?
if you don't need a sync report do it in an async way:
proxy - BPM - proxy (which writes the results to a table)
and then from your report you can read from that table...
one of the possibilities
Regards,
michal

Similar Messages

  • Web Service u0096 ABAP proxy  synchronous interface

    hi experts,
    can you suggest me how to do this scenario?
    <i><b>Web Service – ABAP proxy  synchronous interface.</b></i>

    hi,
    you can create a web service on XI
    which will call ABAP proxy (on ERP, SRM etc)
    in a synchronous way (you just need to generate the proxy class
    in TCODE SPROXY)
    then you can fill the method of your generated proxy class
    and you will have WS - ABAP proxy interface
    have a look at this to undrstand server proxy:
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to call abap proxy at run time?

    hello frnds,
    i m working on a scenario in which whenever Invoice is saved in SAP R/3 at that time same data should go to Oracle DB. i m using ABAP proxy on SAP R/3 side and JDBC receicver adapter on oracle side of XI.
    so to post data i need to call ABAP Proxy whenever invoice is saved.. i have tried to find out save event for invoice but not able to get... can anybody tell me the solution that how i can call proxy at run time?
    thanx in advance.
    Regards,
    Hetal.....

    Hi Audumbar,
    Check these ...
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vanita.thareja2/blog/2006/05/23/bpm-sending-message-asynchronously-and-getting-the-response-from-synchronous-system-using-abap-proxies
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    cheers,
    Prashanth
    P.S Please mark helpful answers

  • Abap report for calling abap proxy?

    why do we need  to write abap report for calling abap proxy? i mean what's the use of abap report and what are the things inside the report ...please give me details about abap report.

    Hi,
    In SPROXY for your outbound interface you generate the proxy class.
    The ABAP report is used to fill the data from the ABAP tables and then trigger the call to XI using this class.
    Look into the code in this blog and check what is done,. The data is filled in the report and then the call is made to XI using an object of the class created in SPROXY using the EXECUTE_ASYNCHRONOUS method.
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Regards
    Bhavesh

  • SAP PI 7.4 SOAP - ABAP Proxy Synchronous Webservice

    Hi Everyone,
    I am developing the following scenario:
    3rd party makes a SOAP call to SAP (via PI) to determine whether a vendor exists or not in the SAP system. The link for the call is provided by us from the Integrated Configuration.
    The request comes in, calls an ABAP Proxy to check if a vendor exists and sends a response back to the SOAP call with a 'Y' or an 'N'.
    I've read a lot about various scenarios but I'm having trouble connecting the dots as I'm fairly new to PI. I'd appreciate any help.
    I've made the following set-up based on assuming I need separate Service Interfaces for the SOAP Request & Proxy Response
    ESR
    1. Message Types
         SOAP (MT_SOAP_REQ & MT_SOAP_RESP) - PROXY (MT_PRXY_REQ & MT_PRXY_REQ)
    2.  Message Mappings
         MM_REQUEST    which maps MT_SOAP_REQ   to  MT_PRXY_REQ)
         MM_RESPONSE which maps MT_PRXY_RESP   to MT_SOAP_RESP)
    3. Service Interfaces (Synchronous)
        (SOAP Request)
        SI_IN (Inbound Interface)       with Request = MT_SOAP_REQ and Response = MT_SOAP_RESP
       (Proxy Response)
        SI_OUT (Outbound Interface) with Request = MT_PRXY_REQ and Response  = MT_PRXY_RESP 
    4. Operation Mapping
        OM_LOOKUP which maps SI_IN to SI_OUT with Request    (MT_SOAP_REQ  to MT_PRXY_REQ)
                                                                        and  Response (MT_SOAP_RESP to MT_PRXY_RESP)
    I create the ABAP Proxies for each Service Interface. SI_IN contains the required coded method to check if there is a vendor.
    I create the webservice and binding for SI_IN in SOAMANAGER
    At this point I'm somewhat unsure - what do I need to do for SI_OUT ? Do I need to create a logical port ? how is SI_OUT associated to SI_IN (apart from the Operation)  to get the response.
    ID
    In the Integration Directory I've created a SOAP_SENDER communication channel for System A and SOAP_RECEIVER channel for SAP.  For the SOAP Receiver I need to specify a URL - what should this be ? Is it meant to point to the web service for SI_IN in SICF or just to the generic http://host:8000/sap/xi/engine?type=entry 
    Do I need to use the HTTP_AAE adapter for the receiver instead of SOAP ?
    I created an Integrated Configuration for the SI_IN Service Interface with comm channel SOAP_SENDER from System A and SOAP_RECEIVER for SAP backend.  I then got the WSDL for this to provide to the 3rd Party to test (via SOAP UI)  . Again my concern is how is the SI_IN linked to the SI_OUT to achieve the response ?
    I appreciate you taking the time to go through this .  Any help is greatly appreciated.
    Thanks very much
    Gary

    I create the webservice and binding for SI_IN in SOAMANAGER
    At this point I'm somewhat unsure - what do I need to do for SI_OUT ? Do I need to create a logical port ? how is SI_OUT associated to SI_IN (apart from the Operation)  to get the response.
    >>>>No need to do anything in SOAMANAGER
    Do I need to use the HTTP_AAE adapter for the receiver instead of SOAP ?
    >>> No. Soap adapter is fine. Configure your receiver channel as explianed in the below blog (section 4.3)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70066f78-7794-2c10-2e8c-cb967cef407b?overridelayout=t…
    Again my concern is how is the SI_IN linked to the SI_OUT to achieve the response ?
    >>>>Your receiver determination and interface determination takes care of this.(receiver interface  & outbound processing tabs in ICo)

  • Message flow in SAP PI 7.31 JAVA only for ABAP Proxy synchronous scenario with Oracle DB

    Dear Experts,
    I am working on a synchronous scenario Sender ABAP Proxy <===> SAP PI 7.31 JAVA only <===> Oracle Database.I have successfully
    configured all the proxy configurations as well both Sender SOAP and JDBC receiver channels are showing no error when pinged from
    Cc monitoring in NWA.
    1.During testing at Tx SPROXY , I am triggering a message and after 5 minutes I receive an PARSING error message with 2 messages in ECC
    local IE i.e. Tx SXMB_MONI.
    Note : In NWA , I can see only 1 message that too in cancelled status.
    2.Seeing the trace of the messages I assume that the messages have not moved from sender ECC system. I am still confused with flow of message
    from the Message Audit log. Audit log of error messages.Could any one share the full Audit log of a successful message generated in SAP PI 7.31 JAVA only.
    3.I observed that the QIN Scheduler status in ECC is in INACTIVE status. There is no queue id for 2 messages generated in ECC. Does
    it should in ACTIVE status in Tx SMQR..
    Regards
    Rebecca

    Hi Thomas,
    Valuable inputs..
    1. Since I don't have any audit log for successful message, would you be able to share referring to the
    below screenshot whether the message was put into receiver JDBC adapter and JDBC adapter tried to retrieve the Select response from Oracle Database.
    2.I have done some setting in Advance mode of the receiver JDBC to increase the time out and other parameters as per SAP note but still the issue is same. If you perhaps have some experience in such scenarios, please share some input so that I can ask the Oracle Database administrator exactly what is required from our side.
    3.Regarding the slow response from Oracle , there was some suggestion that the datatype of the request and response should match the column name of the Oracle database. I did that.. Do you have any more suggestion that may be hampering the generation of the response message from the Oracle like SAP note or document.
    Regards
    Rebecca

  • Call ABAP-Proxy with SOAP adapter?

    Hi all,
    for a PI7.1-scenario I would like to use the Lookup-API in mapping. As I know I can use either RFC or SOAP channels, however I would rather call an ABAP-Proxy in my backend system instead.
    So my question is: Is it technically possible to use the SOAP-adapter to call an ABAP-Proxy?
    Your help would be appreciated, best regards
    David

    Hi Stefan,
    Interesting answer here and one that has got me curious. Hope you can help.
    1. When you say it is going to be possible to call a ABAP proxy using a  UDF in the mapping of XI ( Lookup ), would it be using the WS Adapter of PI 7.1?
    2. If 1 is yes, is there a new API code to do this, or is it the same lookup code as used previously in XI 3.0 and PI 7.0 Days?
    3. If 1 is no, can you explain maybe a little more on how this would be possible using the standard SOAP adapter of XI?
    Thanks a bunch.
    Regards
    Bhavesh

  • ABAP Proxy synchronous interface - access to payload

    Hi,
    I have a scenario from ABAP Proxy -> XI -> Web Service.
    On occassion, there is an issue with calling the Web Service (unavailable for instance) and an exception is returned to the ABAP Proxy for a SystemError.
    I am able to catch this exception in the proxy and output the error - for example HTTP.Exception.HTTP.Adapter.
    However, I also want to use information in the response payload to output on the error as the payload contain infrmation on why the error was thrown in the target application - for example - Format of data xxx is incorrect.
    I can get access to the request payload using interface/class IF_WSPROTOCOL_PAYLOAD=>GET_SENT_REQUEST_PAYLOAD but there does not seem to be an equivalent for GET_RECEIVED_RESPONSE_PAYLOAD !
    Have anyone done this before - use payload information in an ABAP proxy from the response payload ?
    Kind regards
    Colin.

    Hi,
    I will need the actual payload info not the status.
    I will have to debug SXI_MONITOR in CRM to see how it is obtained.
    Thanks
    Colin

  • Exception when calling ABAP Proxy modelled in SAP PI: CL_SOAP_RUNTIME_ROOT

    Hi,
    We have a scenario where we:
    1. Modell an interface in SAP PI
       This interface contains a complex type from a different namespace
    2. Use it to create an ABAP proxy in backend system
    3. Configure it with SOAManager
    4. Call the ABAP proxy ws directly from a third-party system (biztalk)
    We're currently testing calling the ABAP proxy from soapUI, but get a strange exception thrown by the SOAP framework in ABAP backend.
    The test in soapUI is setup by importing the WSDL acquired from SOAMANAGER.
    The error message we in the SOAP response is:
    CX_SY_REF_IS_INITIAL:Exception CX_SOAP_ROOT occurred
    (program: CL_SOAP_RUNTIME_ROOT==========CP, include: CL_SOAP_RUNTIME_ROOT==========CM004, line: 130)..
    An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally,
    nor declared in a RAISING clause.Dereferencing of the NULL reference
    It is a very low level error from the CL_SOAP_RUNTIME_ROOT program and not a descriptive error message at all.
    We've checked the user and the authorizations it has, we've redone the SOAManager config but the problem persists.
    We find no dumps in the ABAP proxy since the request never reaches it.
    For a limited time I'll make WSDL and SOAP response available
    WSDL (some values anonymized) available at http://dl.dropbox.com/u/4379928/SOAP/project.wsdl
    Complete SOAP response is available at http://dl.dropbox.com/u/4379928/SOAP/soap_data.xml
    Any ideas on where to look?

    Hi,
    We've now managed to implement a workaround.
    The workaround was to create the endpoint in PI as well.
    So that the traffic goes from third-party solution->PI-> WS-enabled ABAP Proxy
    When we did this initially, we got some errors related to the asynch method of this call, but this was resolved by changing the channel from "best effort" to "Guaranteed delivery". 
    Still we don't know what the root cause of the initial problem was, but we assume it is related to the asynch nature of the service (though we have other asynch proxies that work without problems).
    Regards
    Dagfinn

  • Call ABAP Proxy

    Hi,
    I'm trying to call a proxy interface (outbound) by calling the class behind the proxy.
    everything works... the XML gets created from the proxy and is shown in SXMB_MONI, but unfortunately the XML gets not send to the corresponding Inbound Interface (which is configured in XI)
    if I use SPROXY for testing the Outbound proxy the XML will be sent to the Inbound interface, but not with my class-call
    so what needs to be done before or after calling the class to ensure that the XML gets sent to Inbound Interface?
    I debugged the test in SPROXY and came to class CL_AI_RUNTIME_TEST maybe the following coding needs to be added before calling the proxy class:
            CREATE OBJECT l_proxy TYPE (r3object_sender-class).
            TRY.
                l_routing_prot ?= l_proxy->get_protocol( if_wsprotocol=>routing ).
                DATA:
                  l_routing_prot_local TYPE REF TO cl_wsprotocol_routing.
                l_routing_prot_local ?= l_routing_prot.
                l_routing_prot_local->set_sender( selections->sender-address ).
    but I'm not sure about that... (cannot try this atm)

    solved... COMMIT WORK was needed :-|

  • ABAP Proxy synchronous call to webservices

    Hi,
          I have the following synchronous scenario.
      SAP R/3 outbound proxy <-> SAP XI <--> Webservices.
    When I try to execute the proxy Execute synchronous,I am getting the following exception caught.
    CX_AI_SYSTEM_FAULT.
    What could be the possible reason for the exception to be thrown?
    Thanks,
    Leo

    Hi,
    This exception is thrown when there is an error in XI in a sync call.
    What does your message display show in SXMB_MONI in XI ?
    Kind regards
    Colin.

  • Abap proxy call : synchronous / background ?

    Hi,
    I use currently abap proxy call to send data from ECC to XI, and it works fine ! But... I would like to know two points :
    1. Is it possible to execute SYNCHRONOUSLY this call abap proxy and not only in asynchronous...
    2. Is it possible to execute in BACKGROUND this call abap proxy, because it seems it use a dialog process, even if the call is inside an abap program executed in background
    I will appreciate your feedbacks on these both points ?
    Regards.
    Mickael

    Hi,
    Yes, we can do Sysnchronous call in Proxy.
    and we can do the Background job schedule also in Proxy .
    Reffer this help file
    http://help.sap.com/saphelp_nw04/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm
    Reffer this BLOG also
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
    Regards
    Seshagiri
    Edited by: N V Seshagiri on Feb 12, 2008 11:19 AM

  • ABAP Proxy to HTTP Synchronous

    Hi All,
    My scenario is ABAP Proxy to HTTP POST synchronous, while I am trying to execute the scenario I get the following error in SXMB_MONI:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
      <SAP:P1>404</SAP:P1>
      <SAP:P2>Not Found</SAP:P2>
      <SAP:P3><Exception><Status>The resource you requested does not exist</Status><Reason>Event does not exist</Reason><Code>404</Code></Exception></SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>HTTP server code 404 reason Not Found explanation <Exception><Status>The event resource you requested does not exist</Status><Reason>Event does not exist</Reason><Code>404</Code></Exception></SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    What I understand is the target HTTP server sends a error response because my request xml data is not valid
    How do I structure my response message type and how do I map this response to the calling ABAP Proxy. The target HTTP server says if the data is fine they will send a success message in the http header, how do i map this response from http header back to calling ABAP Proxy.
    Thx in advance
    Ravijeet

    Hi Abhishek,
    The target http server says that if my xml request data is valid then they will send a response back in the http header in a field call route.
    And if the xml request data is not valid then they will throw an exception, which I am getting from the target http server as below in SXMB_MONI :
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter   -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
      <SAP:P1>400</SAP:P1>
      <SAP:P2>Bad Request</SAP:P2>
      <SAP:P3><Exception><Status>Bad Request</Status><Reason>ActivityId and ActivityStep combination already exists</Reason><Code>400</Code></Exception></SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>HTTP server code 400 reason Bad Request explanation <Exception><Status>Bad Request</Status><Reason>ActivityId and ActivityStep combination already exists</Reason><Code>400</Code></Exception></SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    What I want to know is do I need to create a response message type as below:
    <?xml version="1.0" encoding="UTF-8"?>
    <Exception>
       <Status/>
       <Reason/>
       <Code/>
    </Exception>
    Thx in advance
    Ravijeet

  • ABAP Proxy generation descrepencies with filed and method...

    Hello,
    I have two question regarding ABAP Proxies.
    The first one when i regenerate proxy for a interface, It is not generating the same filed as before and my ABAP program fails.
    I have Internal_organization_Descri -- Now, It is not giving same field rather It is giving Internal_organization_Descr
    It is missing 'i'
    One more problem is It is chaging method also
    Previously it was showing "Sales_order_Sync"
    Now, It is showing method as EXECUTE_SYNCHRONOUS
    Why It is these proxies behave differently, is there Service Pack dependency.. What is the best way to avoid these descripencies...Pls help
    Srinivas

    Hi,
    Please find the explantion about your doubts on ABAP Proxy.
    1. The field names might be changed based on the changes in XI in Data type for this field.
    Whenver you will be regenerating the ABAP Proxy, it considers the Message type and internally the Data types that have created in XI. So any changes in these objects may lead to change.
    Verify your field names in XI
    2. The Method to be used to call ABAP proxy is EXECUTE_SYNCHRON for Synchronous communciation and EXECUTE_ASYNCHRONOUS for async communication. These methods are used in ABAP source code. So please let me know where you had find this method "Sales_order_Sync"
    The EXECUTE_SYNCHRON is the proper method.
    Let me know if you need any more info.
    Refer
    ABAP Proxy outbound program - purchase order send
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    ABAP Proxy inbound program - sales order creation - Community Profiles - Wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    Thanks
    Swarup

  • Problem receiving acknowledgement: abap proxy == file adapter

    Hi experts,
    I am developing an asynchrone interface using PI 7.0. The scenario is: SAP ==> FILE.
    In SAP I have created an abap proxy in wich I requested an acknowledgement when calling from the abap code. In PI I have created an Integration Process with a receive step, and a send step. In de send step I am asking for a transport acknowledgement.
    When I test the interface and I look in the SXMB_MONI in PI, I see the acknowledgement given back to the IP, but in the SAP backend system I don't receive anything in the abap proxy which had send the original message. In de SXMB_MONI from SAP I see a "?" Still awaiting  acknowledgement.
    Can anyone help me with this scenario? I really need an acknowledgement from the file adapter in the calling abap proxy.
    Regards, Jeroen

    You need to crate a REceiver Agreement for this sender...
    The Integration Server sends an acknowledgment message back to the sender (CENTRAL_BACK). It uses the name of the sender system for logical and technical backward routing.
    If the sender is addressed using an ABAP proxy, you must define a corresponding receiver agreement for this sender.
    http://help.sap.com/saphelp_nw04/helpdata/en/29/345d3b7c32a527e10000000a114084/content.htm
    -SM

Maybe you are looking for

  • Query to close a framework PO that is no longer use

    Hi Gurus, We need your expert advise on this issue. We want to close a framework PO that is no longer used. Item category of this PO is Service and there is no delivery completed indicator. When we go to ML81N, entry sheet was already accepted and th

  • Why do I see numbers appended to my Certs after renewal?

    Hi, When I built my Offline Root CA and created its Cert the first time, it was named Server_RootCert   Was easy to understand and I brought Server_RootCert over to the Issuing CAs, etc. When I renew my Offline Root CA Cert, what I see is numbers cre

  • After Effects CS6 running painfully slow

    I am working on a composition in Adobe After Effects CS6, and it's running painfully slow. I've tried to mess with some of the settings in the preferences, and lowering the quality of the preview. But I still feel like I'm running terribly slow consi

  • New SP, New Problem - UPK 3.6.1 Enablement Service Pack 3

    Hi All, Yesterday, I installed the UPK 3.6.1 Enablement Service Pack 3, and as soon as I started with my UPK session, I opened an existing document and started to publish it. The behaviour is different from the 3rd step: 0) Some times at the very beg

  • Direct GL accounts in MIRO

    Dear All, I have configured direct GL posting in MIRO for some special requirements. But client want to have a control that, for a particular PO doc type only the GL account tab as to appear. How to achieve this? Regards