RFC - XI - WEBSERVICES scenario - Where to create RFC Destination

Hi  Experts
For my RFC - XI - WEBSERVICES scenario, I have to create one TCP/IP RFC destination on R/3 system with the following details
RFC Destination Name    : XXXX
Connection Type            : T (TCP/IP)
Activation Type              : u201CRegistered Server Programu201D
Program ID                      : YYYY
Gateway Host                : R/3 Details ..??
Gateway Service           : R/3 Details ..??
My Function Module (Remote-Enabled) - u201CZZZZu201D is defined in R/3 System.
This Function Module should be communicated with the target system i.e. NW XI system 
As per the Note from SAP Help: To be able to communicate using RFC, you need to define the target systems as RFC destinations in the sending system(R/3)
Target system u2013 XI Server
Sending system u2013 R/3 System
Are my details provided are good enough as per my explanation? Please guide me in this regard.
QUESTION : Where exactly do I need to create the RFC Destination(SM59)? on R/3 side or on XI side?

Refer the following link-
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1636235450DB01012070359836134304End?blog=/pub/wlg/1438
what are the inputs should be given to Gateway Host and Gateway Service while creating RFC Destination??
Open transaction SMGW on the R/3 system and choose
Goto -> Parameters -> Display. Beneath Attributes there will be the
entries 'gateway hostname' and 'gateway service'.#

Similar Messages

  • Rfc to webservices  scenario

    hi,
        i am taking 2 FM's in rfc side and i am taking external definition in receiverside i.e in soap side
    rfc to webservices scenario
    could any one help me immediately.
    urs
    suman

    HI
    Refer this
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    Steps
    Import the RFC meta data to PI
    Import the WSDL to PI
    Create MI for RFC -outbound Sync (if response is involved else Async)
    Create MI for WSDL service you want type Inbound Sync (If response involved)
    Create MM(external definition and RFC), IM for these
    Create Sender RFC adapters with SA
    Create Receiver SOAP and do necessary pipline steps
    Thats it
    Thanks
    Gaurav

  • Program id in RFC to webservice scenario

    HI
    I am trying to build a RFC to WS scenario. when we create the RFC destination in R/3 side we need to enter the program ID. How do i know what is the program id i need to enter??
    thanks
    murhty
    Edited by: sudhakar murthy on Aug 20, 2008 7:46 AM

    Hi Sudhakar,
    You can use any alpha-numeric string for the Program ID. Just keep in mind d program ID is a register Program ID that shud be registered on ur R/3 and Xi.
    Now to register the Program ID on R/3 and XI automatically you have to enter the same Program ID in ur RFC destination and ur RFC adapter in Integration Directory.
    Note: You can use even ur name as a program ID but that shud not be used in any other TCP/IP type RFC destination i.e dat shud be unique in ur R?3. Now use the same Program ID(Case sensitive) in ur RFC adapter.
    While testing the RFC destination if the test fails just check whether you have started your RFC sender communication channel or not?
    Hope this will help u
    Regards,
    Rookie.

  • RFC to WebService Scenario  doubt

    Hi,
           I'm passing  parameters from R/3 system  RFC.. and  based on that selection criteria  the data will fetch from the  Remote Application.. and  send it to R/3.. finally my RFC will load these data into  R/3 system. this is my Scenario( that means.. RFC to WEBSERVICE)  so, in the reciever side i should use the SOAP adapter..
         but for these type of scenarios..  is  WSDL file is   mandatory or.. with out WSDL file also can we do the  scenario.. and  if this is mandatory means..  how we will get the WSDL file... 
            because  according to my reqirement i know only the sender system (R/3) and Receiver system(Remote Application) details..  I dont know any thing about  other details..
    please  suggest me what are the things are needed.. so, that i will get from my client..
    Regards
    Jain

    Hi,
    WSDL contains the message /data structure for you input and output.
    If you know the Web Services input /output data , you can create it manually or if you have WSDL, you can directly import in IR and all the request/response message would be generated automatically.
    To call a Web Service, only URL is required.
    You can ask your client to provide the WSDL file.
    Regards,
    Piyush

  • RFC - XI - WebService, scenario error in RFC Test

    Hi
    I am following this scenario
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    and did sender RFC Adapter configuration according to michal's weblog  
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    when I did RFC connection test it gives me the following error
    http://www.flickr.com/photo_zoom.gne?id=1202592205&size=o
    <b>Connetion test:</b>
    Connection type: TCP/IP connection
    Connection error: Program sdnweblogs not registered/ CPI- C error CM_ALLOCATE_FAILURE_RETRY
    Can you pls let me know what is this error , how to solve this ?
    Thanks
    srinivas

    > The Program name which you have defined in the TCP/IP
    > Connection needs to be registered in the J2EE Visual
    > Admin. until you do that this will not work.
    This is not needed at all.
    Your RFC adapter and the TCP IP Connection should use the same Program ID. No need for registering it in the VA.
    Just make sure that the Gateway Host and Service in the Sender RFC adapter and in the TCP IP Connection use the Gateway Host and service of the R3 system.
    Regards
    Bhavesh

  • RFC- XI- WebService / Trouble with Inbound of RFC

    Hi folks!
    i am in troubles!
    i have an rfc:
      CALL FUNCTION 'ZFI_AUSGLEICHMELDUNG_KISS'
        IN BACKGROUND TASK
        DESTINATION 'XD7_SEND_AUSGL_KISS'
        EXPORTING
          i_augkiss = wk_augkiss.
    the structure of wk_augikiss:
    EZDAT     DATUM          DATS     8
    AUGDT     DATUM          DATS     8
    AUGBL     AUGBL_KK     CHAR     12
    AUGRD     AUGRD_KK     CHAR     2
    OPBEL     OPBEL_KK     CHAR     12
    GPART     GPART_KK     CHAR     10
    VTREF     VTREF_KK     CHAR     20
    i fill the structure correctly. debug-session-view of wk_augkiss:
    1     EZDAT     D     8      20060712
    2     AUGDT     D     8      20060712
    3     AUGBL     C     12      000000012345
    4     AUGRD     C     2      02
    5     OPBEL     C     12      000000000123
    6     GPART     C     10      0000100013
    7     VTREF     C     20      00000000000000100013
    but in the SXMB_MONI the payload of the inbound-rfc-messege is:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:ZFI_AUSGLEICHMELDUNG_KISS xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <I_AUGKISS>
      <EZDAT>2006-07-12</EZDAT>
      <AUGDT>0000-00-01</AUGDT>
      <AUGBL>000000012300</AUGBL>
      <AUGRD>00</AUGRD>
      <OPBEL>000000100013</OPBEL>
      <GPART />
      <VTREF />
      </I_AUGKISS>
      </rfc:ZFI_AUSGLEICHMELDUNG_KISS>
    there is a displacement of field-content. i tried to move the fields in the structure in to another place. nothing helped.
    can anybody help me? the scenario should run today :-((
    thank u for ur help!

    Hello Antonio,
    did you find a solution / reason for your issue with the misplaced payload?
    I have the same problem here and no idea.
    Currently we are working with a self developed hot fix on sender side because our problem is in the field order which requires now placing '9' s into the digits of this field which are not transported because empty .
    So order '000001234' is transported as '1234' and so all fields following are misplaced. With '999991234' it works!
    But....
    Any help is appreciated!
    Thank you in advance!
    Dirk

  • Classic scenario, where to create Contract and product category

    Hello All,
    We are using SRM4.0 ( Classic scenario) with non-sap backend system.
    We need to attach contract in Shopping cart in SRM.
      My questions are:
    1. In which system ( EBP or non-sap backed),  we need to create contract?  and how to create it?
    2. In which system( EBP or non-sap backend), we need to define product or product category? and how to create it?
    Regards
    Neelesh

    Neelesh
    When you replicate product categories from any backend system, they get created in SRM and update the value of logical system with the backend from which it replicated.
    You can only create Product category in standalone. You can try to create the same for classic but maintain log syst value with the correct backend. This is not advisable.
    PS : Reward points if helpful.
    Regards
    Jagadish

  • RFC-XI-JDBC Scenario: Help with RFC code

    HI,
    I am doing RFC-XI-JDBC Scenario, where I have to poll the contents of my Ztable in SAP to Oracle.
    The appraoach i am using here is :
    1. Created a FM with import parameters as the fields of my Ztable and without any  export parameter or source code.
    2. Created a report to call that FM in background. The code of my report is as follows :
    ************************REPORT***********************************************************
    Data:       it_zrfc_read_table type table of zrfc_read_table,
                wa_zrfc_read_table like line of it_zrfc_read_table.
    PARAMETERS: tab_name like DD02L-TABNAME.
    Data:       l_tabname type DD02L-TABNAME.
    At selection-screen.
    select single tabname from DD02L into l_tabname  where tabname = tab_name.
    if sy-subrc <> 0.
      message 'incorrect table name' type 'E'.
    endif.
    start-of-selection.
    select * from (tab_name) into corresponding fields of table it_zrfc_read_table.
    loop at it_zrfc_read_table into wa_zrfc_read_table.
    CALL FUNCTION 'ZRFC_READ_TABLE2XI'
    IN BACKGROUND TASK DESTINATION 'ORACLEGIS_RFC_SENDER'
      EXPORTING
        valve_id       = wa_zrfc_read_table-valve_id
        equnr          = wa_zrfc_read_table-equnr
        ernam          = wa_zrfc_read_table-ernam
        invnr          = wa_zrfc_read_table-invnr
        groes          = wa_zrfc_read_table-groes
        elief          = wa_zrfc_read_table-elief
        gwlen          = wa_zrfc_read_table-gwlen
        gwldt          = wa_zrfc_read_table-gwldt
        serge          = wa_zrfc_read_table-serge
        typbz          = wa_zrfc_read_table-typbz.
        endloop.
        commit work.
    NOw my problem is that although I am able to send a table with a single record, but when my records > 1, it is not able to poll.
    Please guide me what can be altered in the code or any other suggestion.
    Thanks,
    Puneet

    Hi,
    Instead of calling RFC many times I would:
    1) create RFM with only one import parameter
    TYPE your_table type
    2) call only once RFM in the report:
      CALL FUNCTION 'ZRFCNAME'
        IN BACKGROUND TASK
        DESTINATION 'RFCDEST'
        EXPORTING
          pt_table = i_table.
      COMMIT WORK AND WAIT.
    This will also improve the performance.
    Regards,
    Jakub

  • Triggering RFC FM in R3 for the RFC to File scenario

    Hi All,
    I am Developing a  RFC-XI-FILE  scenario where i am unable to triger an RFC from the source system(R/3) .I have used the RFC-FM : ZBAPI_COMPANY_GETDETAIL ( which is remote enable)  i havent written any source code in the function module : just i have created only the parameters in the table as :
    Tables:
    COMPANY_DETAIL LIKE  T880
    i have created a source code in the se38 of R/3  to call this function module as :
    DATA: COMPANY_DETAIL TYPE STANDARD TABLE OF T880 with header line .
    selection-screen begin of block blk1 with frame title text-001.
    PARAMETERS : COMP_ID TYPE BAPI0014_2-COMPANY.
    selection-screen end of block blk1.
    start-of-selection .
    SELECT RCOMP
           NAME1
           CNTRY
           LANGU
           STRET
           CITY
           FROM T880
           INTO CORRESPONDING FIELDS OF TABLE COMPANY_DETAIL
           WHERE RCOMP = COMP_ID.
    CALL FUNCTION 'ZBAPI_COMPANY_GETDETAIL'
                   IN BACKGROUND TASK
                   DESTINATION 'SENDRFC'
      TABLES
        COMP_DETAIL = COMPANY_DETAIL.
    COMMIT WORK.
    I have created RFC destination in R/3 as : SENDRFC  of type T with the programid : SENDRFC_PORTAL this same program id is used in the XI sever for the sender RFC adapter .
    When i execute the above program in R/3 the changes are reflecting in the XI when i checked in the SXMB_MONI.
    Please sugest the correct source code if the above source code is wrong  and provide me the exact process to do .
    Regards,
    Bharat .

    Hi bharat,
    >>When i execute the above program in R/3 the changes are reflecting in the XI when i checked in the SXMB_MONI.
    That means your RFC was called and the data was sent to XI.
    >>Please sugest the correct source code if the above source code is wrong and provide me the exact process to do .
    Since XI was called the source code is correct.
    Am I missing something here? Can you provide some details about your requirement/error.
    Regards
    Suraj

  • RFC to JDBC Scenario, Date Transformation error

    HI All,
    I am trying a RFC to JDBC scenario where I am taking date from SAP in SAP Format i.e. 'yyyy-MM-dd' & sending this to oracle DB Where the format is 'MM/dd/yyyy'.
    In Runtime Workbench I am getting Following error: 'java.sql.SQLException: ORA-01843: not a valid month'.
    Can anybody help me on this.
    Thanks & Regards,
    Ruchi Agrawal

    Hi Bhavesh,
         The Date Problem is Solved. It is Working fine with your UDF code. There were some small changes in your UDF.
    Here is the modified code:
    String b="";
    try
    java.text.SimpleDateFormat sdf= new java.text.SimpleDateFormat("yyyy-MM-dd");
    java.util.Date date = sdf.parse(a, new java.text.ParsePosition(0));
    java.text.SimpleDateFormat sdf1= new java.text.SimpleDateFormat("dd-MMM-yy");
    StringBuffer sb = new StringBuffer();
    sdf1.format(date, sb, new java.text.FieldPosition(0));
    b=sb.toString();
    catch(Exception e)
                                                  e.printStackTrace();
    return b;
    Thanks,
    Ruchi

  • RFC to JDBC Scenario ( Error in Date Transformation ) Urgent!!!

    HI All,
             I am trying a RFC to JDBC scenario where I am taking date from SAP in SAP Format i.e. 'yyyyMMdd' & sending this to oracle DB Where the format is 'MM/dd/yyyy'.
            In Runtime Workbench I am getting Following error: 'java.sql.SQLException: ORA-01843: not a valid month'.
            Also when I am testing that source message in message mapping source date is converting to some other date at receiver side.
            Can anybody help me on this.
    Thanks & Regards,
    Ankur

    Hi Suraj,
      I am using the datetrans function of graphical mapping for doing the transformation. I have specified the source format as 'yyyyMMdd' & the target format as 'MM/dd/yyyy'.
      I have checked the input & output XML structure, but still i am getting the same error of Not a valid Month.
      Value of date I am passing is '2006-05-17' & the output I get is '05/12/2005' in Message mapping test using the XML which we are getting from SAP in MONI.
    Regards,
    Ankur

  • Error in Creating RFC Destination

    Hi,
    I am Going for RFC to File Scenario.
    For Sender RFC it < I am trying to create RFC Destination in SAP r/3
    I have Given
    RFC Dest  : XI_CONNID
    Conn type : Tcp/IP
    Activation Type : Register Server Program
    Program ID  :sap
    gateway host : sap-server( Sap server)
    gateway service : sapgw00.
    I saved and I tested but it is showing errors.
    Error : Error in Opening RFC Connection
        Whe i Click on this error message it i showing
         Error  Program sap not registered.
    Points will be awarded.
    regards,
    Jayasimha

    Dear Jaya,
    create a RFC SENDER communication channel first and then activate the channel.
    now go to sm59 there use the same program-id as u did at RFC SENDER COMMUNICATION CHANNEL.
    note:program-id is registered by XI at R/3 level with details related to it's profile(XI profile).
    step 1) create RFC COMMUNICATION CHANNEL with program-id as "any name" at XI first .
    2)create TCP/IP connection with registered program-id created by XI at first step
    so when you execute steps 2 then 1 you will get error ,coz by that time program-id is not yet registere by XI in R/3 domain.
    after executing step 1 i.e creating porgram id at R/3 through XI.
    got to ST22 at R/3 and check whether any dump is found against "XI creating porgram-id at R/3 level".
    we failed at creating PROGRAM-ID itself at R/3 level because of missing authorizations against my R/3 user id,which we will be using at XI RFC channel.
    generally problem will be at PROGRAM-ID creation itself,so just go to ST22 and check any authorizations missing for your userid which is being used at RFC channel configuring at XI.
    Thanks & Regards,
    Rama Krishna

  • What is RFC to XI scenario

    Hi Forum,
    What is a RFC-->XI scenario
    When do we configure Sender RFC channel,
    Does it mean calling a RFC enabled Function Module in XI from a R/3,
    Does it mean executing a Function Module in a R/3 and sending the output to XI,
    how do i go about writing a ABAP code for such a situation (pls provide a sample code)
    How do i make a message interface in XI for the RFC message coming from the R/3 to my XI
    What is the purpose of doing such kind of scenarios
    pls help
    Edited by: sudeep dhar on May 7, 2008 8:58 AM
    Edited by: sudeep dhar on May 7, 2008 8:59 AM

    Hi Sudeep
    What is a RFC-->XI scenario
    >> It means passing data fior RFC call to XI and XI inturn will pass the data to some other application system.
    When do we configure Sender RFC channel
    >> We need this when your RFC call is on sender application system and the processing is done on receiver applciation system.
    Does it mean calling a RFC enabled Function Module in XI from a R/3,
    >> NOP, it doesn't mean calling a function module in XI as XI is just a integration broker it wont process any data.The call is intend for other receiver systems passed via XI.
    Does it mean executing a Function Module in a R/3 and sending the output to XI,
    >> NOP, it is not passing output to XI.
    how do i go about writing a ABAP code for such a situation (pls provide a sample code)
    >>Sample code will contain call to the sender message interface in the configured scenario.
    How do i make a message interface in XI for the RFC message coming from the R/3 to my XI
    >> Import the RFC from the sender system to XI and then you can use that message interface in your scenario creation.
    What is the purpose of doing such kind of scenarios
    >> This is used when you intend to place a RFC call from a sender system to receiver system, so the processing of the RFC is done on the receiver system.
    The main points to be considered while RFC to XI scenario is
    1) The RFC destination is TCP and the program name mentioned in the desnation should be registered in though sender communication channel. The program name mentioned in the RFC desnation and sender commnucation channel should be same.
    Thanks
    Mitesh

  • ** RFC to JDBC scenario - SYSTEM_FAILURE exception comes - urgent help

    Hi Friends,
    I have completed RFC to JDBC scenario. When execute RFC in the system, it throws an exception SYSTEM_FAILURE. What could be the problem ..?  The message is not entered into SXMB_MONI. In the backend system itself, it throws error.
    Kindly reply, friends.
    Kind Regards,
    Jeg P.

    Hi Jeg,
    Check out if u get any info/help in the thread below .. Henrique Pinto's reply and others to this thread.
    How to make Real Time connectivity between R3(RFC) Sender and XI
    File Adapter: SYSTEM_FAILURE_INTERNAL
    More details regarding this exception:
    http://help.sap.com/saphelp_nw04/helpdata/en/22/0425e0488911d189490000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a2/a002416225f023e10000000a155106/frameset.htm
    kanan

  • Regarding  creating RFC connetion

    Dear All,
    I want to create the RFC connection between two different server the server's are
    SAP ecc6.0 with database DB2(IBM) and
    Sap ecc5.0 with database Oracle(9.2.0)
    can I create it, if yes please give me the procedure to do so ,,
    it is very much in need...
    please....
    Regards
    Rahul
    SAP Basis consultant

    Hi,
    using tcode - sm59 create rfc connection
    run sm59
    click on create
    RFC Destination :  SIDCLNT<client number>  i.e SIDCLNT800    ( details of remote system)
    Connection type: 3
    Description :  connection description
    under technical settings--.
    target host:  host name or IP address of remote server
    system number : instance number of remote server
    under logon & security---
    Language :  EN
    Client :  remote client
    User :  your remote client user
    Password : remote user password
    save your connection and test
    regards,
    kaushal

Maybe you are looking for