Regarding  inbound synchronous proxy

Hii All,
Can anyone help me regarding inbound synchronous proxy (request-response scenario)
Regards,
Raj

Hi Raj,
We declare flat structure like this : 
wa_input like input-mt_get_notification-message_payload.
To move the data from proxy to work area :
move input-mt_get_notification-message_payload to wa_input.
Now ucan do your desired operation in a method passing it the input and receiveing the output from the method.
call method me->get_task_det_for_notif_no
        exporting
          p_input         =  wa_input
       importing
          p_output        =
         output-mt_notification_response-message_payload-sapresponse
Hope this will help.
Still you face any issue , please feel free to ask.
Regards ,
Vivek
Reward if Useful

Similar Messages

  • Developing AIF Inbound Synchronous Proxy interface

    Hello! I'm trying to develop simple AIF Inbound Synchronous Proxy interface, but there is absolutely no information about it. Cookbook just covers async interfaces.
    So, I just have Inbound sync ABAP-Proxy. I developed inbound AIF interface, entered the inbound proxy class. My interface is working, FM in Action is calling and works correctly.
    But, I have two problems:
    1) I don't understand, how should I get back a response to the Proxy?
    2) I can't see a payload of my interface in AIF Monitoring.
    SP level of AIF is 04.
    Thank you in advance.

    1) I don't understand, how should I get back a response to the Proxy?
    I really want to know how did you implement in you proxy class. In general, if you call /aif/cl_enabler_proxy=>process_message, this doesn't support your synchronous interface.
    My idea is, in proxy class, you could call  CALL FUNCTION '/AIF/FILE_PROCESS_DATA' to process your input request and add you own coding to get back a response or another function module   /AIF/FILE_TRANSFORM_DATA to transform your own SAP data to your response data structure(This need you to define another outbound interface and mapping).
    Brecht is right, this is similar to his outbound synchronous interface.
    You could refer to function module /AIF/SEND_WITH_PROXY.  This function module is designed to support synchronous outbound interface
    2) I can't see a payload of my interface in AIF Monitoring.
    If you want to see input and output structure in Error Handling, I think you need to use XML persistency engine to save your own payload and save this payload via class   /aif/cl_persist_engine_xml method  /aif/if_persistency_engine~update.
    This also could be found in  function module /AIF/SEND_WITH_PROXY for example.
    Best Regards,
    Eric.

  • Exception Handling in Inbound Synchronous ABAP Proxy

    Hi All,
    I am implementing inbound synchronous proxy which has inbound ,outbound and fault message ( same of SAP-PI).
    I am calling a FM inside inside the method. All the business logic is coded in the FM which also handles the exception.
    The exception raised in the FM is captured in the MESSAGE table of type BAPIRET2.
    During testing I found that the exception raised inside the FM( Message Table) is not passed to Fault message
    which is in the proxy method( If sy-subrc 0, raise excption type MT_FaultMessage was coded after FM).
    I found 5 instance under the Fault message exception.IF_MESSAGEGET_TEXT , IF_MESSAGEGET_LONGTEXT ,IF_AI_APPLICATION_FAULT~GET_RT_FAULT_TEXT,
    GET_SOURCE_POSITION and CONSTRUCTOR.
    Kindly provide the input how to pass the error text captured in MESSAGE TABLE of FM to the exception message MT_FaultMessage of Proxy
    Regards
    Alice Rebecca

    Hi Alice ,
    Please have a look at the below document which contains ways to handle different errors and exception.If you still have doubts please revert back .
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502a7f0e-e5d9-2910-5aa2-976a8ed8384f?QuickLink=index&overridelayout=true]
    For more specific i.e to handle the retrun message from a BAPI go through the below link .I assuming that you have exception class  already created and it is available in the Exception tab of the execute_synchronus .
    [http://help.sap.com/saphelp_nw04/helpdata/en/25/a45c3cff8ca92be10000000a114084/frameset.htm]
    Thanks,
    Anjaneya .
    Edited by: Anjaneya Bhardwaj on Jan 13, 2012 6:26 AM

  • Inbound synchronous ABAP proxy in PI 7.1?

    Hi All,
    Can anyone provide me sample ABAP proxy code for inbound synchronous. I have created inbound synchronous service interface, generated proxy in ABAP system. It has only one method in ABAP proxy class with input and output. When I write code ti take the input, process and send an output, its not getting delivered.
    Please help me with sample code or guidence on this. Looks like there are changes in 7.1 when compared with previous versions that EXECUTE_SYNCHRONOUS doesn't exist anymore.Do we just eed to write code in single method with in the class?
    Regards,
    N@v!n

    On Sproxy - >
    Focus on your interface - >
    go to your inbound interface name(service interface) -> double click
    On PROPERTIES TAB -> INTERFACE -> PROVIDER CLASS -> DOUBLE CLICK ON IT ->
    Now One method name is coming - > Double click on it ->
    Congarts ! you will write your code Here ...
    I am Pasting a sample code used in my case , similarly you can compare for your self. :
    __________________________________________________________ Declare Area
    DATA:   IT_INPUT    TYPE  ZPROCESS_ORDER_FILE_ROW_TAB2,
                  WA_INPUT    TYPE  ZPROCESS_ORDER_FILE_ROW2.
    DATA:   IT_FINAL   TYPE  ZPROCESS_ORDER_RESPONSE_RO_TAB,
                  WA_FINAL   TYPE  ZPROCESS_ORDER_RESPONSE_ROW.
    I get this Types from
    go to your inbound interface name(service interface) -> double click
    USED OBJECT TAB
    Here you will get  2 table type Structure for Internal table Finaland Input Both.
    as well as Work area Types.
    _________________  Actual Code -
    IT_INPUT = INPUT-PROCESS_ORDER_FILE-ROW.
    This Structure you get in
    go to your inbound interface name(service interface) -> double click
    USED EXTRENAL VIEW TAB.
    Use ABAP NAME HERE ..
    Populate IT_FINAL according to you and pass it out.
    SImialry for sending Out ....
    OUTPUT-PROCESS_ORDER_RESPONSE-ROW = IT_FINAL.
    Hope it help...
    Still Doubts , Write here ...
    Regards
    Prabhat Sharma.

  • Debugging Synchronous Proxy

    Hi All,
      I am not able to debug the synchronous proxy as it is not stopping if i keep the external break point. How to solve this issue. Can any one provide the solution for the above issue.
    Regards
    Prakash

    Have u tried this?
    XI: Debug your inbound ABAP Proxy implementation
    Regards,
    Prateek

  • ABAP SYNCHRONOUS PROXY

    Hi
    Can anyone tell me the steps for working on Synchronous ABAP Proxy.What are the design and configuration steps which i have to follow for the same.
    Thanks
    Abhishek

    Hi,
    Check below links for PROXY senarios.
    Concepts and examples for Proxy, Abap Client Proxy and Abap server Proxy
    Asyn Inbound java proxy
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Proxy to File
    ABAP Proxy
    How do you activate ABAP Proxies?
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    ABAP Proxy Runtime
    http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm
    ABAP CLIENT PROXY
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    ABAP SERVER PROXY
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies. [original link is broken]
    To test a connection - /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Client Proxy - /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Server Proxy - /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    XI: Debug your inbound ABAP Proxy implementation
    Testing proxy - /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    JAVA Proxies:
    Asynchronous inbpund java Proxies
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    Proxy Generation- For ABAP and Java proxy, create a Message Interface and then generate a proxy for that message interface.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm
    More on Java Proxy-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    ABAP Proxies:
    Integration Builders through proxy server (Part - 2)
    /people/sap.user72/blog/2005/12/13/integration-builders-through-proxy-server-part--2
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Regards,
    Phani
    Reward Points if Helpful

  • Error in SOAP receiver channel in Synchronous Proxy to SOAP scenario

    Hi all,
    We are experiencing an issue with a synchronous Proxy to SOAP scenario. Getting below error message in the SOAP receiver communication channel for the response message.
    SOAP: Response message contains an errorXIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
    Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: com.sap.aii.utilxi.misc.api.ResourceException: Could not determine mapping steps for message 1364b76e-ecbf-11e4-85f4-000023acfde6.
    We are running PI 7.4.
    Any help is appreciated.
    Thanks,
    Pushpa

    Hi,
    Seems the Receiver Webservice is not reachable. Did you try to test it using SOAP UI tool.
    1. Test a fresh message from local SOAP UI tool.
    2. Pick 3rd party WSDL file and Import in SOAP UI tool.
    3. Put some dummy data for mandatory fields
    4. Trigger it msg and ckh if you get successful / response msg.
    5. Check if firewall is open and that URL is not blocked.
    Hope it helps
    Regards,
    Azhar

  • Problem  with Inbound Abap Proxy

    Hi Experts,
    I have an Inbound ABAP proxy scenario that insert data into a ztable. The whole process from XI to R/3 works fine, except it does not update my ztable.
    The only time the ztable gets updated is when i debug it. I used this report "SPRX_TEST_INBOUND" to debug
    Anyone who's had a similar problem.
    Thank you in Advance,
    Danny

    Hi,
    did you use the same XML from SXMB_MONI that gets posted during message flow?
    you can check inside your inbound proxy if the values are not empty etc
    and then raise an exception to see what's going on
    you can also do an endless loop and get inside it to see the real values
    that get passed into the proxy
    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>

  • FILE TO INBOUND ABAP PROXY - " LOOP_IN_MESSAGE_ROUTING  ERROR "

    Hi , 
    Getting the following Error in *FILE TO INBOUND ABAP PROXY* which is updating a Database table in R/3.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="MESSAGE">LOOP_IN_MESSAGE_ROUTING</SAP:Code>
      <SAP:P1>is.01.lgscms</SAP:P1>
      <SAP:P2>IS</SAP:P2>
      <SAP:P3>XI</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>XI protocol error</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    How to rectify the Error..
    Regards,
    Ravi

    Hi Ravi !
    Check if the url for the receiver is
    http://<host>:<port>/sap/xi/engine?type=receiver
    or
    http://<host>:<port>/sap/xi/engine?type=entry
    if using XI 3.0
    Regards,
    Matias.
    Edited by: Matias Denker on Feb 25, 2008 2:12 PM

  • Application ERROR - Fault message Error in Inbound ABAP Proxy !!

    Hi Folks,
    I have got application error while doing in Inbound proxy scenario. This inbound message is ProductActivityNotification, this message has got fault message. This message is triggering for faults. How to control this fault message or how to divert this error as an alert to RWB. Please give me your ideas step by step. Error as follows:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!-- Call Inbound Proxy
    -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>Application</SAP:Category>
    <SAP:Code area="ABAP">APPLICATION_ERROR</SAP:Code>
    <SAP:P1 />
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="http://sap.com/xi/SAPGlobal20/Global">ProductActivityNotificationFault</SAP:ApplicationFaultMessage>
    <SAP:Stack>Application has thrown an exception</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Please find the fault message has got following values
    <?xml version="1.0" encoding="utf-8" ?>
    - <n0:ProductActivityNotificationFault xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:RAS:/1SAI/TAS653D9A9CCD9A8EF3AF9B:701:2009/02/10">
    - <standard>
    <faultText>Proxy Class (Generated)</faultText>
    - <faultDetail>
    <severity>information</severity>
    <text>Start of inbound processing: ProductActivityNotification (ID )</text>
    <id>000(/SCA/BIF_PROACT)</id>
    </faultDetail>
    - <faultDetail>
    <severity>error</severity>
    <text>Message ID is missing</text>
    <id>032(/SCA/BIF_MI)</id>
    </faultDetail>
    </standard>
    </n0:ProductActivityNotificationFault>
    Will you please focus bit light on this error message please?
    Regards
    San

    Hi,
    Check your Source data is correct or not..beofr executing your scenario execute your inboud Proxy with valid data ,
    check below blog...
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    Regards,
    Raj

  • Inbound ABAP Proxy

    Hi All,
      I have an inbound ABAP proxy as the receiver. The class, interface, structure and tables are generated when I created the proxy.
      I edited the method execute_asynchronous to collect the data from the table and send it to another RFC.
      When I tried to populate my internal table using the data from table generated during proxy generation, it gives me an error like"zjssrc_dt-header_tab" is not defined in the ABAP dictionary as table, projection view or database view. But it doesn't give me an error while declaring my internal table of the type "zjssrc_dt-header_tab".
    Any inputs on this will be of great help.
    Thanks & Regards,
    Jai Shankar.

    Hi,
    When you generate your Proxy, there will be some structures created. Here you can see the name of the table type.
    Just create a work are for the same table type and one internal table.
    <i>eg.
    DATA: i_data_records TYPE TABLE OF zback_dt_data_records.
    DATA: wa_data_records TYPE zback_dt_data_records.</i>
    Now move the data from the proxy to your internal table
    eg.
    i_data_records = input-mt_val_in-data_records.
    Now this value <i>input-mt_val_in-data_records</i> for you would be input_<MessageType>_<segmentName thats repeating>
    Now loop through the Internal table and move the data to Work area and then update your table.
    I have taken second weblog as eg. Just see that weblog and read this.
    Regards
    Vijaya
    Message was edited by: vijaya kumari

  • Getting Inbound Java Proxy Exception in method "onMessage"

    I have built an Inbound Java proxy, deployed the EJB, viewed it in the J2EE admin tool, registered the JPR settings (also listAll, reviewed results, looks OK), configure the XI scenario.  When I run the XI scenario using the Runtime workbench I get the following error in the BPM Synchronous Send step (calling the Java Proxy)
    "com.sap.aii.af.ra.ms.api.DeliveryException: Exception in method onMessage".
    Does anyone have any suggestions?
    What causes an "onMessage" Exception?

    Thanks Sudhir  Here is the process I am following to deploy my Proxy, would you please validate it.  Created EJB Project in NWDS, unziped XI gened proxies into ejbModule folder, renamed *PortTypeImpl.template to *PortTypeImpl.java (will add real code later), compiled all code (no errors), edited ejb_jar.xml to match your suggested format, can view EJB Candidates (and see my Proxy Bean), built EJB.JAR file (via Wizard), created new Enterprise Application Project and pointed build path to my EJB Project, within the Enterprise Application Project  I built an EAR file (which includes the "EJB Project JAR File",  Deployed Enterprise Application Project to the XI J2EE Engine.  I can log into XI J2EE Admin and see my EJB Project and the Proxy Bean I am trying to execute.  Is this the process you used to deploy the proxy bean?
    Also you you turn on JPR Tracing to see what parameters are passed into the JPR engine?

  • Synchronous Proxy - SOAP Scenario (Error 500 in Response).

    Hi
    I've built a few Synchronous Proxy -> SOAP Scenarios,
    with 'Do Not Use SOAP Envelope' option.
    For two of them, I'm facing a common error.
    The error is: ADAPTER.HTTP_EXCEPTION (HTTP 500 Internal Server Error).
    When I paste the EXACTLY SAME payload picked up from XI, into the SOAP client, it works giving valid response.
    Trying to figure out the issue.
    R/3 System:
    WAS 620 (Level 0041)
    XI System:
    PI 7.0 (Level 0007)
    SOAP System:
    BizRights (Approva) 3.0
    Any help is appreciated.
    Rajendra.

    Hi,
    Following SAP notes may help you-  804124, 807000
    Regards,
    Moorthy

  • Issue with inbound abap proxy

    I have an Inbound ABAP proxy scenario , the ABAP code inserts data into a ZTable.
    I am having an issue in the runtime where
    1. I see transaction data in SXI_MONITOR of both XI & application system.
    2. if tried to debug with the report SPRX_TEST_INBOUND (as the application system WebAS is 6.20) the proxy code works just fine, and records are inserted in the ZTable.
    records are not getting inserted into the table when run end to end..anybody faced this situation ?
    <b>Appreciate genuine replies....</b>

    Hi,
    but this just <b>has to</b> work
    if this doesn't work then "something realy strange is going around here"
    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>

  • Extended xml handling in asynchronous inbound (server) proxy

    Hello,
    I want to activate extended xml handling on an asynchronous inbound server proxy.
    looking at online help:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/73/3f5c3c3906b006e10000000a11402f/frameset.htm
    this should be the code:
      lo_server_context   = cl_proxy_access=>get_server_context( ).
      lo_payload_protocol ?= lo_server_context->get_protocol( if_wsprotocol=>payload ).
      CALL METHOD lo_payload_protocol->set_extended_xml_handling( abap_true ).
    However the controller tables remain empty when executing a scenario to the application system.
    Also adding a static attribute extended_xml_handling does not have the correct result.
    any suggestions???
    Regards,
    Emile

    Hello Emile,
    do you have a solution regarding your problem? If not, here is a good one.
    I think you have inserted the code inside the generated proxy method. Within this method it is a little bit tricky to get the controller structures filled. This could be done by parsing the input data once more... Here is an code example for this:
    ls_input_data-name = 'INPUT'.
    GET REFERENCE OF input INTO ls_input_data-value.
    APPEND ls_input_data TO lt_input_data.
    lo_server_context = cl_proxy_access=>get_server_context( ).
    lo_payload_protocol ?= lo_server_context->get_protocol( if_wsprotocol=>payload ).
    lo_payload_protocol->set_extended_xml_handling( extended_xml_handling = 'X' ).
    lo_payload_handler = lo_payload_protocol->get_payload_handler( '<Name of structure data element>' ).
    lo_payload_input = lo_payload_protocol->get_sent_request_payload( ).
    lo_payload_handler->get_request_data_from_payload(
      EXPORTING
        payload = lo_payload_input
      CHANGING
        request_data = ls_input_data ).
    But a much easier and better way is to insert the following coding within a constructor of the generated Proxy class.
    lo_server_context = cl_proxy_access=>get_server_context( ).
    lo_payload_protocol ?= lo_server_context->get_protocol( if_wsprotocol=>payload ).
    lo_payload_protocol->set_extended_xml_handling( extended_xml_handling = 'X' ).
    As in each standard ABAP class, you can insert your own constructor within proxy classes. If you do so and insert the code in it the controller table will be filled with the needed information.
    Best Regards,
    Lars

Maybe you are looking for

  • Getting a oracle.jbo.NoDefException: JBO-25002:Entity Association not found

    On using VO.createRow I get an exception that say Caused by: oracle.jbo.NoDefException: JBO-25002: Definition <Association package> of type Entity Association is not found. The Exception logs shows that the error is created in a EO which does not hav

  • Control of vendor consignment stock

    Hello We have agreements with some of our suppliers about vendor consignment stock. Problem is that from a financial point of view, we don't fell we are having enough control about the values of the consignment stock. When the supplier deliver the go

  • Crystal Developer XI without Sap integration kits cant see released Queries

    Hi All! When I'm used MS Excel, I can see released SAP BW Queries via SAP OLE DB access. But when I'm used Crystal Developer XI (without Sap integration kits), I can’t see released SAP BW Queries via SAP OLE DB access. What's a problem here? WBR Arte

  • Profiles for ERP Sales Order

    Dear experts, I'm trying to configure our CRM 2007 system (upgraded from CRM 4.0) in order to call ERP Sales Order functions from the the new CRM WebClient UI. The ERP background system is ECC 5.0. Issue Description: In standard, we should have 2 def

  • MIDlet problem : java.lang.ClassNotFoundException

    Hi, I'd like to write a simple java midlet so I'm looking at the examples on page http://developers.sun.com/techtopics/mobility/midp/articles/midpwap/ . I have Java SDK 1.4.2.10 and J2ME Wireless Toolkit 1.0.4_02 installed on a Win2K pro PC. Each tim