Variable file names

Hi
Question 1: I am working on outbound from SAP, is it possile to generate file names of file as
SSS_BBB_date.csv whereas SSS is source system, this cna be defaulted but BBB is the store name which has to come from interfacing one of the data field.
Question2: Just want to confirm if XI accept or generate .CSV file extension.
Regards
Rinku

Rinku,
Surely you can do it. Please read the below weblog it will give you an idea
/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
Since you want to use payload please refer the help doc,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Please follow the same example in help, it will give you an idea for your structure.
If you have any doubts revert back..
Best regards,
raj.

Similar Messages

  • Variable file name through Receiver mail Communication channel

    I need to send a file through receiver communication channel   with the following name ( YYMMDD schema)  . The YYMMDD is current date .  I know how to create these file names throug FCC ( file communication channel) , I tried in the same manner to create this file through Receiver Mail CC , but it did not work  .  If you have any ideas , can you please share with me ?
    ABC_MMYYDD.TXT
    Thanks.
    Ritvik

    Hi Ritvik,
    Also, Please look at this link and see if it helps you. It is generating variable file name through a UDF
    Re: Problem in dynamically file name generation procedure
    Best Regards

  • How to read variable file name into ODI

    Hello everyone,
    I apologize in advance if this has already been answered - I've done searches both on Google and this OTN area and have not found an answer to my query.
    I would like to do the following via ODI:
    1) rename a file in a specific directory
    2) process the file
    2) move the file to a backup directory
    3) rename the file again
    The file name is going to change everytime this process runs, as date is appended to it. I could create a variable with a system date in it and concatenate that into the filename before processing it, but I am not sure when they will run the ODI routine. Therefore, I would prefer to play it safe by doing something like a wildcard search in DOS.
    Example:
    Filename = TestFile12072010.csv
    I would like to:
    1) rename TestFile12072010.csv to TestFile.csv
    2) process the file
    3) move the file to another directory
    4) rename the file to TestFile<processdate>.csv
    I was hoping to do the first step using a DOS command that reads in TestFile*.csv. Note: I would expect there to be only 1 file with this naming convention and file extension in the directory.
    I have tried creating a stored procedure that uses the Operating System type, but it runs without stopping. I have also tried ODIFileCopy and OS Command. Obviously, I am doing something wrong since I am getting errors.
    Any guidance would be much appreciated! :)
    Thanks!
    -OS

    Issue was due to a syntax error. Case closed.
    Thanks!
    -OS

  • How to format a variable (file name)

    Hi,
    I'm setting up a book consisting of 34 individual files. Each filename with this structure: "1.4 - Chapter name", "2.4 - Chapter name" etc.
    On the top of the masterpage I have insert the variable file_name in a text-box. This is straight forward and works as should.
    Now my problem: how can I format the variable, so the numerical chapter No. is separated from the text part? My aim is to place the numerical on each page aligned away from spine and to place the text part centered.
    Of course it is possible to override the MP in each document, but would require 78 manual interventions (34 documents left/right),
    Has anyone a solution, or found a way to accomplish what I try to achieve?
    FYI I'm a rookie with InDesign :-)
    Erling

    As far as InDesign is concerned a variable is a single character, so it cannot be split. You can sometimes accomplish what you need to do with a Running Header (Character Style) variable by assigning various character styles to different parts of a text string (the styles can be nothing more than style names with no attributes), but I don't see a way to get the file name automatically and be able to split it.

  • Data load from variable file names

    I have multiple files that I want to load into a cube, each starting with the same 5 characters but ending differently. EG GM1010104 GM1010204 What's the best option for MAXL script to automate this data load ? Can you use a wildcard name in the script to pick up anything starting with GM101**** ?

    No - you need to specify the file name as it appears properly (I've never tried it but I am pretty sure it wouldn't work). One solution to this problem though is to have a shell script (or DOS commands) auto-generate an ESSCMD/MaxL script based on the files that exist in a directory.Most scripting environments should allow you to loop through a list of files that match some pattern - you can then create a script with the results and execute it.Another option is to build a MaxL script that accepts a parameter (file name) and have a shell script call it as it loops through the file list.Hope that helps.Regards,Jade----------------------------------Jade ColeSenior BI ConsultantClarity [email protected]

  • Preventing file extensions being added to variable text (File Name)-

    …when one imports one INDD file (v5 or 6) into another. We have the variable text specifications set to exclude file extensions. The .indd does not publish in the originating document.
    We use INDD import and the text variable "File Name" quite a lot.
    TIA-
    -Todd

    I think he's saying that when you open an ID doc, the filename variabe inside can be set to report just the name, but when you import that same doc into another ID doc, the filename variable shows the ".indd" extension.
    EDIT: Yes, that is (stupidly) how it seems to work. No idea how to fix it though. Suspect Adobe has to issue an update.

  • Dynamic source file names

    Hi all,
    I am planning to load data from a flat file using an external table in an OWB mapping. Will my mapping work correctly if my file name changes at every load...as an example file name in October is sales_200310 in november it will be sales_200311.
    In case OWB cannot handle this kind of variable file name then does it allow to include a pre mapping script (shell script or batch command) to change the flat file name to a standard name each time the mapping is executed.
    Pls. suggest a workaround for this problem.
    My environment -- Oracle 9i, OWB 9.2
    Thanks in advance.
    Regards,
    Amit.

    Amit,
    OWB does not support dynamic file names at the moment. You will have to rename the file(s) into a static, pre-defined name either by running a pre mapping process in the mapping or by running an external process from a process flow.
    Regards:
    Igor

  • EMCLI Variable File

    Hello,
    I tried to create a service by using the create_service command ...
    I've exported the template.xml files which I have created in gridcontrol.
    But in the manual is written that i need a variable File for each Template but i cant find anywhere a discription how to build it... is it an xml file or an plain .txt file with name:value pair .... Does anyonw have experience with it who can share it ?
    thanks
    Felix

    Hi Felix,
    Looking at http://download.oracle.com/docs/cd/B19306_01/em.102/b40004/cli_verb_ref.htm (Create_service) using vars:Variables file name is between []. So it is not required to use it.
    I think the Variables file name has to have the same structure as used in apply_template_tests. The manual is vague about this point.
    The variables file format is as follows:
    <variables xmlns="template">
    <variable name="<name1>" value="<value1>"/>
    <variable name="<name2>" value="<value2>"/>
    </variables>
    Eric

  • Passing file name dynamically to sql loader ctl file

    Hi,
    I am new to scripting and I have a complex requirement involving writing a script.
    Requierment:
    I need to upload a CSV file from a FTP server into oracle table using SQL Loader. The file name resembles like APF0912312359.csv represents 31-DEC-2009 23:59 and there will be multiple files in same day indicated by differnt timestamp as its filename. Once I load a file using SQL loader, I need to move the file to another directory for archival.
    Since the sql loader ctl file has a fixed file name, I would like to know how I can pass the file name dynamically to ctl file to load a new file every time it runs.
    Any help is greatly appreciated..
    Bye
    Sudheer
    Edited by: user2138419 on Oct 28, 2009 4:08 PM

    I agree with Pradeep in regards to declaring the file names on the command line. However, I do have a concern regarding presenting the password on the command line as any user that can issue a ps (assuming Unix ~= Linux here) would be able to read it while the sqlldr command is running.
    Unfortunately, you may not always have the option of declaring the files on the command line. I was recently challenged with this in a Windows 2003 Server environment running SQL*Loader: Release 10.2.0.1.0. In this environment I found that I am able to set a variable file name in a calling batch file and use that value in the control file successfully. Just to demonstrate the approach:
    Batch file:
    set IN_FILE=’c:\inbound\load_me.txt’
    sqlldr user/pswd@db PARFILE=’c:\parameters.txt’
    Parameter file:
    errors=500000
    rows=50000
    control=%CTL_FILE%
    bad=%BAD_FILE%
    discard=%DSC_FILE%
    log=%LOG_FILE%
    Control file:
    LOAD DATA
    INFILE ‘%IN_FILE%’
    INSERT
    INTO TABLE table_to_be_loaded
    I’m really interested to see if this would work on Unix.
    -Luke

  • Variable subsitution for target file names

    Hi All,
    I am using variable subsitution for dynamic file names. I am using the multimapping for multiple files in the target.So i coluld not able to use the dynamic configuration for file names. Now i want to replace all the spaces in the filename to underscore.
    For example
    My payload filed value "file name in the target file".
    Now my filename  "file_name_in_the_target_file".
    How to achieve this using Variable subsitution.
    Regards,
    Ramalakshmi.G

    Use replaceString Function.
    file name
    Constant (" ")               --> replaceString -------> TargetField
    Constant ("_")
    Regards
    Ramesh

  • Variable substitution not working for dynamic file name in Receiver File CC

    Hi Experts,
    I am doing the scenario of Proxy sender to File receiver and my purpose is to Create the text file
    as per the filename available in Source Message payload.
    I am using the Variable Substitution method for this as shown below.
    Source Message Structure:-
         <Row>            -
    having Cocurence 1.1
             <Filename>     -
    having Cocurence 1.1
             <Item>            -
    having Cocurence 1.Unbounded
              <Field1>
              <field2>
             <Item>
             <Item>
              <Field1>
              <field2>
                <Item>        
         <Row>
    Target structure is same as the source structure and i have mapped the Filename field of the Source
    with the Target structure Filename.
    In ID the following is the File receiver CC Configuration.
    File Name Scheme:- %Dyn_filename%
    In Advance tab, I have selected the Enable option and added one row as Variable name %Dyn_filename%
    and Reference as payload:Row,1,Filename,1
    In testing I am getting the Error as 'variable Dyn_filename is not found in Message payload'.
    Please suggest me.
    Regards,
    Jagesh

    Hi Pooja,
    Hi Pooja,
    Thanks for your valuable reply..
    I  tried with the same. but still Filename is appearing in Output file.Giving you some details regarding my Receiver File Configuration settings.
    Target Message Type:-
              <MT_Target_Struct>
                    <Row>----
    1.1 occurence
                            <Filename_test>----
    1.1 occurence
                            <ITEM>----
    1.unbounded occurence
                                  <Field1>
                                  <Field2>
                            <ITEM>
                            <ITEM>
                                  <Field1>
                                  <Field2>
                            <ITEM>
                    <Row>
              <MT_Target_Struct>
    Recordset structure:-  Row,Filename_test,ITEM
    Row.fieldSeparator----
    >'nl'
    Filename_test.fieldFixedLengths----
    >0  (Zero)
    Filename_test.fixedLengthTooShortHandling----
    >Cut
    ITEM.fieldSeparator----
    >,
    ITEM.endSeparator----
    >'nl'
    I want only ITEM node to be written in the output file.
    Please suggest.
    Regards,
    Jagesh

  • PHP Code: Using a variable to name the file in an Include

    I have a series of case statements assigning a value to the
    variable $theme
    based on the current month. Then I have a set of files
    (january.txt,
    february.txt, etc.). The variable values are those file
    names:
    // get current month as a number
    $month = date('n');
    // select theme for the month
    switch($month) {
    case 3:
    $theme = 'march.txt';
    break;
    case 4:
    $theme = 'april.txt';
    break;
    [etc.]
    What is the correct syntax for a PHP Include that will use
    the current value
    of $themes for the filename?
    Thanks
    Walt

    <?php include('_inc/'.$theme); ?>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Walt F. Schaefer" <[email protected]> wrote in
    message
    news:gqutqv$qbf$[email protected]..
    >I have a series of case statements assigning a value to
    the variable $theme
    >based on the current month. Then I have a set of files
    (january.txt,
    >february.txt, etc.). The variable values are those file
    names:
    > // get current month as a number
    > $month = date('n');
    > // select theme for the month
    > switch($month) {
    > case 3:
    > $theme = 'march.txt';
    > break;
    > case 4:
    > $theme = 'april.txt';
    > break;
    > [etc.]
    > What is the correct syntax for a PHP Include that will
    use the current
    > value of $themes for the filename?
    >
    > Thanks
    >
    > --
    >
    > Walt
    >
    >
    >

  • How can I extract a file name / path from a local path variable in TestStand?

    I have local TestStand string variable, call it 'locals.path', that contains a path to a file including the file name (c:\inputs\input.txt). I need to be able to split up the path (c:\input) and the file name (input.txt) and save them into 2 local variables. What is the best way to do this?
    After reading through some of the other forums, it looks like there are some built-in functions that can accomplish this, but I am unable to find how to use them anywhere on the NI web site. One forum said to use the File I/O>Strip Path.file function. How is this called? Is this function in a DLL?
    I know that there are a number of DLLs that are installed with TestStand into the c:\windows\system32 directory. One forum made note of CVI_OpenFile / CVI_ReadFIle functions in the cvirt.dll that I used to solve a problem that I had in the past. The problem is that I had no idea that that these functions even existed and would have never known unless a similar question had been posted previously. Is there some place that these DLL function interfaces are defined or documented? Is there a function that can extract the file name out of a string for me?
    Thanks,
    Mike

    Hi,
    There sound like functions in say LabVIEW or CVI.
    I have attached a small example which may help. (I have not allowed for any error trapping, if say you dont find the file and cancel)
    Regards
    Ray Farmer
    Message Edited by Ray Farmer on 10-16-2006 10:04 PM
    Regards
    Ray Farmer
    Attachments:
    Sequence File1.seq ‏33 KB

  • Get (variable) file path and name in a text element

    How do you get the (variable) file path and name in a text element (label) in LCD? If you save the PDF and afterwards relocate it, it should update the values. Is that actually possible?

    Does anyone have any advice on this issue?
    Thanks in advance,
    Zack H.

  • Get the file name into a Odi variable

    Hi,
    I need to get the file name into odi variable like ..A/ETC/file.txt
    For eg.the filename file.txt should get store in a variable.
    Then i want to compare the file name stored in the variable with some other value.
    Please suggest.
    Thanks.

    in package,
    declare the variable, then evaluate it with another variable, generally using # syntax
    if the variable is date type, suggest to use : syntax, because # will treat the variable value as text value
    in loadplan
    use case when syntax,

Maybe you are looking for

  • How do you send a web page in safari

    How do you send a web page in safari

  • No MPEG preview or playback in Bridge CS5

    After doing a clean install of CS5, everything seems to work well except for Bridge. HDV mpeg clips will not display a visual thumbnail or playback in preview window of Bridge.  When double-click ing icon, I get an error "Windows cannot find '%Progra

  • Using 5th generation 60 GB iPod from Windows to MAC

    I just purchased an iMac with SnowLeopard and want to use my 5th generation 60GB iPod with it, which had previously been set up on Windows XP PC. Is there anything I should do before I hook it up to my new iMac?

  • Yahoo Merchant Solutions Extension for Dreamweaver MX 2004 Trial Version

    I have a licensed version of Dreamweaver MX 2004 at home, as well as the downloaded extension for Yahoo Merchant Solutions that enables me to add the shopping cart. However, I am currently working offsite and needed to download a trial version of Dre

  • Error in BAPI for ME21N

    Hi, I have developed a Z program for ME21N by using BAPI( BAPI_PO_CREATE1). When I executive it always shows "Please enter items first. No instance of object type PurchaseOrder has been created. External reference: Document contains no items". Would