Skip to Content
avatar image
Former Member

File to File Scenario basic

Hi friends,

I am working on simple file to file scenario, by refering the blog

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5766] [original link is broken] [original link is broken] [original link is broken];

here i did all the configuration n setting as mantioned in this, but i am not getting result.

I have confusion in giving the location of sener and receiver directory,

should that folder be on xi server or local machine.?

do we need some type of trigerring so that XI will pick file from sender directory?

Thanks.

brij...

(Points wll be rewarded for helpful answer)

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 04, 2008 at 06:57 AM

    for your question:

    do we need some type of trigerring so that XI will pick file from sender directory?

    ans:

    when the communication channel is active, the channel will poll the sender directory for the specified sender file name every x seconds where x is the polling interval which you specify.

    if it finds the file, it will pick up.

    since the processing mode is "delete", once it picks up the file, it will delete it from the source directory.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I think your adapters are not configured properly - It is trying to read metadata for your file adapter.

      I will tell you simple steps to do this scenario.

      Create Data Type - dt_send and dt_rcv (*** look at the mapping structure)

      Create Message Type - mt_send and mt_rcv - chose respective data types.

      Create Message Interface - mi_send and mi_rcv and choose async for both and message types

      Come to the mapping section - mm_test and select both message types.

      ***Structure of data type

      dt send dt_rcv

      Contact -


      > Contact

      Employeedetail----


      > Employeedetail

      Name string -


      > Name string

      Place string -


      > Place string

      Click on Test tab - if it works or not.

      Create Interface mapping - Choose sender and receiver and mapping as mm_test

      activate all..

      You are done with the Design and repository

      Open directory

      Create new scenario - cs_file2file

      Create new business service - file_sender

      add new - Communication channel - file

      just choose nfs for now dont use any ftp..unless needed

      file path : c/sender/send.xml ( make sure you get this send.xml from the test of the mapping..just copy the xml code and create a file send.xml in your c:/sender folder)

      make sure your file path has "/" not c:\

      mode - test mode

      Do the same for receiver too and put file name - rcv.xml

      create all receiver / sender agreement ..receiver determination and interface determination.

      activate all..

      If you see file coming out - means I got some points for sure.

  • avatar image
    Former Member
    Sep 03, 2008 at 02:28 PM

    Hi Brijesh,

    XI cannot access shared file drives. I.e. the directory for the files must be on the XI server.

    Furthermore check if XI (or better the XIUSER) has sufficient permissions to read resp. write the files from / to the directories.

    Regards,

    Peter

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      If it is on the XI server itself you need not mention the hostname or IP address you can directly provide the path to access the directory for ex: it will be like C:\test_dir

      and the file name has to be mentioned seperately in file name column and also check whether you have set the processing mode to delete.

      Check whether you you have any error message in communication channel monitoring or in sxmb_moni.

      Regards,

      Nithiyanandam

  • Sep 03, 2008 at 03:14 PM

    While dealing with files you have 2 options;

    1. FTP - process files from a FTP server. you can have your own server running on a remote desktop for testing purposes: Along came a File Adapter, Mr. 'FTP' and Rest of the Gang

    2. NFS - these are to access files on the XI server itself.

    in case you have access to the NFS directory use it, else better configure a FTP server (ref. blog) and use it for test purposes.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi..

      Use Filter option which is available in the communication channel monitoring..

      For Communicationchannel Monitoring..

      RWB --> Component Monitoring --> Adapter -->

      Choose Communication channel monitoring and u have an option of choosing the Filter butoon there just click it and u can see the list of adapters which u configured w.r.t the scenario.. else try to type directly the adapter name and see the log..

      regards

      Kishore

  • avatar image
    Former Member
    Sep 04, 2008 at 04:22 AM

    Hi Brijesh,

    Please go through all these instructions you will be able to solve your problem.

    1.>Please follow the instructions given to you for providing the sender and receiver files locations.

    2.>But do check the input whether you have given in xml format or not.

    3.>Go to RWB(runtime workbench) and check the comunication channels under component monitoring->adapter engine->communication channel monitoring. Provide the details required there and do check whether your channels are working properly or not.

    Regards,

    Nutan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi nutan,

      I checkd the component monitor,in that under status tab, its showing

      0 communication channels have an error status

      0 communication channels inactive

      0 communication channels not providing any status information

      0 adapters logging communication-channel-independent processing errors

      after this i clicked on communication channel monitoring , but in that , in input help nothing is coming.

      please tell me where to check?

  • avatar image
    Former Member
    Sep 04, 2008 at 07:00 AM

    Folder should be in xi server .

    or

    If u r local machine had a shared folder give the shared folder like
    systemname\sharedfolder

    Regards,

    Jayasimha jangam

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 04, 2008 at 07:18 AM

    Dear Brijesh,

    The source and receiver directory should be in XI server only according to your scenario. The file path you have to give like
    XIServername\FolderName for both. Here the "FolderName" should be accessible for you. The input file name should be same as the file you put in that folder. For example (Input.xml)

    Regards,

    Jagan.

    Add comment
    10|10000 characters needed characters exceeded