File/Directory renaming on file adapter

Hello
I have a scenario that gets a xml file from mail adapter and sends to a file adapter.
I only use ID on my scenario, as described on blog (/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository).
How can I rename the directory of the destination file WITHOUT using any mapping on IR (because I DONT use IR) ?
I want the destination directory to be as /tmp/(today'syear)/(month)/
I already read the SAP documentation about File Adapter but I wasn't able get a solution.
Thanks

If that is the case then you need to change the file name in FILE RECEIVER CC by implementing the Module .
the following links may be help you.
http://help.sap.com/saphelp_nw04/helpdata/en/17/50d440e14f8431e10000000a1550b0/frameset.htm
/people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
https://websmp108.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
https://weblogs.sdn.sap.com/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken]
/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
/people/william.li/blog/2006/08/28/teched-2006-epi350--developing-and-testing-adapter-modules-in-sap-netweaver-exchange-infrastructure
Warm Regards,
Vijay

Similar Messages

  • Previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once before. Recently that isn't happening. How do I get that feature back?

    When downloading, previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once. Now that isn't happening. How do I get that feature back?

    When downloading, previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once. Now that isn't happening. How do I get that feature back?

  • Split SQR output into multiple files And Rename each file.

    Greetings!
    We ran into scenario where we need to split an SQR output (PDF) split into multiple files (each page , each file). More over the out put has to be renamed with EMPLID.
    It is for printing Advices, where we run DDP003 to print all of them, Our requirement needs to have one PDF file for each employee to placed into a shared drive OR to be emailed.
    I was thinking of running the same process in a loop individually, but this is resource intensive. Is there any way we can batch run this SQR process and split into each page (each paychek comes to one page),
    AND
    I need them renamed by SQR as it creates them, Each file would be names as EMPLID.
    This is all in alternative to run process individually by employee , via self service. to not to over laod Process scheduler server.
    Can anyone help me how can we get these thigns done in SQR?
    Thanks in advance.

    You can use the SQR command new-report for each employee which closes the current report output file and opens a new one with the specified file name (e.g. EMPLID).

  • "file/directory info" of file .lnk

    When i use "File/Directory Info" with a file .lnk, a local link, Labview attempts to gather info about the linked file. For example if i have "link to C.lnk", it returns info about C:\. How do i get info about the link itself, i mean the little .lnk file?

    Hi,
    I'm not going to be able to solve your problem, but I just wanted to say I had a similar problem in the past.
    While writing a recursive file tree program I wondered why one directory kept repeating itself.  I finally located a *.lnk file which was pointing to the parent directory.  Voilà.  LV kept looping thinking that there were ever-deeper directories there.
    The only way I found of getting around it (apart from Windows calls) was to simply ignore *.lnk files........
    Not great I realise but it's all I came up with at the time.
    Another method is to create a small batch program to list the *.lnk files in a directory and parse the output to a file which can then be read and analysed.  Windows itself has no problems with lnk files.
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • File by File picking with Standard File Adapter with NFS Protocal !!

    Hi Folks,
    How to pick file by file with little gap in a file directory by Standard File Adapter. One interface, one communication channle.
    Ex: XML_XXXXX_XXXX1.xml
          XML_XXXXX_XXXX2.xml
          XML_XXXXX_XXXX3.xml
    First I need to pick one file XM_XXXXX_XXXX1.xml then wait for 2 minutes and pick another one in ascending order.
    I have tried with Advance option "File size" and "Msec to wait before modification check" with 1200000 MS, but no use.
    Please folks any one can help in this, which is very big help?
    Kind Regards
    Many Thanks in advance
    San

    Hi
    My BPM steps are as follows:
    1. Receive step -- Asynch
    2. Transformation -- split the message 
    3. Switch step -- Condition "ID != ' ' from transform message'
    4. In side Switch Branch 1 -- Receiver determination - Receive acknowledgment - Application
    5. Send 1 -- with Application Transport, Queue Name - 'XXX'
          This XXX queue I have configured on ID with EOIO Service
    6. block step - Send multiple messages to same receiver on top
        I have send 2 different message to one receiver, the first message is only one , second message are multiple. I am splitting    with transformation step
    7. Sender -2  no acknowledgement active
    8. stop
    Can you please tell me where I am gonna wrong!!
    I will apprecite for your efforts
    Regards
    San

  • Determine Target directory from Source file names with out mapping

    Hi All,
    I have a requirement to determine the Target Directories from the Source file names.
    File Sender Adapter - XI - File Receiver Adapter
    In this scenario I am not doing any mapping. Source File directory contain 3 files. These file should go to 3 directories in the Target Server.
    Please help me how can meet this requirement
    Thanks in advance
    Kevin

    Hi Kevin,
    if you can separate the files by name. have 3 sender communication channels each picking up one of the files (you do this by making the regex in the file name mutually exclusive) and then send them all to the target system using the same comm. channel.
    regards,
    Horia

  • Renaming the file

    Hi
    Good Morning friends
    Can anyone help me in this
    I want to select one file from presentation server and rename that file and to be saved in same location.Is there any program,
    guide me friends
    Regards
    Kiran

    Hi Kiran,
    There is a way to rename a file using FM 'GUI_RUN'.
    Create a batch file in the Presentation server and call it by FM 'GUI_RUN'.
    I have developed a small report which will achieve it.
    Just try below code.
    REPORT  zpr_test1.
    TYPES: BEGIN OF ty_itab,
          text(100) TYPE c,
          END OF ty_itab.
    DATA: filetable TYPE filetable,
          rc TYPE i,
          wa_file TYPE file_table,
          ret TYPE i.
    DATA: itab TYPE STANDARD TABLE OF ty_itab,
          wa TYPE ty_itab,
          len TYPE i,
          len1 TYPE i,
          str1 TYPE string,
          str2 TYPE string,
          old_name TYPE string,
          new_name TYPE string,
          filename TYPE string,
          cmd(200) TYPE c.
    DATA: tab_pop  TYPE TABLE OF sval.
    DATA: wa_pop  TYPE sval.
    *Get file name
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      CHANGING
        file_table = filetable
        rc         = rc.
    READ TABLE filetable INTO wa_file INDEX 1.
    IF sy-subrc = 0.
      wa_pop-tabname   = 'FILE_TABLE'.
      wa_pop-fieldname = 'FILENAME'.
      APPEND wa_pop TO tab_pop.
    *Get new file name in popup
      CALL FUNCTION 'POPUP_GET_VALUES'
        EXPORTING
          popup_title     = 'Enter new file name without extension:'
        TABLES
          fields          = tab_pop
        EXCEPTIONS
          error_in_fields = 1
          OTHERS          = 2.
    ENDIF.
    *Build new file name
    READ TABLE tab_pop INTO wa_pop INDEX 1.
    IF wa_pop-value IS NOT INITIAL.
      new_name = wa_pop-value.
    ELSE.
      new_name = 'New'.
    ENDIF.
    *Build batch file
    ***Build drive name
    wa-text = wa_file+0(2).
    APPEND wa TO itab.
    CLEAR wa.
    ***Build path
    len = STRLEN( wa_file ).
    len1 = len - 1.
    DO len TIMES.
      IF wa_file+len1(1) = '\'.
        wa-text = wa_file+0(len1).
        EXIT.
      ENDIF.
      len1 = len1 - 1.
    ENDDO.
    CONCATENATE 'CD' wa_file+0(len1) INTO wa-text SEPARATED BY space.
    APPEND wa TO itab.
    CLEAR wa.
    ***Build old file name
    str1 = wa_file.
    WHILE str1 CA '\'.
      SPLIT str1 AT '\' INTO str1 str2.
      str1 = str2.
    ENDWHILE.
    old_name = str1.
    str1 = wa_file.
    CLEAR str2.
    ***Build extension for file
    WHILE str1 CA '.'.
      SPLIT str1 AT '.' INTO str1 str2.
      str1 = str2.
    ENDWHILE.
    IF old_name CA space.
      CONCATENATE '"' old_name '"' INTO old_name.
    ENDIF.
    IF new_name CA space.
      CONCATENATE '"' new_name '"' INTO new_name.
    ENDIF.
    CONCATENATE 'RENAME' old_name new_name INTO wa-text SEPARATED BY space.
    CONCATENATE wa-text '.' str1 INTO wa-text.
    APPEND wa TO itab.
    CLEAR wa.
    *Give name for batch file
    CONCATENATE wa_file+0(len1) '\' 'TEST1.bat' INTO filename.
    *Download batch file to Presentation server
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
        filename = filename
      CHANGING
        data_tab = itab.
    cmd = filename.
    *Call the batch file to rename the file
    CALL FUNCTION 'GUI_RUN'
      EXPORTING
        command    = cmd
      IMPORTING
        returncode = ret.
    Thanks..

  • Renaming attachment file name in receiver mail adapter

    Experts,
    I have a file to mail scenario where an xml file is picked up and transformed into the target format in XI which has to be sent as an attachement in an email on the receiver side.
    I am getting the mail with the attachement. But I would like to rename the attachment as the name of the picked up file.
    I am using Adapter specific message attributes on both sides but the attachment is named as untitled.xml.
    Please advise. Can this be achieved by using the swap bean or the message transform bean?
    Regards,
    Shobhit

    Hi Shobhit,
    The module tab of your mail adapter will look like this.
    Processing Sequence
    Module Name                                                            Type                                      Module Key
    localejbs/AF_Modules/MessageTransformBean   rename LocalEnterpriseBean     
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean  mail     Local EnterpriseBean     
    Module Configuration
       Module Key               Parameter Name             Parameter Value
          rename      Transform.ContentDescription                      File
          rename  Transform.ContentDescription  attachement;filename="yourfilename.ext"                                                          
          rename            Transform.ContentType                 application/text;name="yourfilename.ext"
    Thanks
    Amitanshu

  • Dynamic FTP Directory Address in File Adapter - is this possible?

    We have a customer who would like us to pick up a file via an FTP file adapter once per day. The problem is, they have a different directory each day containing the file. The directory name is of the form YYYY-MM-DD. The name of the file in the directory is always the same.
    Is it possible to dynamically calculate the Source Directory name in the FTP file adapter? If so, how?
    Kind Regards,
    Tony.

    >
    Dharamveer Gaur wrote:
    > Hi
    > Look this same thread:
    > Re: Dynamic folder name (when reading file in file adapter)
    Hi,
    All the examples I have seen are to configure the Receiver File Adapter, not the Sender File Adapter. I don't thinl I have seen one blog yet whereby the source directory of a Sender File Adapter has been dynamically configured. I wonder if it can be done because the sender file adapter does not have Variable Substitution possibilities for filenames and directories.
    So has anybody a link to a blog where this dynamic choice of a source directory has been done for a SENDER file adapter?
    BR,
    Tony.

  • Dynamic Configuration - Set Directory Path for File Receiver Adapter

    Hi Experts,
    I have a question regarding the dynamic configuration for the file adapter. Is it possible to set a directory path without a message mapping for the file receiver adapter? the problem is that I want to import a pdf document. this pdf document I want to store in a dynamic directory (depending on the filename). so I have to read the filename out of the dynamic configuration and generate (depending on the filename) a directory for this file. Is that possible without a message mapping? I cannot make a message mapping because the file has the pdf format and should not get changed.
    best regards
    Christopher Kühn

    Hi Gaurav,
    I use the ASMA (respectively the filename) for the sender adapter. After the pdf was imported into XI this filename is in the ASMA.
    But what then??? How can I get this filename with the help of the variable substitution? and if I have this filename I have to change this filename a bit to generate the name / path of the directory.
    Please explain it to me detailled
    Thanks and regards
    christopher

  • Setting directory dynamically in File adapter in BPM 11g

    Hi,
    I am using file adapter in BPM 11g for writing perpose. While configuring, it is required to provide the directory location, which can be either physical path or logical. The location where the new file will be stored/saved is written in a text file. I want to fetch the location from that text file and want to store the new file in that particular location at run time. Please help !!!!

    Hi,
    You can dynamically set -among others- the outbound directory and outbound file name for a File Adapter. See: http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_file.htm#CIACICFD. If you need to retrieve the information beforehand from another file, you could use a synchronous read. See: http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_file.htm#BABDCEBE.
    Ronald

  • Specifying current directory in Receiver File Adapter

    Hi Experts,
    I have been configuring a receiver file adapter to place a file onto an FTP server. As per the information provided, as soon as I login to the FTP server, I have to place the file in current logged in directory. In this case, how can I mention this in file adapter as to use the current directory path to place the file? What should I enter in 'Target Directory' in File Access Parameters?
    Thanks,
    Dhawal

    Hi Praveen,
    Since file directory parameter is mandatory, my question is what should I enter in this parameter so that the file adapter will know that the file should be placed in the root directory itself?
    Regards,
    Dhawal

  • Need to get file name and directory back from file adapter - WRITE

    I am using the file adapter to write a file. I want to log the file name of the file we just created. Since we use a precise timestamp in the file name, I can't accurately guess.
    I have an invoke in my BPEL process to the file adapter. My first try was to assign the jca.file.FileName property to a variable, but it never comes back. I looked around and saw plenty of ways to SET the file name for a write and GET the file name for a read, but no GET file name for WRITE.
    Anyone have a solution?
    Thanks in advance!

    I think I got your point... You can tell FileAdapter the filename to write, but if you don't then FileAdapter can not tell you the filename that it wrote... I think it is pretty possible Oracle didn't implement the latter, as the write operation is probably asynchronous and the filename is calculated later on...
    If what you want is just log, you may achieve your requirement by increasing verbosity on Adapter logs... Have a look at the link bellow...
    http://docs.oracle.com/cd/E15586_01/integration.1111/e10226/ad_mon.htm#CJHHBBID
    Otherwise, the solution for you will be to calculate filename yourself, and that will be a little bit of reinventing the wheel... But at least you will know the filename...
    Cheers,
    Vlad

  • Easy way to rename all files and folders in a specific directory

    hy all,
    i want to rename all files&folders in a specified folder... i only want to replace all "_'_" with an"-" in all file names...
    example:
    TCHK1_B4194W01PF7_NMOSi_D_B__3_50ohm-500ohm_03-29-07_10'46'23_AM.tst
    TCHK1_B4194W01PF7_NMOSi_D_B__3_50ohm-500ohm_03-29-07_10-46-23_AM.tst
    i cant change the timeformat because this are automatically generated files from an external program...
    this is my program(attached as JPG) but it doesnt work...i get allways "error 10-duplicate path" or "error1 -   An input parameter is invalid"
    could sombody please help me... i think its an easy VI but i cant get it working
    THANKS in advance!!!!
    greets
    Andreas
    Attachments:
    renamefolder.JPG ‏20 KB

    Well, the one problem you have is that for the "Move" function, the source file input should be wired to the output of the "Build Path" function, not to the duplicate path out of the "List" function. Also, you need to pass the error cluster around with a shift register. Otherwise you will not catch an error that may have occurred during one of the file rename operations.

  • Rename temporary File

    HI,
    I am doing a RFC to File scenario , at the Receiver Communication channel I am using the Use Temporary file with the " Put File " option , Now my requirement is to rename this temporary file Else file ca nt be picked by AS400 system.
    So My question  is can we rename this temporary file ?
    If yes then how .
    Thanks and Regards,
    KLK

    Hi,
    <i>As renaming temp file is not possible .. If I directly drop my Temp final file on As400 as Venkataramanan was saying and rename it to the required target file name . I am supposed to run a remote command on As400 from XI to do that
    using Shell ..</i>
    When you choose the option temp file then the file adapter transfers the data of the file by writing the file in the specified directory by a temporary name ( You don't have to choose the temp file name. the system creates the name on its own)
    Once the file is fully written the file is renamed with the name that you specified in the FileName paramter of the Adapter.
    1. So you don't have to write the shell script.
    2. the file adapter generates it's own temp name
    3. the file adpater renames it once the file is fully written. you don't have to rename it.
    Hope this helps
    Regards
    Vijaya

Maybe you are looking for

  • Mac Mini & The Simpsons DVD Boxsets.

    Today, I tried to watch a DVD of The Simpsons on my Mac Mini. However, when I insert the DVD, the drive spins for about 30 seconds, and then just ejects the disc without mounting the DVD or trying to load DVD player at all. I cannot find any mention

  • Sales Order ATP Check in SAP B1

    Is there a way to disable the ATP Check upon saving of a Sales Order using the DI API or any other built-in configuration settings?

  • How to add details of absences in absences Infotype 2001 for previous dates

    Hi Experts... In  my clients company....  one of  Personnel subareas employees leave records are not updating in 2001 Infotype. Now they wish to have to update in 2001 Infotype. What is the implication for this new changes in absences records. What a

  • Images rotate and resize when relinking after collect for output

    I just started using CS5 and have run into an issue that is very disturbing to me. When I relink my files from the collected folder that I send to printer, images that have been rotated in Indesign rotate to their actual size and rotation. This is no

  • "Could not create Java virtual machine" for several XP SP3 clients

    Hi, In this last year I got the message "could not create java virtual machine", (suddenly, after several mounths without any kind of problem), on 10-15 XP SP3 clients in our lan, lan in which all the 200 clients (90% XP SP3) have this application in