SAP R/3(Client100 using Proxy)---- XI----- RFC(SAP R/3 client 222) Scenario

Hi all,
I have the requirement to work on SAP R/3 ( with client 100 by using outbound Proxy)-->XI--->RFC(R/3 Client 222).
i have done IR & ID Part. Now i am going to create Report in R/3 side (100 client). But, it is synchronous, i am getting so much confusion. Please help me how to write the code for it.
The RFC is BAPI_EXCHANGERATE_GETDETAIL.
I created Request message, Response message for sender.
The message mappings are as follows:
For Request:
Sender Request------> BAPI Request
For Response:
BAPI Response---->Sender Response.
Interface mapping
Sender Interface---->BAPI.
Request message contains the fields:
Rate Type,
SourceCurrency,
TargetCurrency,
Response Message contains:
Exchange rate,
FactorFromRatio
FactorToRatio.
Please try to understand this requiement and help me to write code for this.
Thanks in advance.
Regards,
Nagarjuna.

Hi Nagarjun,
If you look at the exporting and importing paramters of your Method EXECUTE_SYNC...
You would find the abap equivalent of your Message Type.  Hence you know all the fields.
No it depends on the business Logic, or ratheer what the RFC is suppose to be requested for is filled in an an Input paramter to the Method. 
This can be an IDOC To, in that case your MT should be similar.  Fill in the transmiaaion IDOC values.
OR you can Actually harcode the values, make your Itab, and send it across ( as this is just for test purposes )
Hope this helps.
Regards
Abhishek

Similar Messages

  • How to handle HTTP-POST encrypted data for ECC Using proxy or RFC

    I have a scenario HTTP-POST ->PI->ECC.sender is HTTP Post  send encrypted data i need to handle the data and stored in to SAP ECC  with out decrypt using PI .what should i take for receiver  can i use inbound proxy or RFC  and how can handle the encrypted data  for decrypt.
    Regards
    Ravi

    1. my sender is HTTP POST . what should i configure in sender communication channel in SAP PI .like SOAP or HTTP .What are the parameters i need to pass .
    >>>
    If you are on PI 7.3 and above, configure the HTTP AAE adapter - Configuring the Java HTTP Adapter on the Sender Channel - Advanced Adapter Engine - SAP Library
    2.while using inbound proxy for encrypted data  i need  store the data in to table , the same proxy can i call  another outbound  service for decrypt  same data.
    >>>>
    Yes you can always a proxy within a proxy.

  • SAP B1 error while using citrix server as SAP client

    Hi All,
             We are using Citrix server as client for all our users working in our branches. We have installed sap client in Citrix server and has been accessed by my branch users. We are getting the following error in Microsoft windows
      Microsoft Visual C++ Runtime Library
        Runtime Error
        Program: c:\Program Files\SAP\SAP Business One\SAP Business One.exe
       abnormal program termination ]
    Please help me out solve the above issue
    regards
    M,Viswanathan

    When you got this kind of Run Time Error message, you have no other choice but reinstall. Make sure you do a clean install by delete all temporary files and registration keys.  There quite a few threads discussed this topic in the forum. Do a deep search to find those info.
    Thanks,
    Gordon

  • Use proxy or not

    Is it COMPULSARY to use a ABAP proxy to communicate with a SAP BW system. I am trying to send data to SAP BW system from XI,can't i just use a RFC as my communication channel and send it to BW. I am pretty new to XI,i don't know if this is a dumb question,if the proxy usage is compulsary can some one guide me.
    Thank you
    Venkat

    Hi Venkat,
    <i>Is it COMPULSARY to use a ABAP proxy to communicate with a SAP BW system.</i>
    Not neccessary. This depends on many factors.
    But it is advisable to use Proxy rather RFC because of the Perfomance criteria.
    To more~
    Performance
    Good links on SAP BW and XI are as follows-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8c10aa90-0201-0010-98a0-f071394bc9ae
    http://help.sap.com/saphelp_nw04/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    /people/kamaljeet.kharbanda/blog/2005/09/16/xi-bi-integration
    /people/piers.harding/blog/2005/11/18/interfacing-data-into-bw-using-perl-ruby-or-python
    Hope this helps,
    Regards,
    Moorthy

  • Starting and stoping SAP J2EE engine without using SAPMMC

    Hi All,
    How can we start SAP J2EE engine without using SAPMMC.
    My SAP J2EE version is 6.40.
    Kindly, help.
    Regards,
    Devender V

    hi Devender,
    if your SID = J01 system no# 00, host = hostabc
    open a command prompt,..cd to this exe folder... (/usr/sap/J01/SYS/exe) just cross check if startsap existing or not.
    then run
    startsap.exe name=J01 nr=00 SAPDIAHOST=hostabc
    if the PATH env variable already has a value C:\usr\sap\J01\SYS\exe then you may directly run the command from any folder.. no need to specifically go to the exe folder.
    (if you need help how to set env variable in windows, http://www.cs.usask.ca/~wew036/latex/env.html)
    Regards,
    Debasis.
    Edited by: Debasis Sahoo on Apr 29, 2009 8:56 PM

  • RFC Data to XI, using Proxy ?

    Hi,
    We have SAP R/3 with WebAs 620. I did go through blogs on SDN to use RFC adapter to push data using RFC( Function Module data ) to XI. But i do not see any messages in XI.
    I think our option now is to use proxies and i need help with that.
    Can i create ABAP proxy on WebAs 620?
    Can i create ABAP proxy on SAP R/3 and JAVA proxy on SAP XI and make the communication ?
    thanks
    Udai

    Hi,
    first of all, why are you going to Proxy ? Where is the error ? did you go thru error analysis for the RFC message not being populated into XI?
    <i>Can i create ABAP proxy on WebAs 620?</i>
    >>>yes with plugins for more on-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm
    this blog will help u on patch-/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    <i>Can i create ABAP proxy on SAP R/3 and JAVA proxy on SAP XI and make the communication ?</i>
    >>>You are going to create ABAP proxy in the SAP application systems only i.e R/3.
    Why do u need java proxy ? btw, what is your scenario ?
    Rgds,
    Moorthy

  • Best Scenarios when to use IDOC Adapter, RFC Adapter and Proxy

    Please provide me links/weblogs which demonstrate the full scenario that when to use IDOC Adapter, RFC Adapter and Proxy when working with sender R/3 system.
    Regards
    Rachit

    Hi abhinash,
    Check these links for java proxy
    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
    for ABAP Proxy ...
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    for RFC .....
    RFC-xi-SOAP Scenario
    How to send RFC response message back to XI File/FTP adapter?
    https://weblogs.sdn.sap.com/pub/wlg/3865//Troubleshooting [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    Hope you will find them useful ..
    Regards
    Abhi

  • SAP to non-SAP Communication Using Proxy Framwork

    Hi all,
    While searching for the connection option for the B2B collaboration between SAP and non-SAP business system, i found that there are two ways we can do it.
    One using Adapters and another using Proxy Framework.
    In our case We are on SAP Enterprise and non-SAP business partners are using I2, legacy system.
    They are not using Rosettanet PIPS, so I can not use RNIF or any other adapter for the inbound or outbound operation.
    My question is If we use proxy framework, what needs to be done at the non-SAP business system . Do we need to install proxy runtime and how does this proxy runtime will communicate with the application in non-SAP system.
    Thanks in advance

    Hi Ruby,
    You can use proxies for communicating with ABAP 6.20 systems and above and for J2EE applications.
    For B2B communication you would normally use an adapter for example plain HTTP, SOAP or RNIF ...
    An alternative is to install the XI PCK on the partner side. The PCK is essentially a standalone version of the XI Adapter Engine installed locally at the partner. This enables a scenario where XI communicates with the PCK over HTTP and then an adapter (file, JDBC ...) is used to communicate with the legacy system and vice versa.
    rgds Johan

  • Error occures while Sap R/3 sytem triggers XI message (using proxy class)

    <b>Error occures while Sap R/3 sytem triggers XI message (using proxy class)</b>
    1- I prepared message in XI side
    2- I used sproxy transaction in R/3 side and generate proxy class
    3- I used necessary methods in Abap program in R/3 side
    4- Somethimes, message does not work and generate error like below
    What must I do to solve this problem.  Thanks
    <u><b>Error message (Reported in SXMB_MONI in Sap R/3 side)</b></u><?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
      <SAP:Context />
      <SAP:Code p1="112" p2="HTTPIO_PLG_ICM_CONNECT_FAILED-Fehlermeldung beim Senden der Daten." p3="" p4="">HTTP.HTTP_CLIENT_SEND_FAILED</SAP:Code>
      <SAP:Text language="TR">Error during http send: Error code: 112 Error text: HTTPIO_PLG_ICM_CONNECT_FAILED-Fehlermeldung beim Senden der Daten.</SAP:Text>
      </SAP:ErrorHeader>

    Hi,
    Check thiss
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    Error no 2
    Regards
    Aashish Sinha
    PS : Reward points if helpful

  • Proxy vs RFC

    Hello ,
    We are working on JDBC to RFC scenario in SAP XI,
    We have to do
    huge functionality like calling Two standard Transaction working on two BDC programs and Creating the Log errors and additional performs in side the RFc.
    IS it advisable to do like that..
    Or better to use Server proxy.
    If we use server proxy what are the advantages and issues in this scenario.

    Hi
    it always preferable to use Proxy.....and rfc are used when you donot have any alternate options....
    SAP always advice use proxies and avoid RFCs
    as you know that adavantage of proxies:1. its adapterless communication
                                                               2.it is out of box.
    Kunaal

  • ABAP business system vs. 2 integration systems - using proxy

    Hi guys,
    is it possible to use one abap ECC with 2 PI systems and using proxy classes for both PIs?
    Thanks

    Hi Alakov,
    This is not possible. In a SAP environment, u can have one Integration Server (which is XI/PI) and the rest backend systems act as Application systems.
    These backend application systems point to a single Integration Server using rfc destination (create in sm59). for ex: ECC points to PI from sxmb-adm -> Integration Engine Configuration. Here you set the ECC/backend system as Application system and provide the rfc destn of corresponding Integration Server (ex: dest://INTEGRATION_SERVER_DX1)
    If you have to use 2 PI, then you have to switch between the connections all the time which is obviously not feasible.
    Souvik

  • ABAP PROXY CONNECTION TO SAP/XI

    Hi,
    I have the following scenery: Abap Proxy -> XI->RFC. 
    This abap proxy is installed in the enviroment R/3 in the client 041 and client 210. 
    In the client 041 it is executed with success. In the customer 210 when I execute the program abap a login screen appears in SAP/XI. Typing the login works. 
    The subject is: why in the enviroment cliente 210 does the login screen appear when I execute the program abap and in the client 041 not? 
    I enter in the sxmb_moni and appears the following in the client 210 
    <? xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>  
    - <!--Entrance message  
      -->  
    - <SAP:ErrorHeader xmlns:SAP = "http://sap.com/exchange/MessageFormat"> 
      <SAP:Context />  
      <SAP:Code p1 = "401" p2 = "Unauthorized" p3 = "" p4 = ""> HTTP.HTTP_STATUS_CODE_NEQ_OK </ SAP:Code>  
      <SAP:Text language = "EN">HTTP status code 401: Unauthorized </ SAP:Text>  
      </ SAP:ErrorHeader>

    Hi Sergio,
    When you execute the program abap a login screen appears in SAP/XI. Typing the login works. But It gives error
    HTTP status code 401: Unauthorized
    Because it is using your userID and trying to execute it,
    But it is not having enough authorization.
    Go and check the entry for Integration server in
    Go to SXMB_ADM
    Go to Integration engine Configuration
    Check the Integration server Entry -
    It must be
    http://server:port/sap/xi/engine?type=entry
    The solution is make a RFC destination of type HTTP for XI Integration server
    with Target host - host
    service - http port (like 8000)
    Path prefix - /sap/xi/engine/?type=entry
    And in the logon/security Tab, enter the user name and password for user XIAPPLUSER,
    And again Go to SXMB_ADM
    Go to Integration engine Configuration
    Check the Integration server Entry -
    change it to
    dest://<RFCDESTNAME that you have created>
    This way it will not ask for login and XIAPPLUSER will
    have enough permission to execute it.
    Regards,
    Vijay

  • Proxies Vs. Adapters: When to use Proxy?

    Could somebody list out the scenarios where you would Proxy and where you would use Adapter?
    Use Proxy or Adapter: What is the best practice to develop my integration?
    An Example Scenario:
    Let's say I have data from legacy systems in legacy format in text files.  I have a standard to BAPI to call to send to R/3.  But, I need to do some lookups, code conversions etc. before I call the standard BAPI.  So, we write a wrapper ABAP fucntion, inside there we write lookup codes, and then call standard BAPI.
    Should I do this scenario using Proxy or regular RFC adapter?
    Thanks.

    Hi Sorna,
    You can do both but since you got the wrapper function it's going to be much easier (**and faster**) to use RFC adapter
    - RFC adapter will be maintained for a quite a long time and it's friendy to monitor
    on the other hand proxies are relatively new concept the will be used more extensively more and more in the future
    (that's what SAP says as least) but it can only be implemented with WAS 6.20 and above so not all systems will have that possibility
    monitoring features of the proxies are on the oter hand based on the local integration server (monitoring - TCODE - SXMB_MONI) on the R/3 system and most probably it will even be improved in the near future:)
    but that's just my opinion:)
    hope that you'll hear some more others
    Regards,
    michal

  • How to use proxy in UDF

    In a mapping I need to call an abap proxy with one key field and it will return 5 fields to me. i need to use those five fields in my mapping. How do I use an abap proxy in a UDF ?
    Regards,
    Frank

    Hi Frank,
    AFAIK, You should use RFC Lookup for your requirement.
      1.First create an RFC with one Import parameter and five Export parameters and make it remote enabled.
      2. Use XI's Mapping lookup API's to call the RFC from UDF and get required values and map it to the target fields.
      For more details about RFC and other Lookup API's please refer the following Blogs.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf">XI Mapping RFC Lookup API</a>
    <a href="/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer">Lookup Blog by Alessandro Guarneri</a>
    <a href="/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler Lookups</a>
    <a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/pi/index.html">SAP XI Lookup API-Help</a>
    Regards,
    Ananth

  • Proxy or RFC or IDOC?

    What way is better to connect from XI to web as 7.0?
    In what cases is better to use rpoxy then RFC or IDOC and in what cases is better to use RFC or IDOC then proxy?

    Hi,
    <b>always use IDOCs when possible</b> - error handling etc.
    <a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
    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>

Maybe you are looking for