How to send data to RFC Destination(RFC SENDER Adapter)

Hi ,
Scenario:  R/3 Backendà RFC Sender Adapterà XIàsome other system.
I have configured the RFC destination (of the type TCP/IP) at R/3 System and have registered the Program ID (specified in the RFC destination) in the XI server and using it in the configuration parameters of the RFC Sender Adapter.
Problem: I do not know how I can send data to the RFC destination. (Should I use a report program/ ABAP Function Module?) Can anybody provide me with a sample code of Report Program/Function module (whichever is required), how to send data to the RFC Destination, so that it may be picked up by my RFC Sender Adapter.
Thanks and Regards,
Siva Maranani

I have one query for you that
I am trying to develop a scenario in SAP XI
SAP R/3 ( RFC function module) sends a synchronous request to the XI and SAP XI will send this request to a third party web application using HTTP receiver adapter.
I am able to send the data/message and it is successfully received at the third party web application.
But I am facing one issue that I am unable to receive any message/data in my RFC module back.i have seen in sxmb_moni that the two messages are displayed in successfuly processed but in SAP R/3 side nothing get happedned
Can you tell me how to use some waiting mechanism in function module to wait for the response from SAP XI.
Regards
Gopesh

Similar Messages

  • RFC Exception COMMUNICATION_FAILURE with Message RFC destination RFC does n

    Hi all , i did a small application in webdynpro abap  by calling BAPI . MY application  is when i enter the studentid and click the submit button i shoutl get student details .
    but when i'm clicking the submit button i'm gettting the error
    "RFC Exception COMMUNICATION_FAILURE with Message RFC destination RFC does not exist. Occurred " can any one help me out.

    hi rajeev.....
        i am sure that you would have used service call.
       in service call, in the destination part, you would have given a name. the service call automatically creates a destination in this name. but your user id would not have had that rights. so only you get this error. either use a already existing destination or get the access for that.
    ---regards,
       alex b justin

  • How many RFC Destinations / RFC Sender Channels

    Hello everybody!
    I have several RFC --> XI --> JDBC/FILE/SOAP integration scenarios. For each scenario I have one RFC Destination created (pointing to XI) in SM59 in R/3. For each RFC Destination I have created one RFC Sender Channel in XI.
    But this doesn't make sense, don't you agree? I should have only one RFC Destination in R/3 to XI, right?
    If that is the case:
    1) Should I also have only on RFC Sender Channel in XI?
    2) What about load balance? What about concurrence? With only one RFC Sender Channel I have to set "Initial Connection" propertie to a big value to be able to handle several RFC calls (to different RFC Functions) in parallel. Is there a limit (a maximum value) I can use in "Initial Connection" propertie?
    Thanks
    Julio

    hi julio,
    <b>Yes</b>. We can have only one RFC to point to Same XI System and in the XI, we need <b> only one</b> RFC Sender too.
    <i>For LoadBalancing and concurrence, refer the links:</i>
    1) https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c3d9d710-0d01-0010-7486-9a51ab92b927
    <i>Limitations regarding RFC Sender</i>
    http://help.sap.com/saphelp_nw04/helpdata/en/58/11e6418b7eca17e10000000a155106/content.htm
    <i>Bonus Link: </i>
    Re: RFC Adapter as Sender
    regards,
    nikhilbos

  • RFC destination for Sender System  in R/3 4.6c

    Hi All,
    I am trying create a RFC destination in R/3 4.6 system which will be used as sender RFC communication channel in Xi scenario. However i dont seem to have all the options such as activation type,gateway host and service which used to be there in SAP Enterprise or mySAP ERP systems. Can some one guide me to create an RFC destination in 4.6 system that will be used as a sender RFC system?

    Hi Arul,
           One more important point u have missed.
    Program ID,
    When ur configuring sender service from RFC,The most important point is Program ID.
    Use some name and create it.Use the same name in SM59.
    s such its very crucial .Activate them .make sure the destination for that programID is what u expect.
    Reghards
    chandra shekar

  • How to configure SCOT/RFC destination to send email to external addresses

    Hi,
    I have an ABAP program which sends out an email to email addresses such as [email protected], i configured SCOT and entered our company exchange server address in the SMTP node, and it works just fine. Problem is the program also needs to send emails to internet mail id's such as [email protected] or [email protected], and here it doesnt work, the email request shows up in SOST as failed saying that the address is unrecognized, we are able to send receive emails from internet id's as well using our email client (outlook), i just have no idea how to get the same to work from my ABAP program, i guess i am missing some BASIS configuration, can anybody help please?

    Please see the following example. Make sure you are setting the recipient type correctly.
    report zrich_0003 .
    data: maildata type sodocchgi1.
    data: mailtxt  type table of solisti1 with header line.
    data: mailrec  type table of somlrec90 with header line.
    start-of-selection.
      clear:    maildata, mailtxt,  mailrec.
      refresh:  mailtxt, mailrec.
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test'.
      maildata-obj_langu = sy-langu.
      mailtxt-line = 'This is a test'.
      append mailtxt.
      mailrec-receiver = '[email protected]'.
    <b>  mailrec-rec_type  = 'U'.</b>
      append mailrec.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'RAW'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Regards,
    Rich Heilman

  • Rfc--- jdbc, how to define data types for the rfc's

    i downloaded the rfc.xsd in to local hard drive. while i am defining the data type i am getting an error. do i have to change any thing the rfc.sxd file please help me
    thanks

    Hi there,
    How did you load the RFC metadata from the SAP system? I assume you are using the standard procedure via your Software component in the (Design)integration builder-Repository your namespace- > imported Objects -> RFC/IDOCS.
    From there after you have entered the necessary details for the SAP system where the RFC exists; you can select from a list the BAPI/RFC you need in your interface.
    Cheers,
    Roberto
    PS: Look at the below link for more information how to do that:
    http://help.sap.com/saphelp_nw04/helpdata/en/d3/35da4105aa3f5de10000000a1550b0/frameset.htm
    Message was edited by: Roberto Viana
    Message was edited by: Roberto Viana

  • How to read data from a GPIB when sending a function generator command

    I'm using Visual C++ with the ComponentWork ActiveX and I'm tring to plot a
    CWGraph using the data coming from a GPIB device. When I write command such
    as "*IDN?" to the GPIB device, everythings if fine and I can read what the
    GPIB device return me. But when I send a command like "SOUR:FUNC SIN;SENS
    DATA?", the writing seems to be okay, but when I try to read the data, I
    alway get a "Timeout expired before operation completed" error message. I
    have tried with the CWGPIB and with the CWVISA but the result are the same
    with both.
    My reading code looks like this:
    COleVariant vReadBuffer;
    vReadBuffer = m_VISA.Read( COleVariant( (short) 2000 ) );
    and it work fi
    ne for "*IDN?" or for multimeters command.
    I want to know how I must read the data for function generator commands.
    Thank alot

    It sounds like your device is not accepting that command string as valid. The string you listed above is probably missing a colon between SENS and DATA. "SOUR:FUNC SIN;SENSATA" Try sending this string in Measurement & Automation Explorer to the instrument first to make sure it is working.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • How to pass data from main vi/exe (sender) to many vi/exe (receivers) with one receiver code/vi?

    Hello all
    I am tring to dev some data distribution system, where one vi gets data from hw to shared variable. Vi compiled to app "sender.exe" The others units (receivers) should receive that data from shared var and write it to different serial ports (configured by user in runtime via control). Number of actually working ports may vary.
    Should (and can?) this "receivers" vi's be the one vi, compiled to app "receiver.exe" and executed many times with different settings (diff serial port number)? // I tried this, second+ execution of receiver.exe just makes existing window active instead of creating new process as it works with other languages.
    Or should i build many different vi (receiver1, receiver2, ... with actually the same content) into different .exe to run them at the same time?
    Or may be the best way to build multi-port receiver with ability to communicate with any number of serial ports? // i dont like this, no code reusage here ))
    The question is complicated with possibility to work via network (one of the reasons to make different exe for receivers) and may be the shared vi namespace may not allow many receiver-side vi's to have the same name?
    In short, it should work as SENDER.exe >> RECEIVER1.exe, 2, 3... i.e. "one to many".
    Asking for a best solution advice.
    Please help)

    ns_create wrote:
    Should (and can?) this "receivers" vi's be the one vi, compiled to app "receiver.exe" and executed many times with different settings (diff serial port number)? // I tried this, second+ execution of receiver.exe just makes existing window active instead of creating new process as it works with other languages.
    To allow multiple instances of the same exe, read this.
    (I don't fully understand your setup, so I won't comment further at this time.)
    LabVIEW Champion . Do more with less code and in less time .

  • How to extract data from a .txt file & send it to a serial port automatically

    Hi all
    I'm a final yr B.Tech student. I am new to the entire LABVIEW thing. But i hear its really good. My dept. in collge has purchased labview & i'm tryng to use it
    As i'm new to labview , i need help plz
    " I want to open a .txt file (in my PC) & transmit all the contents of the file via serial (COM) port to an 89%! microcontroller. Also i want to read the feedback messages from the microcontroller thru the serial port & save it to the same file in the PC.All this must be done automatically. ie, no manual intervention after execution starts"
    Kindly help me as i'm stuck here & unable to proceed further with my project

    here is my 20min try without debugging (needs a rs232 and loopback connector )
    use the probe and highlight the dataflow to see how it works.
    as always:  there are many ways to solve your problem
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    read write file to RS232.vi ‏69 KB

  • How to get data from pdf file and send contents  of the pdf file to R/3

    Hi, experts,
    Action:
    1. Make a pdf forms (interactive form) with inputfield named “A_inputfield” in the webdynpro application and run the webdynpro application.
    2. In the IE, click the save button in the pdf interactive form and save the pdf to local disk,ex: C disk. Close the IE browser.
    3. Open the pdf interactive form from the local C disk and type "aaa" to the “A_inputfield”.
    4. I want to save the "aaa" to the R/3 system using webdynpro or using other tools . How can I do it?
    First way:
    If I use webdynpro application to save the content of the pdf, I don't find a way mapping or binding the content to a context of a view. So I don't think this way is unadvisable.
    Second way:
    Adding a button "submit" in the pdf forms when create the pdf form. Runing the webdynpro application, save the pdf to local disk,ex: C disk.  Opening the pdf interactive form from the local c disk and typing "aaa" to the “A_inputfield”, click the  "submit" button to save the content. Of course, I need to finish the code for clicking "submit" button. But I don't know how  to write these codes and where to write these codes. Do you give me some advise ?
    Best regards,
    tao

    Hi, Abhimanyu L,
    Thanks a lot for your help. Your answer can give me large developmental.:)
    I find http://help.sap.com/saphelp_erp2005/helpdata/en/67/fae9421dd80121e10000000a155106/content through searching google for CL_WD_ADOBE_SERVICES class. But I don't find any exmples for the class. Do you give me some hint for some exmples for the class?
    Best regards,
    tao
    (You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected])

  • How to retrieve data dynamically from db using db adapter in 11.1.1.4 jdev?

    in my bpel process,i am invoking db by passing a variable which is there in db table.with that variable, iam trying to retrieve data.But i don't know the code for dynamic retrieval.I am a fresher.So please help me .

    Hi',
    I think you are trying to do this "select empName from emp where empID=$empid" and the $empid should dynamically come.
    check this http://kr.forums.oracle.com/forums/thread.jspa?threadID=674513
    -Yatan

  • Help with RFC sender, Program And RFC Destination

    Hi!!
    my scenary is asynchronous
         RFC Sender -> SAP-XI -> Oracle reciever
    I have a problem with abap, especially rfc, program and rfc destination. The connection with SAP-XI exist and SAP-XI  receive the message but the message is empty.
    1. In my program on the line
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              catch an error system_failure = 2 and it dont execute the rfc ZBAPI_SD_PED_ORD_SERVIC
    2. I rewrite my program, that line to
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' STARTING NEW TASK 'NEW' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              catch an error communication_failure = 1 but the rfc ZBAPI_SD_PED_ORD_SERVIC is executed but no send to SAP-XI
    3. I rewrite my program, that line to
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' IN BACKGROUND TASK DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              No error but it dont execute the rfc ZBAPI_SD_PED_ORD_SERVIC and the message in SAP-XI is empty, display the tables but not the row. i check the table PED_ORDEN and RETURN but the controls fields dont are afected.
    What is my Error?
    Where am i making a mistake?
    RFC
    FUNCTION zbapi_sd_ped_ord_servic.
    *"Interfase local
    *"  TABLES
    *"      PED_ORDEN STRUCTURE  ZSD_RFC_T04
    *"      RETURN STRUCTURE  ZSD_RFC_R06
      TABLES: zsd_ped_orden, zsd_rfc_r01.
      DATA: tb_ped_orden LIKE zsd_ped_orden  OCCURS 0 WITH HEADER LINE,
                     tb_rfc_orden_error LIKE zsd_rfc_r01 OCCURS 0 WITH HEADER LINE.
    *Get Pedido by Ordenes
      SELECT  *  INTO CORRESPONDING FIELDS OF TABLE tb_ped_orden
              FROM zsd_ped_orden
              WHERE estatus  EQ  space.
      LOOP AT tb_ped_orden.
        MOVE-CORRESPONDING tb_ped_orden TO ped_orden.
        APPEND ped_orden.
        tb_ped_orden-estatus = 'X'.
        tb_ped_orden-fecha_actualiz = sy-datum.
        tb_ped_orden-hora_actualiz = sy-uzeit.
        MODIFY tb_ped_orden.
      ENDLOOP. 
      MODIFY  zsd_ped_orden FROM TABLE tb_ped_orden.
      COMMIT WORK.
    *Errors in Ordenes
      SELECT  *  INTO CORRESPONDING FIELDS OF TABLE tb_rfc_orden_error
              FROM zsd_rfc_r01
              WHERE estatus  EQ  space.
      LOOP AT tb_rfc_orden_error.
        MOVE-CORRESPONDING tb_rfc_orden_error TO return.
        APPEND  return.
        tb_rfc_orden_error-estatus = 'X'.
        tb_rfc_orden_error-fecha_actualiz = sy-datum.
        tb_rfc_orden_error-hora_actualiz = sy-uzeit.
        MODIFY tb_rfc_orden_error.
      ENDLOOP.
      MODIFY  zsd_rfc_r01 FROM TABLE tb_rfc_orden_error.
      COMMIT WORK.
    ENDFUNCTION.
    PROGRAM
    REPORT  ZBAPI_SD_PED_ORD_SERVIC.
    DATA: ped_orden LIKE ZSD_RFC_T04 OCCURS 0 WITH HEADER LINE,
          return LIKE ZSD_RFC_R06 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
         TABLES
              ped_orden             = ped_orden
              return                = return
      EXCEPTIONS
        communication_failure = 1
        system_failure        = 2
        OTHERS                = 3.
    IF sy-subrc <> 0.
      MESSAGE 'error' type 'I'.
    ENDIF.
    COMMIT WORK.
    RFC DESTINATION
    RFC Destination: ZXI_ENVIAR_PED_ORD_SERVIC
    Connection TYpe: TCP/IP Connection
    Register Server Program: ZBAPI_SD_PED_ORD_SERVIC
    Gateway host: host00
    Gateway service: sapgw00

    hi
    For rfc sender adapter we hv to do some settings .Please chk whether this settings are well configured or not.
    a) RFC destination
    b) RFC channel in the XI directory
    This weblog is a response to a few question about the basic configuration of the RFC sender adapter
    that were posted on the XI forum (and also on my e-mail)
    So here we go, basically we have to configure 2 things:
    a) RFC destination
    b) RFC channel in the XI directory
    RFC destination:
    1. To create the RFC go to TCODE: SM59
    2. Create new destination of type T (TCP/IP)
    3. Make sure you select Registered Server Program option before writing your program ID
    4. Write you program ID (remember it's case-sensitive)
    5. In the gateway host and gateway service write the values of your "Application system" - business system (not the XI server)
    7. No configuration in the J2EE administrator nessecary
    Now we can proceed to RFC channel configuration:
    1. Enter your Application Server
    2. Your Application Server Service
    3. Enter your Program ID from the RFC destination
    And we're done:)
    Now you can test the RFC destination in SM59 to see if it works.
    Please chk this following link.
    1. RFC Processing with the RFC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/25/76cd3bae738826e10000000a11402f/content.htm
    2. Configuring the Sender RFC Adapter -
    http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/content.htm
    3.  /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    regards
    Manas

  • How to configure the tcpip RFC destination

    Hi,
               Can any one help me to how configure the TCP/IP rfc destination.
      Thanks in advanced

    Hi Micky,
    Create RFC Connection:
    1. Start the transaction Display and Maintenance of RFC Destinations (transaction code SM59).
    2. Choose Create.
    3. Maintain the RFC destination:
    - RFC destination: <RFC_DESTINATION>
    - Connection type: T for TCP/IP connection
    - Description: <Description>
    - Technical settings
    - Activation type: Registered server program
    - Program ID: <PORTAL_HOSTNAME>_PORTAL_<SID>
    - Gateway host: <GATEWAY_HOST>
    - Gateway service: sapgw<SYSTEM_NUMBER>
    - Logon/security
    - Send SAP logon ticket: Activate
    4. Save your entries.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Steps to create  rfc destination

    hi,
    what are the steps to create rfc destination

    Follow the following steps :
    1. Create RFC destination for both the systems on CRM and R/3 in SM59.
    2. Create the logical systems and assign clients to logical system in SALE transaction both on CRM and R/3.
    3. Create a user in the R/3 table CRMCONSUM with the name CRM.
    4. Maintain the Middlware Parameter tables on CRM : Table SMOFPARSFA:
    Create an entry for following parameter entry:
    Key - R3A_COMMON
    Para name - CRM_DEFAULT_DESTINATION
    Value - R/3 logical system
    5. Maintain the parameter tables on R/3 system : CRMRFCPAR, CRMPAROLTP
    CRMRFCPAR :
    Create new entry with following data:
    User - CRM
    Object name - *
    RFC Destination - RFC destination for CRM
    Load types - All Load Types
    In Queue flag - X
    Send XML – No XML
    CRMPAROLTP :
    Create the following parameter entry:
    Para name - CRM_DEFAULT_DESTINATION
    User - CRM
    Value - Name of the CRM logical system
    6. Create Sites and attach subscriptions in Admin Console : Tcode SMOEAC
    Create a Site as CRM and another as R/3. Attach the required subscriptions to the R/3 site.
    7. Register the queues in SMQR and SMQS transactions.
    PS : For detailed steps refer the Middlware Base Customizings(CR500 and CR100)
    Regards.

  • RFC Destination Seetings Problem between R/3 and XI System

    Hi...
    In my RFC to File Scenario I cant see the messages in MONI......
    When we create RFC destination through SM59.....we will fill gateway host and service
    of R/3......Then we Configure the RFC Sender CC and fill same Program ID, Gateway host & service of R/3.
    My doubt is,after this should I have to configure SM59 at XI side ???.....
    I am getting confused in this RFC Settings between R/3 & XI....Can u explain the flow correctly.....
    Please help me out.....
    Thanks,
    Sudheer.

    Hello Sudheer,
    1.Configure the Sender communication channel by giving the programId there,                    
    2.You need to create RFC Destination at Sender R/3 system pointing to PI, there you need to mention the programId, specified in Sender CC,
    3. In RFC destination you need to specify your XI system details for  Host/ServiceName nameand gateway service .
    Note: programId is case sensitive.
    No need to create any RFC Destination in XI system.
    check the following thread for further clarifications.
    Re: TCP/IP connection for RFC sender adapter
    Regards,
    Prasanna

Maybe you are looking for

  • IBM WPS: Error While Creating App and Int Server Connections in JDev 10g

    Hi, I have been struggling to create App Server and Int Server connections in JDeveloper 10.1.3.4 without any luck. The JDeveloper is present on VM ware machine from which I'm trying to establish the connections to remote server where SOA Suite 10g i

  • Code in before report getting executed but "Job error is: BIP job failed."

    Customer is executing a BIP job that fires a pl/sql procedure via before report trigger. Procedure is completing successfully. But the BIP report is not getting generated. ESS process ends in error with the following error: oracle.as.scheduler.Execut

  • Webservice URL forma issue

    Hi experts i have a scenario JBoss server - > SAP XI - > SAP i had create the webservice in SAP XI through senderagreement --->publish URL its automatically generated the WSDL file URL is like this 1)"http://host:port/dir/wsdl?p=sa/0dacd6e6ede73794b0

  • Find if thesaurus file is loaded or not

    Is there a way to find out if a thesaurus file is loaded in database or not ? also to find the name of the file if we don't know the name. Also when using the following command : ctxload -user <username/password> -thes -name <thesaurus name> -thescas

  • Write text to file

    Hello, I have copied some codes about writing text to file as follows: import java.io.*; public class Write   public static void main(String[] args)     FileOutputStream fos;     DataOutputStream dos;     try       File file1 = new File("C:\\Document