Regarding file naming convention(while publishing a file to FTP)

Hi,
In one of our usecases, we need to configure the file name based on the client’s requirement.(to place the file in FTP. But the file name should be customized by us.) We referred to the link given below.
http://www.b2bgurus.com/2008/04/customizing-file-naming-convention-in.html
Can you please briefly explain about where should we setup the 'macro' so that we can change the file name(which will be placed in FTP) as we like.
Thanks,
Shanmuga S.
Edited by: user655473 on 16 Oct, 2008 11:42 AM

Hi,
     As you said we had applied the patch(number 7233222).In the Transport parameter, we entered the values for 'filename format' as given in the link,
     http://www.b2bgurus.com/2008/04/customizing-file-naming-convention-in.html.
     But we couldn't put the file in FTP.
     Our usecase is to send file(with customized name) to FTP.
     Before applying the patch, this scenario works fine and we could put the file into FTP. In this case the default file name is '%FROM_PARTY%_%TIMESTAMP%.dat'.
     After applying the patch (number 7233222), we got the entry 'filename format' in 'Transport parameter'. There the default value is given as '%FROM_PARTY%_%TIMESTAMP%.dat'. But in this flow(after applying patch) we couldn't put the file in FTP. No error logs were seen in b2b.log file.
     In 'b2b_dc_transport.log' file, we were getting the following logs,
     "2008.10.17 at 19:47:16:273: Thread-20: (DEBUG) FTPAgent.login(): Enter
     2008.10.17 at 19:47:16:273: Thread-20: (DEBUG) Host name is 'PC022350.cts.com'.
     2008.10.17 at 19:47:16:289: Thread-20: (DEBUG) Host PC022350.cts.com FTP command: USER sss
     2008.10.17 at 19:47:16:289: Thread-20: (DEBUG) FTP Command: USER, reply:
     331 Password required for sss
     2008.10.17 at 19:47:16:289: Thread-20: (DEBUG) Host PC022350.cts.com FTP command: PASS
     2008.10.17 at 19:47:16:289: Thread-20: (DEBUG) FTP Command: PASS, reply:
     230 Logged on
     2008.10.17 at 19:47:16:289: Thread-20: (DEBUG) FTPAgent.login(): Exit
     2008.10.17 at 19:47:16:289: Thread-20: (DEBUG) Host PC022350.cts.com FTP command: PASV
     2008.10.17 at 19:47:16:289: Thread-20: (DEBUG) FTP Command: PASV, reply:
     227 Entering Passive Mode (10,232,65,97,7,197)
     2008.10.17 at 19:47:16:289: Thread-20: (DEBUG) Passive: ip = 10.232.65.97, port = 1989
     2008.10.17 at 19:47:16:289: Thread-20: (STATUS) Connecting to PC022350.cts.com:1989
     2008.10.17 at 19:47:16:289: Thread-20: (DEBUG) Host PC022350.cts.com FTP command: NLST /FTP/Acme
     2008.10.17 at 19:47:16:289: Thread-20: (DEBUG) FTP Command: NLST, reply:
     150 Connection accepted
     2008.10.17 at 19:47:16:304: Thread-20: (ERROR) FTPClient.listNames(): LIST REPLY: 226
     2008.10.17 at 19:47:16:304: Thread-20: (DEBUG) Disconnecting from PC022350.cts.com
     2008.10.17 at 19:47:16:304: Thread-20: (DEBUG) Host PC022350.cts.com disconnected."
     Please help us in resolving this issue.
Thanks,
Shanmuga S.
Edited by: ShanmugaS on 17 Oct, 2008 7:51 PM
Edited by: ShanmugaS on 17 Oct, 2008 7:52 PM

Similar Messages

  • Output CSV File Naming Convention - Receiver File Adapter

    Dear SAP experts,
    I need help regarding my scenario.
    My scenario is this, Customer will send EDI message to XI. XI will then translate the message and convert it into XML.. After, a Receiver File Adapter will receive the XML then convert it into .csv file.
    I've already configured the Receiver File Adapter to convert the XML into .csv file.
    But, my problem now is how will I configure to have my output .csv file has a File Naming Convention.
    The output .csv file must be "CustomerName_YearMonthDate".
    From the EDI message, there is indicated Sender GLN in which, each customer has its own Sender GLN.
    E.g., Globus --> 200, Karstadt --> 300,  Metro --> 400.
    How will I configure so that I can have an output .csv file of,
    If Globus sends the EDI message, the output .csv file is Globus_20080304.csv.
    If Karstadt, Karstadt_20080304.csv.
    If Metro, Metro_20080304.csv.
    Kindly advise for a clear and complete solution.
    Thank you very much for your usual support.
    Fred

    Hi Nisar,
    My target message (XML) in the mapping is this,
    - <ns0:CSV>
        -  <SLI>
               <PERIO> </PERIO>
               <ILN> </ILN?
               <EAN> </EAN>
    perio, iln, and ean was rooted on SLI field. and the CSV is the rootnode of the target message.
    I have created a UDF on the message mapping to accomodate the output customer name, here is the codes:
    String fname="";
    if(GLN.equals("23456"))
    fname ="Globus" +dat;
    else if(GLN.equals("5678"))
    fname ="Karstadt"+dat;
    else if(GLN.equals("6789"))
    fname ="Metro"+dat;
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/File",
        "FileName");
        conf.put(key,fname );
    E.g.,
    Globus --> 23456 (Sender GLN)
    Karstadt --> 5678 (Sender GLN)
    Metro --> 6789 (Sender GLN)
    This UDF i've made in the Message Mapping was mapped in the root node CSV.
    Is this UDF correct?
    Then on the File Receiver Configurations, here are the configs,
    Transport Protocol: File System (NFS)
    Message Protocol: File Content Conversion
    Adapter Engine: Integration Server
    File Access Parameters
    Target Directory: /var/opt/gsss/sample/csv
    File Name Scheme: .csv
    Processing Parameters
    File Construction Mode: Create
    - Overwrite Existing File
    Write Mode: Directly
    File Type: Text
    Variable Substitution --> ???
    Adapter Specific Message Attributes
    - Use Adapter-Specific Message Attributes
    - Fail if Adapter-Specific Message Attributes Missing
    - File Name
    Run Operating System Command After Message Processing
    Command Line: chmod 664%F
    Content Conversion Parameters
    Recordset Structure: SLI
    SLI.addHeaderLine: 3
    SLI.headerLine: PERIO;ILN;EAN
    SLI.fieldSeparator: ;
    SLI.endSeparator: 'nl'
    Adapter Status:
    Status: Active
    Kindly advise if my configs are correct.
    Thank you very much!
    Fred

  • TMG Logs file Naming Convention

    Hi,
    Can i change the TMG logs file naming convention. I am using Wc3 Extended log file format.
    Default is: ISALOG_yymmdd_FWS_nnn
    Want to change in ISALOGTMG01_yymmdd-FWS_nnn
    Thanks

    Hi,
    I haven't seen a way to change the log name. But you could change the location of the log to ISALOGTMG01 folder you created. Can this help?
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Editing log4j.properties file of ear while deploying ear file.

    Hi,
    Can i edit log4j.properties file of ear while deploying ear file.
    ~ Dhiraj.

    javainstead:
    >>is MyFolder in the root? else you mite wanna try giving the entire path starting from the root
    No the "MyFolder" is not in the root. Normally if we give the file name alone, it will store in a directory. Instead of storing in that directory, i want to have create another subfolder under that directory and storing the file in it. This is my need.
    OS: Windows 2000.
    zakir_sh:
    log4j.rootCategory=DEBUG,myproj
    log4j.appender.myproj=org.apache.log4j.RollingFileAppender
    log4j.appender.myproj.File=/u3/logs/myproj_webapp_logs/dev_region/mylogfile.log......
    I gave relative path like this and got the file not found error.
    log4j.appender.myproj.File=/MyFolder/error_file.log
    Thanks,
    Manikandan

  • SAP Naming Conventions for DB Data Files

    Hi Everyone!
    We are about to install a SAP ECC 6.0 SR3 ABAP on Windows Server 2008 (R2) & SQL Server 2008 SP1 and we want to name the DB data files as follows:
    <sid>DB_Data_001.MDF/NDF
    Do you see any problem with this or think this could lead to a problem in the future?
    We were unable to find a SAP note or SAP recommendation about this, we only found SAP Note 27428 but itu2019s for Oracle.
    Thanks in advance!
    Best Regards,
    Nicolas

    Hi Nicolas,
    I thought about all corners where this could possibly lead to a problem (e.g. monitoring, DB13, ...) but couldn't think of a single report or transaction where this would cause problems.
    To the database itself the names of the files do not matter at all and in the SAP transactions the datafiles are only read to display them in monitoring transactions like DB02 or RZ20. These transaction do not expect a certain naming convention so I don't see anything that would count against using different filenames.
    Regards,
    Beate Grötschnig

  • Publication\Zip file naming convention

    Hi Folks,
    In XI3.1 when you schedule a Publication and select zip file package as format the documents inside the Publication get named like: "tempWebiArtifact35744728274_2.PDF" 
    Any idea why we have this unusual naming convention?
    Kind regards,
    John

    Developers of this feature think that is normal to have files named like "blablablah", but customers dont think so.

  • .tpz files naming convention / export from PI 7.0

    Hi,
    When I export the repository or Directory content from PI 7.0 the naming convention PI gives its own naming convention. Starting wit XI3_0 * .tpz
    Why does it start with XI3_0*.tpz for we have PI 7.0?
    Do we need to change any Visual admin or exchange profile parameter to get the naming convention to PI7_0*.tpz
    Thanks
    Sachin

    Hi,
    The import and export functionality of XI 7.0 uses the expression 'XI 3.0' instead of 'XI 7.0' in all transport screens of the Integration Builder. Furthermore the name of XI 7.0 exports will always start with the prefix 'XI_3_0' and not 'XI_7_0'.
    <b>Reason and Prerequisites</b>
    The reason for this behaviour is that the transport code and format of XI 7.0 and XI 3.0 is identical.
    <b>Solution</b>
    There is no fix for the naming convention, but there is a positive consequence: XI 3.0 export files can be produced by XI 3.0 and XI 7.0 and can be imported into XI 3.0 and XI 7.0.
    Refrence Note
    Note 936254 - XI 3.0 Imports and Export in XI 7.0
    Award points if helpful.
    Thanks,
    Tanuj

  • Naming convention in template css file

    Is there a specific reason for having the theme "name" hardcoded in many css definitions ?
    For example consider the css for the rows in a report:
    In the css files for each theme it is defined in a different way:
    Theme1: td.t1data
    Theme2: td.t2data
    Theme3: td.t3data
    ...Overriding these values and manipulating the styles using Javascript gets a bit cumbersome if it should work across themes.
    Are there any naming conflicts or is it just for historic reasons that don't apply anymore in the 2.0 release?
    In other words, would it be safe to use just td.data in new templates or will I run into problems doing this?
    Thanks,
    ~Dietmar.

    Hi Carl,
    thanks for the clarification. I had figured that you had a good reason to do so.
    It's a tradeoff, either approach has pros and cons.
    Most likely we will stick with that type of naming convention, but we'll look into it again.I would like to throw in an idea. You can add multiple css classes to an html tag, e.g.
    &lt;td class=&quot;t12data data&quot;&gt;The css for the class data would be empty.
    This way we could have both, different class names for different themes, but also having the elements "tagged" the same way so that the javascript should work.
    Haven't thought it out, it just came to my mind. You might consider it.
    And yes using td.data should be just fineI guess I will go down that route.
    I will create only a single theme and then use multiple css style sheets to modify the look and feel.
    This way I can switch the theme on the fly by switching style sheets only.
    Javascript modifications will work since the css class names are the same.
    All customized region templates will only have to be created once (and not for all themes).
    Thanks and a Happy New Year,
    ~Dietmar.

  • Naming conventions included for linked files?

    Perhaps a simple question but... if a file is only going to serve as a downloadable link (save as) do the standard naming conventions still apply? (lowercase, no spaces)  the files i am working with are dwg, pdf, zmt, jpeg, png...  my assumption is yes but thought i would ask.
    thank you in advance,

    All lowercase is nice, and easier since URLs are case-sensitive. Spaces are always best avoided. Completely. Some systems handle them, but there are no guarantees. Underscores (_) are a good alternative.

  • Data file naming convention!

    Hi,
    My question might be silly but I am not sure about the naming convention of my control/log/dbf file. I am oracle 11g and asm is configured with OMF enabled. When I checked the filename, I am getting filename with some numbers. What is that number refers to.
    ASMCMD> ls
    EXAMPLE.265.790927371
    ONKAR.267.791219239
    SYSAUX.257.790927221
    SYSTEM.256.790927219
    UNDOTBS1.258.790927221
    USERS.259.790927223
    ASMCMD> Could anyone please tell me what these numbers represents? I tried google but did not got any reasonable answers.
    -Onkar

    sybrand_b wrote:
    I just searched the documentation on your behalf (as you know, the documentation is that what most people here refuse to read and avoid at all cost)
    and came up with http://docs.oracle.com/cd/E11882_01/server.112/e25494/omf003.htm#ADMIN11492
    by simply typing 'Oracle Managed Files' in the search bar.
    I think ASM naming is different from OMF. The default OMF % formats are not used with the fully qualified name. its an ASM system generated dotted pair in the format
    +diskgroup/dbname/filetype/filetypetag.file.incarnation
    http://docs.oracle.com/cd/E11882_01/server.112/e18951/asmfiles.htm#i1010333
    EDIT: cross post with previous poster. same info.
    Edited by: deebee_eh on Aug 13, 2012 11:22 AM

  • Color File Naming Conventions

    As color creates the color corrected files of my footage, it has changed the name of the file. This would not be a problem, except that each reel creates the exact file names. Although it is in a separate reel folder, shot one in reel one is named the exact same as shot one in reel two. So I have a set of folders that all contain the exact same file names. Is there any way to keep the original file names in the color corrected files (or at least part of the same name)? I have looked for this topic and have found nothing, so I am sure that there is a way around this.

    No is the easy answer. At first, I thought this thread would be about illegal characters in the clip names, but...
    COLOR renders each clip into its own clip/sub directory as you have found... clip one will be in directory "1" containing a clip named, for example 1_g1.mov -- look familiar? Even though the original "names" appear on the timeline, both in COLOR and once returned to FCP- they're really pointing to these guys.
    Kind of a pain in the neck, especially since it is advised policy to cut up a project of appreciable length into "reels" roughly corresponding to 2,000' 35mm mags. But as you have found, each contributing sequence gets its own COLOR project and 'clip one' is 'clip one' in all of them. Basically, this is attributable to Final Touch being designed to be a DI/filmout application, and the sequentiality contributes to easing #####.dpx files through the process.
    Doesn't really help the Quicktimers much, does it? You might be able to re-name your rendered media, if you really, really have to, by using .... [html: add reverb and echo here].... Media.... Manager..... [/reverb and echo] ;0) [evil laughter] Oh, come on, if this isn't any fun, don't do it!
    Oh, Media Manager may return names from a rebuilt/sequence-merged project in which the clips will be in the form... 1_g1-v, 1_g1-2-v. 1_g1-v-3, and so on, depending on which layer it processes first.... (I think...) ...so 1_g1-2-v is not necessarily the first clip in "Act 2"... but we're hyper-intelligent and can figure it out anyway, right?
    jPo

  • Output File Naming Convention

    Hi PI Experts,
    I have a requirement to do the following :
    ---Pick a pdf file from a location and deposit to another location.
    Some roadblocks :
    1) The target filename should be the same as the source file name.
    2) The source file will always have .pdf extension in uppercase or lowercase. The outfile file should have .pdf extension in lowercase. Eg. the source file is <attach.PDF> or <attach.pdf>, the target file should always be <attach.pdf>
    3) A timestamp should be attached between the filename and the extension with an underscore separating them. Eg. the source file is <attach.PDF>, the target file should be <attach_timestamp.pdf>
    Summary : A file is deposited as <invoice.PDF>, the output file should be <invoice_timestamp.pdf>, a file is deposited as <invoice.pdf, the output file should be <invoice_timestamp.pdf>
    Note : I am not using any mapping objects as this is a direct file pick and deposit scenario i.e nonexistent_interface.
    Please advise on what is the suggested solution and how to perform this functions. As I am a beginner to PI, it would be great if you could provide a clear and easy to understand solution.
    Thanks in advance.

    Hi Freddy Ng,
    I understand you want to name target file dynamically. Dynamic file name is possible using
    1) Varaible substitution (but you don't have structure of payload, it is PDF)
    2) Dynamic configuration, you have to use objects in ESR ,
    _a)to use this one you need UDF, but there is no source structure, it is PDF.
    _b)you have to write a Java Mapping. Follow below steps.
    As input is not XML, we cannot use Graphical or XSLT mapping, so we have to use Java mapping.
    Solution:
    Step 1:- In Sender file channel, Advanced tab, select u201CSet Adapter-Specific Message Attributesu201D and u201CFile Nameu201D.
    Step 2:- Create a Dummy Data type: <Root><Child1></Child1><Child2></Child2></Root> and then create a Message type. Create Inbound and Outbound Message Interfaces using above Message Type and then create a Operational mapping.
    Step 3: Now, Implement Java Mapping (below).
    Step 4:- In Receiver file channel, Advanced tab, select u201CSet Adapter-Specific Message Attributesu201D and u201CFile Nameu201D.
    Regards,
    Raghu_Vamsee
    package com.image.file;
    import com.sap.aii.mapping.api.*;
    import java.io.*;
    import java.text.SimpleDateFormat;
    import java.util.*;
    public class RenameTargetFile extends AbstractTransformation {
        public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException {
            OutputStream outputstream = null;
            try {
                //Read input payload and write the same to output payload.
                InputStream inputstream = transformationInput.getInputPayload().getInputStream();
                outputstream = transformationOutput.getOutputPayload().getOutputStream();
                byte[] b = new byte[inputstream.available()];
                inputstream.read(b);
                String inputFileContent = new String(b);
                outputstream.write(inputFileContent.getBytes());
                //Get all details from SOAP Header
                Map para = transformationInput.getInputHeader().getAll();
                //Get File name http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/DynamicConfiguration.html
                DynamicConfiguration conf = (DynamicConfiguration) para.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
                DynamicConfigurationKey keyFileName = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
                String inputFileName = conf.get(keyFileName);
                SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/DD hh:mm:ss");
                String outputFileName = inputFileName.substring(0, inputFileName.indexOf(".")) + simpleDateFormat.format(new Date()) + ".pdf";
                conf.put(keyFileName, outputFileName);
            } catch (Exception exception) {
                exception.printStackTrace();

  • File Naming Conventions

    I have a tutorial made up of several modules, each one a
    separate project. all linked very nicely with buttons that open
    other projects, and it works like a charm. However, when I need to
    update one of the modules of this multi-module tutorial, the
    webmaster has asked me to name the new files uniquely. How can I
    name the files uniquely, when the file project name stays the same,
    and the project names are embedded in the projects they link with?
    Do any of you have suggestions how I can ensure that the correct
    file gets uploaded, and the correct file gets overwritten on the
    website?

    Hi linda@harvard
    I am assuming that these modules are already loaded and that
    you need to replace one or two modules. If this is the case, then
    point out to the webmaster that you do not want additional files
    loaded, but need to replace ones in existence already. Secondly, if
    these files are already loaded, then they already have "unique"
    names which were accepted by the webmaster in the first place. I
    might be wrong, but from your posting it seems as though your
    webmaster wants you to "version" control your files and this is
    irrelevant and counter productive in the case of these projects as
    it is a simple replace operation that is required.
    Cheers
    Andrew

  • Dynamic file naming for two or more files in same mappin

    Hello,
    I am working with Dynamic file naming on receiver files...
    Here two files are coming as output files...
    I am using JAva UDF to handle the two file name....
    But  one one file is formed and another is missing as its 505 file aleady existing error is coming in Receivr Communication channel monitoring...
    How to name different dynamic names for the two differenet files

    Hi Sunil,
    Go thru this blog:
    The specified item was not found.
    Use this Variable Substitution method as an alternative option:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
    OR
    The specified item was not found.
    Regards,
    Vinod.

  • Interspersed screen Issue while publishing the file in captivate

    I have noticed some images/backgrounds in published file overlapping with images in previous frames (Interspersed screen).
    It always happens when we publish the captivate file more than once. How can it be avoided.
    Following are the details I think may be helpful in resolving this issue:
    Captivate Version - CS6
    Flash Player - 10
    Operating System - Win7
    Thanks in Advance for your help.

    Try changing the slide quality if it is still Low to Optimized (now default in 6.1).
    When publishing: uncheck Advanced compression, and check Force republishing

Maybe you are looking for

  • Mass upload of insp type in mm01

    Hi, pls advise how to upload 09 insp type and active button in qm view of material master thru mass upload? pls note that presently same materials are already uploaded with 01 insp type, we want to add one more insp type 09. pls advise how to do the

  • Can't receive iMessages but I can send them. iOS 7.0.3 iPhone 5

    I can't receive iMessages but I can send them. iMessage is showing the number with a tick in the settings and I am able to send iMessages to other people but they cannot send them back. They have to send a text I have: Turned the phone off and on aga

  • Pre-compute for Value based dimensions in AWM 10g

    hi, I created a compressed partitioned MOLAP cube in OWB 10.2.0.3 based on some value based dimensions. I selected the hierarchy in value based dimensions for pre-compute, but it did display the hierarchy in OWB. I deployed the cube into Analytical w

  • Updated to Flash 10 for OSX10.4 but it doesn't work on some websites

    I'm using Firefox but it happens in Safari as well. Some websites are OK. But others with flash appear blank or on myspace the music says i need to update my flash player. I have the newest flash player. I went to the check if flash installed correct

  • Bootcamp missing after update

    Hi, I have been running the 10.10 beta for a few months without and issues effecting bootcamp. Over the weekend I installed the general release version of 10.10 and now my bootcamp partition has lost its name and I'm unable to select bootcamp from ei