Syncronous RFC to File Server Scenario

Hello,
I have this requirement for the XI Scrnario.
SAP 4,6 (RFC) needs to pick up XML file placed on Remote File Server.
RFC need to be executed on SAP which should make a call to XI and in turn File server, pickup the XML file from the server, bring it back to XI , do mapping and send the structure back to RFC.
This is Syncronous scenario.
Can naybody tell me how to do it.
i have searched it, but got more confused.
Appriciate your help.
Thanks.
DK

there exist a way around for this,but there are few(may be lot) constraints on it.
first of all you should know all the directories before hand from which you can get files,secondly you should know about the filenames too
what you can do is give all the directory names in the sender file adapter,similarly give the corresponding fileanames as well,XI will pick all the files in all the directories which satisfy the criteria one thing you need to make sure here is that if you don't want a certain file to be picked by XI,then it must either not exist in the directory or it must have a different names.
even though this is not completely dynamic but it solves the prupose if all the constraints are fulfilled and sender file adapter has been configured properly
Thanx
Aamir

Similar Messages

  • RFC-XI-FILE Asynch Scenario

    Hi All,
    i am working RfcXiFile Asynch. Scenario by using Proxy. i created ABAP proxy in R/3 system and exececuted in XI server. it's working fine. All design and Configuration in IR, ID over. i tested the configuration, it's fine. But the problem is file is not created in the receiver.
    and no messages will be displayed in SXMB_Moni. Anybody came across this situation, Please let me know the solution asap.
    Thanks & Regards,
    Nagarjuna.

    Hi Sarvesh,
    What i have done exactly is:
    After completeting the design part in IR,  i created a proxy class in R/3 by using the SPROXY tcode. There,  the following objects are generated, they are
    Class ZSRCO_RFC_RESP_MI Proxy Class (Generated)
    Structure     ZSRRFC_RESP_DT1     Proxy Structure (Generated)
    Structure     ZSRRFC_RESP_MT1     Message type for RFC Response
    then i create report in R/3 by using SE38,
    there i called the function module and my internal table gets populated.
    in the same report i created the object for my proxy class and called the proxy also.And i declared the data for proxy class & structure.
    The same report i executed in XI server, the data is displayed.
    but in SXMB_MONI, no messages are displayed.
    i am sure that i configured receiver communication channel properly.
    For this scenario, sender communication channel is not required, becuase instead of that we are using the Proxy right?
    So, please try to under stand my scenario and get back to me with proper solution.
    Thanks,
    Nagarjuna.

  • RFC-XI-File Adapter scenario

    Hello SDN members,
    We are about to start the configuring XI 3.0 for connecting the SRM Module as a source and Portal as a destination to transfer a file. We are planning to have a function module to generate the flat file from SRM.
    We need to process the data file from SRM to a portal.
    Could some body suggest me the process flow to accomomplish this ?
    Appreciate your time.

    Hi Steve,
    If the SRM module is creating a file, and the file has to be transfered from SRM system to Portal system, then you need to look at configuring a 'File -> XI -> File' scenario.
    To work with File-XI-File scenario, refer to this blog:
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    If you are looking at a just <b>Flat file transfer</b> and no mapping in XI, then:
    it is possible to create a scenario to transfer any sort of files : including binary files.
    <b><u>Steps:</u></b>
    In Repository:
    Create a data type (say dtBlob) with one field (data) of any type (xsd:string)
    Create a Message type (mtBlob)
    Create Two Message Interfaces (miBlob_IN & miBlob_OUT) : Aysnchronous Inbound & Outbound interfaces.
    Message mapping & interface mapping are not required.
    In Directory:
    Create a Sender Agreement with this interface (miBlob_OUT)
    Create a Receiver Agreement with miBlob_IN
    Create Receiver Determination: From SRM system to Portal.
    Create Sender channel for SRM system - File/FTP Adapter
    Create Receiver channel for SRM system - File/FTP Adapter
    <b><u>Process flow:</u></b>
    Input Flat File (from SRM) is read by File/FTP Adapter and passed as it is to Integration Engine. It can be archived after pickup.
       The flat file is not parsed into XML here.
    Since no interface mapping is specified in XI, the same data is passed onto the target message.
    The same data is passed further passed to the Target File/FTP adapter of Receiver.
    The receiver adapter creates the file in the target destination.
    Flat File transfered.
    Hope this answers your concern.
    -- Pops V

  • Issue in Sync-Async bridge(RFC to File) scenario

    Hi All,
    My scenario id RFC to file synchronous scenario.Following the below link, I configured everything and its working fine. I am working on SAP PI 7.31 Dual Stack.
    http://scn.sap.com/blogs/henrique/2007/08/02/syncasync-scenarios-without-bpm
    As mentioned in the above link, I created the file with Message Id as file name and correlating with the message id(Using WaitResponse and Notify beans).Its working fine. But I don't want the file name to be as Message Id. Then in that case, please suggest me how can I correlate the request and response messages.What are the possible ways of doing it.
    Thanks,
    Madhurima

    there is not a best way, just what you need to archive, take the file name as you mentioned is not the best practice, so you can use another parameter provided by SAP.
    To evaluate the following attributes in the PI message header, set the corresponding indicators:
    ○  File Name (technical name: FileName)
    ○  Directory (technical name: Directory)
    ○  File Type (technical name: FileType)
    ○  File Encoding (technical name: FileEncoding)
    do any of them are good for you?
    Rdgs

  • R/3(RFC)-----XI---------FILE  scenario

    Hi All,
    I developed the scenario like RFC>XI->File Asynch Scenario by using ABAP Proxy(Client). Can i use business service for receiver in this scenario?
    All http connections between R/3 and XI are configured. Could you please explain me how to test this scenario.
    Thanks<
    Nagarjuna.

    Hi,
    1) Check wether the Message Mapping is working correctly by testing with test data.
    2) You can test ur complete scenario in Configuration from TOOLS -> Test Configuration.
    There u can find whether Sender Agreement,Receiver Agreement,Interface Determination and Receiver Determination are correctly configured. By giving Payload.
    3) Check your Communication Channel in RWB.
    Because if u r using Content Conversion, there will be some problem. So check this.
    Thanks,
    Kish.

  • Error in RFC to FTP asynchronous scenario

    Hi Experts,
    I have created RFC to File(FTP) scenario in SAP PI 7.31 AEX(java only) server.
    When I execute RFC in sender SAP server, it gives run-time error(dump) as "call to messaging system failed".
    But it successfully creates text file in target FTP server.
    In message monitoring I found 2 messages for this.
    First has status 'Canceled' with below message log,
    Second message has status as 'Log Version' with no message log and with below message details.
    Please suggest/guide me how to rectify this run-time error.
    Thanks,
    Amit Patil

    Hi Jens,
    I tried your suggestion, but couldn't work.
    But I found 1 doubtful thing which is Quality of Service. It is found as
    Quality of Service
    BE
    in message details of 1st message.
    Also in message content of 1st message it is as
    9/18/2014 1:36:51.053 PM
    Information
    File adapter receiver: processing started; QoS required: BestEffort
    I don't know from where is getting set as 'BE'. It should be 'EO' since my scenario is asysnchronous.
    Please suggest.
    Thanks,
    Amit Patil

  • RFC to File

    Hi
    Can anyone give me step by step procedure for creating an RFC to FILE scenario in XI

    Hi,
    this is just a simple rfc to file (asynchronous scenario).
    import RFC from other server to xi server.
    http://help.sap.com/saphelp_nw04s/helpdata/en/af/7ad9beab5e824cb2403f6821cde7dd/frameset.htm
    create DT,MT,MI(inbound async) for receiver file
    create MI(outbound async) for RFC(as its async,u need MI ,else for sycn RFC no need of MI)
    create MM between RFC request and File
    create IM
    Create sender CC,receiver CC,sender agreement,receiver agreement,interface det and receiver det.
    hope this may help you in configuring adapters.
    http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    How to test the RFC to Flat File scenario
    How to test the RFC to Flat File scenario
    reward points if it is helpful.
    regards,
    pradeep A.
    Edited by: Pradeep Amisagadda on Apr 30, 2008 8:36 AM
    Edited by: Pradeep Amisagadda on Apr 30, 2008 8:41 AM

  • 2012 R2 - Clustering High Availability File Server

    Hi All
    What's the difference between creating a High Availability Virtual Machine to use as a File Server and creating a 'File Server for general use' in the High Availability Wizard?
    Thanks in advance.

    Hi All
    What's the difference between creating a High Availability Virtual Machine to use as a File Server and creating a 'File Server for general use' in the High Availability Wizard?
    Thanks in advance.
    What's your goal? If you want to have file server with no service interruption then you need generic SMB file server built on top of a guest VM cluster. HA VM is not going to work for you (service interruption) and SoFS is not going to work for you (workload
    different from SQL Server and / or Hyper-V is not supported). So... Tell what do you want to do and not what you're doing now :)
    For a fault-tolerant file server scenarios see following links (make sure you replace StarWind with your shared storage specific, I'd suggest to use shared VHDX). See:
    http://technet.microsoft.com/en-us/library/cc731844(v=ws.10).aspx
    http://technet.microsoft.com/en-us/library/cc753969.aspx
    http://social.technet.microsoft.com/Forums/en-US/bc4a1d88-116c-4f2b-9fda-9470abe873fa/fail-over-clustering-file-servers
    http://www.starwindsoftware.com/configuring-ha-file-server-on-windows-server-2012-for-smb-nas
    http://www.starwindsoftware.com/configuring-ha-file-server-for-smb-nas
    Hope this helped :)
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.
    The goal is a file server that's as resilient as possible. I need to still use DFS namespace though. Its on a Dell VRTX server with built-in shared storage.
    I'm having issues getting the High Availability wizard for General Purpose File Server to see local drives :(
    So I'm just trying to understand the key differences between creating one of these and  a hyper-v server with file services installed.

  • Rfc to file bpm synchronus blogs

    Hi ,
    Can anybody suggest me best rfc to file BPM scenario weblogs??

    Hi Gowri,
    Check the below blogs:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    Please search in SDN before posting a question....
    Thanks,

  • Regarding RFC to FILE - Multi Mapping

    Hii
    I am doing BAPI/RFC to File Asynchronous Scenario. The data is being Pushed from SAP via BAPI/RFC. For testing, I am sending the data form Test tool of RWB.
    I am sending single BAPI/RFC with 3 PO, in the target I should get 3 files generated. I am using Multi Mapping. I am using Dynamic configuration for Filename and created UDF. My target filename should be Process_Order_%y%y%y%y%M%M%d%d%H%H%m%m%s%s
    I had Mapped the UDF to the root node.
    In the SXMB_MONI, I am able to see 3 files getting created. But in the target folder I am getting onlly 1 file with the 3rd PO content and the file name is correct. The first  2 PO's are missing.
    When I testted the same with out UDF using Add timestamp in the File Adapter, i am able to get 3 files generated.
    Any Inputs would be appreciated.
    Regards,
    Varun
    Edited by: Varun Reddy on Jul 2, 2009 10:20 AM

    But in the target folder I am getting onlly 1 file with the 3rd PO content and the file name is correct. The first 2 PO's are missing.
    When I testted the same with out UDF using Add timestamp in the File Adapter, i am able to get 3 files generated
    The files are not missing but the 1 and 2 files are getting overwritten by the 3 file........what is the name that is generated for the files by the UDF....i doubt it is the same name...and hence this is happening....
    Whereas when you are using the Timestamp option you are getting all the files since the names are different......so that means you have to make some change in the file names so that you get all the three files....else there doesn't seem to be any workaround...
    Regards,
    Abhishek.

  • RFC destination for RFC to File scenario

    Hi,
    I m creating a TCP/IP RFC destination in R/3 system for my RFC to File scenario.
    Step 1:
    For this a Registered server program is created in Jco RFc Destinations with,
    Program Id : pgm1
    Gateway host : PI's host
    Gateway service : PI's service
    application server host: ECC's host
    system numer     : ECC's number
    client  : ECC's client
    logon user : ECC user
    password : pwd
    Step 2:
    In SM59, TCP/IP connection the following parameters are given:
    Program ID : pgm1
    Gateway host : PI's host       -
    > is this correct
    Gateway service : PI's service      -
    > is this correct
    Step 3:
    So i am calling the RFC in ABAP program (R/3 system) like:
    CALL FUNCTION 'Z_HR_OUTBOUND_DATA2'
    IN BACKGROUND TASK DESTINATION 'Z_HR_OUTBOUND_DATA2'
    Step 4:
    In PI side,
    for RFC sender I am passing :
    Application server : PI server
    Application server service: PI host
    program ID: pgm1 which was created in the previos step
    For RFC Metadata Repository Parameter, i am passing all the values related to R/3
    Please let me know whether the steps and values i given is correct.
    B'cos even if i give ECC's information in Gateway host and Gateway service the scenario works fine and if i PI's info then also it works fine.
    so i am confused as which is the correct method. pls clarify

    Ok I will try to explain....
    Assumptions: R3_TO_XI is the name of RFC which I created in ECC of type T.
    While creating the RFC in ECC we mention a unique name which is called Progaram ID. Now the same program id we mention in our sender RFC CC.
    So now when an ABAP Progarm (where you will call this RFC with it's destination) is scheduled/triggered with the code as mentioned below then since the DESTINATION ('R3_TO_XI') mentioned here contain the same program id which we have mentioned in our sender CC, invokes the adapter in PI and soon after that all pipeline steps get executed in XI.
    CALL FUNCTION 'ZBAPI_COMPANY_GETDETAIL'
      IN BACKGROUND TASK
      DESTINATION 'R3_TO_XI'
      TABLES
        comp_detail = company_detail.
    COMMIT WORK.
    Regards,
    Sarvesh

  • RFC to File Scenario..

    All,
    Quick question - im trying to configure a RFC to file scenario. Is there a step-by-step document somewhere. I did the steps as mentioned in few of the blogs (Michal's and others) and im kind of stuck in how to trigger the scenario?
    Thanks.

    Hey thezone,
    you can make it like this:
    - create a "dummy" RFC, which is a function module with enabled remote access. In this dummy RFC, there should be no source code, only importing parameters (and these importing parameters are the ones you'll see in request message when importing the RFC into Integration Repository);
    - create a RFC Destination of type T (TCP/IP) in SM59. Then, select it as "Registered Server Program" and use some string for the ProgramID field (best practice is to use ProgramID = RFC Destination name). Finally, enter hostname and gateway of RFC Server (which can be the same as of the web as abap where you have these objects). Gateway should be "sapgwXX" (with no quotes), where XX is the System number;
    - this rfc should be called by the function module which is executed by your report. In the function module, use it like this:
        CALL FUNCTION '<rfc_name>'
          IN BACKGROUND TASK
          DESTINATION <rfc_dest_name>
          EXPORTING
    where <rfc_name> is the name of the dummy rfc, <rfc_dest_name> is the name of the RFCDestination you created, and you export the parameters expected in Importing Parameters field of the dummy RFC;
    - Import the dummy RFC in Integration Repository and use it for relevant mappings/interfaces;
    - Finally, in Integration Directory, when creating the Sender RFC Adapter, Program ID should be the same of the RFC Destination you had created in SM59 of source system, and hostname/gateway should also be the same you inputed there.
    Regards,
    Henrique.

  • Problem Executing RFC to File Scenario

    Hi,
    I am currently working on RFC to File Scenario which is Asynchronous in Nature i.e. The RFC will send some data to XI and then it'll be dumped in an XML File on the shared drive.
    Following are the steps which were performed by me :
    1. i created an RFC Destination in R/3 using SM59 and entered the Required values as mentioned in the blog
    The specified item was not found.
    2. Then i entered the same values in the communication channel of the sender RFC adapter.
    I tested it from R/3 and the connection was successful.
    3. i created an RFC in SE37 in the R/3 and just added an existing table under the "tables" tab. No further code was written in it. I saved it and activated it.
    4. All the IR and ID objects were made and activated and then the scenario was run by sending a single data row by pressing F8. The RFC showed a message of "System Failure" and while looking into the XI Server (SXMB_MONI) the message gave absurd values with a error symbol(it a Red Light symbol and there was no Red Flag).
    Initially, the XML file was getting posted in the shared drive but after further execution it stopped.
    I am unable to figure out the problem. Kindly let me know where i am going wrong and what needs to be done to correct it ?

    Hi,
    For Sending RFC asynchronously check for these points:
    For RFC creation and importing please follow this discussion. Very useful:
    Re: RFC to FILE
    Specially reply by Udo Martens.
    Also for sender RFC, check two things.
    1) First step is Register your ProgramId using activiating the communication channel(XI). You should be able to see it in smgw(R/3)
    smgw->Goto->Looged on Clients(Check it here)
    2) Then use this registered programid in your RFC Destination,in R/3 (it is Case-Sensitive).
    These are just common errors i have encountered sometimes.

  • NO DATAS IN OUTPUT FILE FOR RFC TO FILE SCENARIO

    In RFC to File scenario, I am executing the ABAP program in ECC and generates a empty file in PI server.
    I am getting the error message in SM58 of ECC:
    u2018Bean Z_HR_OUTBOUND_DATA2 not found on host SDNPI1,u2019
    'call FM Z_HR_OUTBOUND_DATA2 to ProgId ECCTOPI_OUTBOUND on host SDNPI1 wit'
    RFc Source code:
    FUNCTION Z_HR_OUTBOUND_DATA2.
    ""Local Interface:
    *"  EXPORTING
    *"     VALUE(FILENAME) TYPE  BBP_ACC_DESCRIPTION-ACC_OBJ_NAME
    *"     VALUE(RETURN) LIKE  BAPIRETURN STRUCTURE  BAPIRETURN
    *"  TABLES
    *"      ITAB10 STRUCTURE  YSTRING1 OPTIONAL
    *"      P_STATUS STRUCTURE  ZHRT0031 OPTIONAL
      DATA : wa_status TYPE zhrt0031,
             wa_itab10 LIKE ITAB10.
    break-point.
      LOOP AT p_status INTO wa_status.
        CONCATENATE wa_status-pernr
                    wa_status-ename
                    wa_status-orgeh
                    wa_status-plans
                    wa_status-persg
                    wa_status-rank
                    wa_status-***
                    wa_status-icnum
                    wa_status-usrid
                    wa_status-dept
                    INTO wa_itab10-str1.
        APPEND wa_itab10 TO itab10.
      ENDLOOP.
    wa_itab10-str1 = 'test'.
    append wa_itab10 to itab10.
    append wa_itab10 to itab10.
        CONCATENATE sy-datum
                    'PYO_EMPDAT.TXT'
                      INTO
                      filename.
    ENDFUNCTION.
    And in the ABAP program the RFC is called like:
    CALL FUNCTION 'Z_HR_OUTBOUND_DATA2'
    in background task destination 'ECCTOPI'
    EXPORTING
      INTERFACE       =
    IMPORTING
       FILENAME        = filename
       return = return
    TABLES
       ITAB10          = itab10
       P_STATUS        = p_status
    When i am testing the standard program STFC_CONNECTION in ECC with the same RFc destination it works fine and creates a o/p file with the datas in it, but if i m executing the other function module it doesnt contain any data it.
    What could be the error? and how to resolve the errors that i am getting in SM58?
    Thanks

    Bean Z_HR_OUTBOUND_DATA2_1 not found on host SDNP1, ProgId =ECCTOPI_OUTB
    Change the case of your Program ID to lower ecctopi similar was the issue in this thread:
    Bean ZFM_MODULE_OUT not found on host <XI_HOST>
    And may be for the same reason even Michal used lower case program ID in his blog.
    Regards,
    Abhishek.

  • Step by Step Guide Details for RFC to File and File to RFC scenario

    Hi Guru's
    Good day to you. I am tyring to develop some scenarios based on RFC adaptor. so i want to start up with basic scenarios like RFC to File  scenario(Here i just want to pull some data from SAP using RFC and put it in destination folder as an text file) and FILE to RFC scenario (Here i just want to take some data from the file and update into SAP).
    For doing these scenarios i would like to request you people to send me the step by step guide which explains me about the complete steps of configurations required to do the RFC to FILE scenario and FILE to RFC scenario.
    I found some scenarios and i am in confused state. so i request you to please put your experience to help me out.
    thanks in advance.
    Regards
    Raj

    Hi Aaron,
    I don't know your scenario and your ECC and PI versions but I learned how to use ABAP Proxy more than 1 year ago with the following tutorial:
    Edit--> The forum doesn't allow me to post external link, just search "ABAP Proxy Communication Scenario" in google and visit the 1st result
    The way to develop ABAP Proxys has changed a little if your PI is 7.1. In the ECC side, the transaction SPROXY looks much better too if you have a recent version of the ECC.
    Edited by: Marshal on Oct 8, 2009 5:08 PM
    I've found that SDN Document. Maybe the scenario is not the most simple to start with ABAP Proxy but is very well documented and is for PI 7.1. The document also handles the inbound and outbound proxys
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f&overridelayout=true]
    Edited by: Marshal on Oct 8, 2009 5:22 PM

Maybe you are looking for

  • Crystal Reports 9 and Stored Procedures using supplied parameters from user

    Hi, I have a Crystal Reports 9 report that prints and works fine.  It requests from the user 2 pieces of data which both are String data and not nulls.  I want to use the same report in a Visual Basic.Net 2003 program.  I can pull the report onto the

  • Kerberos, Active Directory & WLS 10.3.5 on Solaris 10 (also UCM 11g)

    The story so far : I have a keytab from the kdc and have configured krb5.conf such that kinit and using the Kinit class from rt.jar (from the 1.5 OS JDK not the 1.6 used with WLS) are working. An AD authentication provider in WLS is allowing logins t

  • Calendar popup in WAD - Urgent

    In web application designer - I need to incorporte date function which should have a calendar popup.  I need to select date from the calendar. This is happening in bex - query level, but when use the same query in WAD , it is not showing the popup. G

  • 2-Drive Raid 0 on Apple Internal SATA bootable?

    This has sort of been answered in these forums but I want to be sure: If I add an extra 160GB drive, identical to the 160 that shipped with my 2004 Dual 2ghz G5, can I Raid-0 them together using Disk Utility and be able to have this raid volume as th

  • SSL + certificate (will login automatically)

    I am using SSL with certificate and installed 3 certificates for 3 different user account on one PC. On login, by click the Portal's Login URL, Web Browser will asking user to choose a certificate. All of certs choosed will automatically logged on th