File name should be with sequence

Hello Experts,
I am working on file(NFA) to SFTP scenario with out mapping . I am getting file from AL11 folder with the name of XXXX_20150404033752.csv and receiver side (in PI) im getting file name as XXXX_20150404-040420-142.csv. But it should be 20150404033752_001_csv with out "-" and it should be sequence of 001, 002,... .
For example, if the files were given a name corresponding to a time stamp, the first file might be called 20150404040420_001.  The second would be called 20150404040420_002.  These files were both named after the date and time stamp April 04, 2015 at 04:05:02.
Without doing any mapping can I do this?
Thanks in advance,
Reddy.

>>>I am working on file(NFA) to SFTP scenario with out mapping . I am getting file from AL11 folder with the name of XXXX_20150404033752.csv and receiver side (in PI) im getting file name as XXXX_20150404-040420-142.csv
If you want to append a counter to the source filename
enable ASMA for file name in sender and receiver channels
Set the file construction mode in receiver channel to counter
under counter def, maintain "_" as prefix and counter to 000
>>For example, if the files were given a name corresponding to a time stamp, the first file might be called 20150404040420_001.  The second would be called 20150404040420_002.
Do you expect two files with the same timestamp? There should be some difference in the filename right as you can't have 2 files with samename.
If appending the counter doesn't work, either you have to go for a java mapping/AM to set the file-name as you want.
Dynamic file name for pass-through scenario - Process Integration - SCN Wiki

Similar Messages

  • File name should change by selecting the radio buttons

    Hi all,
    PARAMETERs: p_file LIKE rlgrap-filename.
    PARAMETERS: p_app RADIOBUTTON GROUP rg DEFAULT 'X',
                             p_pre RADIOBUTTON GROUP rg.
    this is to download the ITAB data to presentation and application servers depending upon the radio button selected.
    if i select p_pre , then default download path is : 'C:/ download.txt'.
    if i select P_app , default download path is : '\usr\sap\EBG\SYS\profile\DOWN.TXT'.
    how the file name should change by selecting the radio buttons ?
    Thanks
    KR

    Hi,
    DATA: c_x VALUE 'X'.
    selection-screen begin of block input with frame title text-000.
    parameters :desktop     radiobutton group rg_f user-command rg_f,
                       in_file type ibipparms-path modif id ps DEFAULT 'C:/ download.txt',
                menu     radiobutton group rg_f ,
                       sys_file type ibipparms-path modif id as default  '\usr\sap\EBG\SYS\profile\DOWN.TXT' .
    selection-screen end of block input.
    at selection-screen output.
      if desktop is initial and menu is initial.
        desktop = c_x.
      endif.
      perform f_toggle_finputs.
    form f_toggle_finputs.
    loop at screen.
        if screen-group1 = 'PS'.
          if desktop = c_x.
            screen-input    = 1.
    *         sys_file = c_server_path.
          else.
            screen-input    = 0.
          endif.
        endif.
        if screen-group1 = 'AS'.
          if menu = c_x.
            screen-input    = 1.
    *        clear: in_file.
          else.
            screen-input    = 0.
          endif.
        endif.
        modify screen.
      endloop.
    endform. "f_toggle_finputs
    Hope this helps u.
    Thanks.

  • The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The Acrobat 9.x product family passed into "End of Support" mid-year of 2013.
    Acrobat 9 support of MS Project via PDFMaker stops with Office 2007.
    For Office 2013 support you must use Acrobat XI (11.0.1) or newer. 
    A good to have reference:
    https://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
    Acrobat Pro and Standard DC are what are currently available for purchase. 
    Be well...

  • Receiver file name should contain the same plant value as  sender filename

    Hi All,
    I have a requirement in PI 7.0 and the scenario is synchronous which is as follows:
    - XI will read a flat file which has the naming convention Plant_100.txt where 100 is the plant number , after reading the file XI will trigger standard BAPI call to ECC system.
    - ECC system will return an response message back to XI , XI need to need write this message in to a log file and the file name should be Plant_100_logs.txt.
    - Here plant value 100 is neither passed to ECC system nor this value will be returend back from ECC system . So , is there anyway where we can make sure that plant value can be added to the log file without using an BPM in between ??
    Regards
    Vinay P.

    Hi,
    Using Dynamic configuration in Message mapping you can read the source file name and creta the target file name as same as source file.
    For BAPI call in Mapping you can use RFC lookup.
    So crete a scenario FILE to log FILE
    In mapping using RFC lookup make a BAPI call.
    And use dynamic configuration to set the file name.
    Refer this
    http://www.****************/Tips/XI/ASMA/Index.htm

  • Saving a file pdf file and the file name appears on a PC with + signs in the name of the file - How do I eliminate the file name coming up with the + signs?

    A pdf file is created from a word document and then posted to our dealer portal.  It allows the dealer to open the pdf file and then either print and/or save off to a hard drive.  The issue is the file name has + signs in between all the words.  Is there a way to eliminate the file names coming up with the plus signs?  It is not being saved that way.  Any help you can provide would be appreciated.

    Use a proper file name for the WORD document. MS decided several years ago to allow spaces, but that is not standard and is likely what the issue is. A good alternative is to replace spaces in file names with underbars, "_".

  • Show the file name in "Journal with Filmstrip" layout

    Hi all,
    This is my first post to this board -- I joined to ask this question:
    I am trying to generate a web gallery with Bridge where for each of the pictures the file name along with the metadata is displayed.  So far I managed to get either the one or the other, but never the two.  Is there a trick to get both file name and meta data on the screen together with a picture or is this a missing feature?
    Here is a link to the Gallery:
    http://web.mit.edu/pmueller/www/ACA2009/president/index.html
    I like the way it looks, but I would really like to have the filename displayed in addition.
    Thanks a lot in advance for your input,
    Peter

    The bold font names went away, yay, but this still didn't get dealt with. My Detail view window wastes fully 60% of the space, while still truncating the file names, as if space were at a premium.
    My image files have long prefixes, and I'd like to be able to view the list of them and see all of each name. As it stands, some sequences of files look like they all have the same name, because all I see are the prefixes.

  • Same file name at Target with change in file extension

    Hi,
    I am working on File to File scenario. I need to create target file name similar to the source file name. This can be achieved by using ASMA. But my requirement is to change the file extension for the target file.
    For example:
    Source File u2013 InvoiceNotification.txtu2026.Then target file should create as
    Target File - InvoiceNotification.csv
    This can be achieved by using OS Command unix script in the receiver communication channel.
    Is there any better way of doing this..say something like Dynamic Configuration or Variable substitution?
    Thank you.

    Hi Achuth,
    I think you are doing content conversion at the receiver side. Go ahead with ASMA, get the file name.
    DynamicConfigurationconf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKeyFileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, a);
    return "";
    In the receiver file adapter, keep the extension as .CSV. That's enough.
    Else you can follow as said by Abhishek Salvi. Either way you can achieve the requirement.
    Thanks,

  • How do I stop Illustrator automatically adding numbers to file name when exporting with artboard?

    I need to export with artboard. Illustrator automatically adds a number to my original file name. It won't even let me replace the old file. It is extremely annoying and makes flow with other programs really hard because they can't auto update, since the file name  changes. When you have multiple files, you can't be manually renaming all the time. Anyone knows how to fix this? Thanks.

    This has been discussed a few times, and here is a summary of the usual solutions.
    http://forums.adobe.com/message/2989508#2989508
    What is it EXACTLY you are trying to do. Are you trying to export a single page from filename.ai  and make it filename.psd, (without any number afterwards). In that case you could delete the extra artboards prior to export, and then you won't have to checked use artbaords as there is only one page. Otherwise I would plan ahead so your end result will be filename-01.jpg,  filename-02.jpg, and then everytime you use export artbaords those names will replace.
    I am happy with the function as is, and would prefer to have a serial number automatically after the name when checking use artboards. But sounds liek you and others desire more options and thte ability to turn off adding to the filename.

  • How to get the original file name in chinese with upload component?

    It is inconvenience for user to upload file with name only in english. When upload a file with chinese file name, the file name gotten from "fileUpload1.getUploadedFile().getOriginalName()" is just like "缃戠粶鍥�.jpg". Do somebody have a good idea?

    I spoke to the component engineers regarding this issue
    First please check if the s page encoding is set correctly, as browsers tend to default to use the encoding that was used for the page when submitting the request.
    (Because of how the JSF response writer is written, multibyte characters can be written correctly even if the encoding is not set correctly so the fact that form correctly rendered chinese characters is not proof that the encoding was set correctly).
    If you established that the page encoding is correct, then there is a
    bug in the FileUpload. The method that gets the name is a straight
    shot through to an Apache FileUpload library method. Technically this
    ought to be resolved by that method checking the request body
    character set before parsing the parameters.
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Source and target directory file name should be same

    Hi,
    How can i generate the same file name in target directory without date and Timestamp.
    for eg., Source File name : yeswanth.txt
    and target File name also : yeswanth.txt
    Note : here source side the file yeswanth.txt is constant and whenever it moves to target directory...should be overwrite.
    Reward points for useful answers.
    Thanks & Regards,
    yeswanth.

    Hi Mugdhal,
    am getting this error when i sent the same file again.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException:
    Yeswanth.txt: Cannot create a file when that file already exists. : com.sap.aii.adapter.file.ftp.FTPEx: 550
    Yeswanth.txt: Cannot create a file when that file already exists.
    But, here it should be overwrite the existing file.
    Regards,
    Yeswanth.

  • XI mail adapter - File name should be same in attachment

    Hi all,
    Here is our scenario:
    First part of our scenario involves picking *.pgp (e.g. addressB.pgp) file from partner FTP server and after decrypting put it on local Unix path - This part works ok
    In second part, we send this file by mail to static mail receivers as attachment
    (Message Protocol - XIPAYLOAD, Use Mail Package and Keep Attachments unchecked)
    When we receive this file as attachment, the attachment name is some random value, we need to keep the attachment name same.
    i.e. If we are picking and sending file "addressB.txt" then in mail attachment name should be "addressB.txt"
    Please suggest how this can be done
    Thanks
    Girish

    Hi Girish,
    We have a same scenario where XI is picking file from R/3 directory and sending it as a mail attachment without any mapping,the attachment name was supposed to be same,ex: abc.csv.
    I had the same problem,that every time I used to receive a randon attachment name like att34.txt,etc (recipient might be afraid that this is a virus )
    To resolve this,please add these modules in your mail receiver:
    1     localejbs/AF_Modules/MessageTransformBean     Local Enterprise Bean     Transform
    Transform     Transform.ContentDisposition     attachment;filename="abc.csv"
    Transform     Transform.ContentType                          text/plain;charset="UTF-8"
    If you use this,your attachment name will always be abc.csv.
    Kindly let us know if this works for you.
    Thanks.
    Regards,
    Shweta

  • File name to print with your image (PS3)

    Hi,
    I'm working on about 20ish photoshop images that have a specific name to match up to a diagram, so when I print them I need the file name lable to appear on the print with it. Additionally when I send them off to clients, I need to have that file name lable visable on the pg of the pdf while looking at the image so they know which one is which. The collected multi pg pdf needs to be under 3megs (5 mgs max) so it is easily emailable.
    I'm trying to find an automated or an easier way to do this than what I am doing one by one now. I tried to set up a PS action which I would batch to all open files but, becuase of the two step print dialogue it gives me an error saying all the settings weren't recorded, thus it doesn't work.
    What I'm doing now:
    1. Cmd+P to print, in the print dialogue under the "output" drop down I have "Labels" checked
    2. Hit print, then my printer driver dialogue box pops up, then in the lower left corner I click the button "PDF" and "Save as a PDF"  (This produces an acceptable quality pdf at a sm size)
    3. I'm able to save it by the file name with .pdf extension and specify the folder to save it into.
    4. Repeat 20ish times for each file
    5. In Acrobat create a pdf out of multiple files
    6. Then make a print of all of them together for myself
    7. Email to client
    Can anyone help me figure out a way to stream line this procedure, there must be a way, this is way to time consuming?
    Thanks in advance!

    Thanks Dave but that is a very restricting way of doing this. Anyway I have worked it out.
    Get script "AddFilename20pt.jsx" from http://www.jkost.com/photoshop.html
    Place script in scripts folder in SC5
    restart PS
    Use script within an action to size and place the file name where you want over the image. Bevel emboss, drop shadow do what you want with it.
    It is found under > File > Scripts > AddFilename20t
    Done.

  • When I save a webpage, the file name should default to the page title, as it does in IE. Why doesn't it, and how can I get that as default?

    The current default file name appears to be from the URL.

    So, we have to install an addon to get this basic bit of functionality back. I've just spent over an hour trying to work out what was wrong with some updated pages on my site - and the answer is, nothing at all. It's Mozilla's fault, like several other bits of crap that keep happening to me.
    WHY did Mozilla release this crap when either
    they hadn't finished testing it
    or they couldn't care less about their users
    Yeah, yeah, you're a not-for-profit and you're open source, so you're lovely. I'm sure you've got dozens of ways of making money from this.
    Go to hell, Mozilla, I'm using Chrome from now on.

  • Comparing incoming file name having timestamp with system time.

    Hi,
    The scenario is File to FIle.
    i have to read the incoming file name which will be having time stamp.
    compare the time stamp with the system time .
    if the difference in time is within specified time then send the file to target location,else send a mail that file is not placed in target location.
    please enlight me on how this scenario can be done.
    Thanks,
    Akkasali.

    if you mean the actual time stamp on the file and not the file name then ref: http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID2044216150DB12410233167314983393End?blog=/pub/wlg/15154
    else if you mean the time stamp on the file name itself then use dynamic configuration and then read the file name and do the further processing - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

  • My client requirementis: same file name should be in target system

    I am getting one file from source system the file name is empdetails.txt. I want to pass the same file name to the target system how we can implement this requirement.

    The below blog will also useful
    XI: The same filename from a sender to a receiver file adapter - SP14
    you can also refer to SAP Note 821267 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 / PI 7.3 File Adapter
    regards,
    Harish

Maybe you are looking for

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible. Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search

  • Dynamic column_name in cursor

    Hello, Oracle 9.1, win XP. I am trying to get data from cursor using loop with changing the column_name dynamiclly. I use array for colum_name for my table and loop it with cursor. When i use fix colum_name (rec_cur_new.id), it's work fine, when i pl

  • New Macbook Pro stuck on transferring information screen?

    I just purchased a MacBook Pro and attempted transferring my information from my old Asus laptop running Windows 7. I downloaded and installed the Windows Migration Assistant, and about half an hour into the transfer a screen came up on my Asus sayin

  • 1.8 Dual G5 will not turn on

    Hi all I was using my G5 and absentmindedly turned it off at the power switch rather than the Apple menu. Now when I turn it on, I just get the indicator light on and nothing happens when I press the power switch. I've disconnected everything. I have

  • Folder icon with exclamation mark and no comms with laptop whatsoever!!!

    My mini ipod has taken me to my wits end. My ipod always opens with a folder icon with an exclamation mark. I can get it in to disk mode but my laptop doesn't see it whether I'm using itunes, explorer, or updater. When the mini ipod is plugged into m