XSLT output file with date

Is there a way to change the Output settings for the Run Configuration of an XSLT file so that the output file contains a date/time string in its name?

From the W3C recommendation:
If the indent attribute has the value yes, then the html output method may add or remove whitespace as it outputs the result tree, so long as it does not change how an HTML user agent would render the output. The default value is yes.
as you see, you won't see a different between indent="yes" and no indent attribute, as the default is "yes". have you tried "no" to see if it does anything at all?
moreover the word may in the above sentence means the parser will do it or not...

Similar Messages

  • Saving a file with data?

    HI, I am wanting to save a file with data, can some one point me in the right direction to a tut or some thing. Thanks.
    OR
    if they could be so kind as to code a simple thing that saves a file (txt) with a word. This would make my day,
    Thansk and all the best Jonathan :o).

    I have sorted what I was wanting to do. there was some code missing from the coding as well as the import function.
    No you don't have to be 'god' but if some one just handed you a russian/english dictionary you would still have a difficult time making a sentance or even a DVD with every thing there is to know speaking gaelic.
    You have to learn more than just the syntax. sorry I'm not the best person in the world for understanding docs etc, but we all have our good points, ask me any thing else on computers and networks I'll give a plain english answer, wood chips and all.
    This is all meant in a good tone, there is the problem with txt that it tend to have a dull sound, so cheer up and smile. I know I am.
    :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o)
    :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o)

  • How to Run Export and Make Dump and Log File with Dates on NT

    Hi Gurus,
    set ORACLE_SID=ORCL
    set ORACLE_HOME=D:\ORACLE\ora92
    for /f "tokens=2,3,4 delims=/ " %%a in ('date /t') do
    set fdate=%%a%%b%%c
    exp userid=userid/password@connectstring
    file=exp%fdate%.dmp log=exp%fdate%.log full=y
    I am using above script for export and make dump file with dates, but when i am excuting this script with Schedule task i am getting error.
    C:\Documents and Settings\krishna>for /f "tokens=2,3,4 delims=/ " %%a in ('date
    /t') do
    %%a was unexpected at this time.
    Help is highly appriciated.
    Thanks & Regards
    praveen

    HOST('EXP80 MRPAY/MRPAYS FILE=D:\BACKUP\MRPAY'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=MRPAY CONSISTENT=Y');
    HOST('EXP80 SECSYS/SECSYS FILE=D:\BACKUP\SECSYS'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=SECSYS CONSISTENT=Y');
    HOST('EXP80 SICPA/SICPA FILE=D:\BACKUP\SICPA'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=SICPA CONSISTENT=Y');
    HOST('EXP80 SICPAINVSYS/SICPAINVSYS FILE=D:\BACKUP\SICPAINVSYS'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=SICPAINVSYS CONSISTENT=Y');
    HOST('EXP80 SICPAGLSYS/SICPAGLSYS FILE=D:\BACKUP\SICPAGLSYS'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=SICPAGLSYS CONSISTENT=Y');
    HOST('EXP80 SICPAPURHSYS/SICPAPURHSYS FILE=D:\BACKUP\SICPAPURHSYS'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=SICPAPURHSYS CONSISTENT=Y');
    HOST('EXP80 SICPARECSYS/SICPARECSYS FILE=D:\BACKUP\SICPARECSYS'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=SICPARECSYS CONSISTENT=Y');
    HOST('EXP80 SICPASECSYS/SICPASECSYS FILE=D:\BACKUP\SICPASECSYS'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=SICPASECSYS CONSISTENT=Y');
    HOST('EXP80 FASYS/FASYS FILE=D:\BACKUP\FASYS'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=FASYS CONSISTENT=Y');
    HOST('EXP80 ATTSYS/ATTSYS FILE=D:\BACKUP\ATTSYS'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=ATTSYS CONSISTENT=Y');
    HOST('EXP80 ATTENDANCESYSTEM/ATTENDANCESYSTEM FILE=D:\BACKUP\ATTENDANCESYSTEM'||TO_CHAR(SYSDATE,'DDMMRRHH24MI')||'.DMP OWNER=ATTENDANCESYSTEM CONSISTENT=Y');
    Arshad

  • Need to rescue Garage Band Files with Data Rescue II - what kind of files?

    Hi all -
    After a particularly gruesome computer crash, I am trying to reconstruct my lost files using Data Rescue II..... This program goes into the damaged hard drive and downloads all intact files it can find, but it is NOT able to label everything correctly. All it can do is divide things into folders - Audio files, document files, images, mail, misc., and movies. And within these folders are other folders - for instance, in the "Audio" rescued folder, there are hundreds of AIFF files, AIFF1 files, AIFF2, MP3, WAV, m4a, and m4p files.
    My question is: can someone please tell me what the heck a Garage Band project file is? That would save me a lot of time in digging through all this material trying to find one....
    (Don't get me wrong... I'm grateful to have stuff to dig through! I just hope my Garage Band files are intact and recoverable.)
    Has anyone had success saving Garage Band files with Data Rescue II?
    Thanks in advance.

    Aaaagh!
    I spoke too soon. Yes,I did indeed find the file that contained all the files I needed to retrieve (using Disk Rescue II). When my 6-hour download of the 78 GB folder finished, I check the files again, and they weren't located in the orphaned section, but in the Hard Drive section under the normal directory, in a folder called .Trashes - within that there was another folder called "501", which contained all the Garageband files I needed to retrieve. However, when I tried to open the downloaded "rescued" files, they were inside a folder called "Macintosh HD", which could not be opened, and I got a message that said "Could not be opened because you do not have sufficient access privileges." Not only that, but even after 6 hours of (apparently) downloading the 78 GB folder, my hard drive, which had close to 83 GB of free space, said STILL had almost that same amount.
    So did it download anything or not? What was it doing all those 6 hours? I have a file that I can't open, but apparently it's going to be empty anyway.
    Here's the full story, for anyone with the patience to listen and offer advice. It looks like now I'm looking for a way to 1) get the permissions to open the .trashes file so that I can download everything, or 2) figure out a way to get Disk Rescue II to open the files and download them regardless of the permissions.
    Full Story -
    I am pretty sure that my computer crash was caused by working with the newest version of Garageband 08. Ever since buying it and loading it, my computer has been acting funny whenever I use the Garage Band program - I could only record about one in three attempts since the computer kept freezing as soon as I finished recording a line. I would have to use force restart to get going again.
    The day the computer crashed, I was working on a Garage Band project, which kept crashing, and I was also using Finale, Microsoft Word, and iTunes -- all of which are my normal procedure and I'd never had any problems with anything before loading the new Garage Band 08. (See my posts on other discussion topics for more details). After the last freeze, the computer crashed totally and could not be restarted - it would get to the gray screen with the spinning gear and just sit there while the fans ramped up to overload.
    I used Disk Warrior to rescue whatever files I could onto an external hard drive, and I started to download all the Garage Band files. However, the "estimated time to completion" said over 6 hours , so I stopped the download after a minute or so and went on to rescue all the other files that were smaller in size and easier to download - I figured I'd set Disk Warrior to download the whole 78 GB set of Garage Band files overnight while I slept. But....when I went back to begin the download again, I noticed that the directory of Garage Band files went only to the letter "C" instead of all the way to "Z" like my original files had done during that earlier attempt to download. I am assuming that somehow, the directory for the files I download before aborting the attempt (A-C) got exchanged with the directories of the original version (A-Z), but the original directory was no where to be found.
    I decided to try an archive install in the hopes that I could just restart my computer and get the files out by hand. The archive install went fine, and the computer started up fine and got to the log-in screen, which had changed. I now had two blanks - one for user name and one for password, instead of the choices of names. I tried all my user names and passwords, and asked my wife for her names and passcodes, but nothing worked. The computer had apparently re-set all its permissions and User accounts. I tried using Disk Utility to reset the password in its opening screens, but instead of getting several User options, the only one it allowed me to attempt was "System Administrator (root)", and even that wouldn't let me in to change any passwords.
    That's when I downloaded Data Rescue II, which does seem to do a good job of locating lost files. However, since I didn't have permissions to open the computer the last time, I am still apparently facing the same thing when I try to access files copies OFF the computer.
    So I'm not out of the woods yet. I can see the files on the Data Rescue screen, but I don't know whether they have permissions tied to them or not, and if they do, whether the system would let me since I don't know what the passwords and user names have defaulted back to.
    Any advice? Please?

  • Append a file with date and name in the output file

    I am running a script which produce an output in excel file, I would like the server name and the date in the output file,  Both the servername and date has declared at the beginning of the script as 
    $server = test1
    $date = Get-Date -uformat %Y-%m-%d
    I am able to append either server or date but not both. Could you please help me out on this.
    I would like the output file as '
    server_report_date.xls

    I got this working by 
    "C:\Aravind\Scripts\$server-"+"Report-" +"$Date"+".xls"
    Thanks!!

  • Creation file with data of sales order header and scheduling

    Hi developers,
    I must create a file to send a customer with data of VBAP and VBEP.
    You have a way fast or a report base for this activity?
    Thanks
    Domenico

    Domenico,
    I am not clear over the requirement.
    Anyway as per my assumptions over your issue here is what I think.
    If you want to create a file on presentation server...then use ws_download. this function module is used downloading data from an internal table to a file.
    For application server, use 'open dataset for output'. Do F1 on 'open dataset' and do a 'transfer' from internal table to your file.
    TRANSFER source to dsn.
    dsn has the file name.
    Regards,

  • How to import flat file with date in filename on a regular basis

    Hi,
    Using OWB 11gR1
    I have a file that will be delivered to an FTP each night with the date in the filename having the form YYYYMMDD-FILE.txt (ex: 20100326-FILE.txt) that I want to import to an external table.
    Now I've set up the import to the external table but am only able to import files that I specify the name for exactly. I've tried pointing to filenames such as "*-FILE.txt" and "%-FILE.txt" but that only results in errors.
    It must be possible to automatically import files with different filenames but the same structure, or isn't it? Could anyone help me solve this it'd be greatly appreciated.
    Thank you in advance.

    Hi
    For dynamic files you can;
    1. either do the DDL on the external table to point to the file with the changing name
    2Copy the file to a fixed name before using the external table/maps
    3. Use the preprocessor to cat/pipe these files for the external table. See the post here http://blogs.oracle.com/warehousebuilder/2009/06/file_staging_using_external_table_preprocessor.html it shows using gunzip but could simply be doing 'cat' on a bunch of files to standard output
    Cheers
    David

  • Save listbox items to file with date in filename

    Im trying to setup a small program to where when you save listbox items, it saves to a file with a specific name. All works fine, no problems.  What I need to do is hen you click save, it saves the file with the specific name BUT with the date &
    time added to the filename. 
    Example: filename-date-time.txt
    Currently, Im only able to save as  filename.txt
    So when you save the list again, it just overwrites the file already there.
    Here is what I have:
    IO.Directory.CreateDirectory("C:\foldername")
    Dim w As New IO.StreamWriter("C:\foldername\filename.txt")
    Dim i As Integer
    For i = 0 To ListBox1.Items.Count - 1
    w.WriteLine(ListBox1.Items.Item(i))
    Next
    w.Close()
    MsgBox("List has been saved to C:\foldername\filename.txt", MsgBoxStyle.OkOnly)
    What do I need to add to this line: Dim w As New IO.StreamWriter("C:\foldername\filename.txt")   So that it can save it with the date & time?

    Dim w As New IO.StreamWriter("C:\foldername\filename " & Now.ToString(" MM/dd/yyyy hh:mm:ssf") & ".txt")
    Custom Date and Time Format Strings
    Format specifier
    Description
    Examples
    "d"
    The day of the month, from 1 through 31.
    More information:
    The "d" Custom Format Specifier.
    2009-06-01T13:45:30 -> 1
    2009-06-15T13:45:30 -> 15
    "dd"
    The day of the month, from 01 through 31.
    More information:
    The "dd" Custom Format Specifier.
    2009-06-01T13:45:30 -> 01
    2009-06-15T13:45:30 -> 15
    "ddd"
    The abbreviated name of the day of the week.
    More information:
    The "ddd" Custom Format Specifier.
    2009-06-15T13:45:30 -> Mon (en-US)
    2009-06-15T13:45:30 -> Пн (ru-RU)
    2009-06-15T13:45:30 -> lun. (fr-FR)
    "dddd"
    The full name of the day of the week.
    More information:
    The "dddd" Custom Format Specifier.
    2009-06-15T13:45:30 -> Monday (en-US)
    2009-06-15T13:45:30 -> понедельник (ru-RU)
    2009-06-15T13:45:30 -> lundi (fr-FR)
    "f"
    The tenths of a second in a date and time value.
    More information:
    The "f" Custom Format Specifier.
    2009-06-15T13:45:30.6170000 -> 6
    2009-06-15T13:45:30.05 -> 0
    "ff"
    The hundredths of a second in a date and time value.
    More information:
    The "ff" Custom Format Specifier.
    2009-06-15T13:45:30.6170000 -> 61
    2009-06-15T13:45:30.0500000 -> 00
    "fff"
    The milliseconds in a date and time value.
    More information:
    The "fff" Custom Format Specifier.
    6/15/2009 13:45:30.617 -> 617
    6/15/2009 13:45:30.0005 -> 000
    "ffff"
    The ten thousandths of a second in a date and time value.
    More information:
    The "ffff" Custom Format Specifier.
    2009-06-15T13:45:30.6175000 -> 6175
    2009-06-15T13:45:30.0000500  -> 0000
    "fffff"
    The hundred thousandths of a second in a date and time value.
    More information:
    The "fffff" Custom Format Specifier.
    2009-06-15T13:45:30.6175400 -> 61754
    6/15/2009 13:45:30.000005 -> 00000
    "ffffff"
    The millionths of a second in a date and time value.
    More information:
    The "ffffff" Custom Format Specifier.
    2009-06-15T13:45:30.6175420 -> 617542
    2009-06-15T13:45:30.0000005 -> 000000
    "fffffff"
    The ten millionths of a second in a date and time value.
    More information:
    The "fffffff" Custom Format Specifier.
    2009-06-15T13:45:30.6175425 -> 6175425
    2009-06-15T13:45:30.0001150 -> 0001150
    "F"
    If non-zero, the tenths of a second in a date and time value.
    More information:
    The "F" Custom Format Specifier.
    2009-06-15T13:45:30.6170000 -> 6
    2009-06-15T13:45:30.0500000 -> (no output)
    "FF"
    If non-zero, the hundredths of a second in a date and time value.
    More information:
    The "FF" Custom Format Specifier.
    2009-06-15T13:45:30.6170000 -> 61
    2009-06-15T13:45:30.0050000 -> (no output)
    "FFF"
    If non-zero, the milliseconds in a date and time value.
    More information:
    The "FFF" Custom Format Specifier.
    2009-06-15T13:45:30.6170000 -> 617
    2009-06-15T13:45:30.0005000 -> (no output)
    "FFFF"
    If non-zero, the ten thousandths of a second in a date and time value.
    More information:
    The "FFFF" Custom Format Specifier.
    2009-06-15T13:45:30.5275000 -> 5275
    2009-06-15T13:45:30.0000500 -> (no output)
    "FFFFF"
    If non-zero, the hundred thousandths of a second in a date and time value.
    More information:
    The "FFFFF" Custom Format Specifier.
    2009-06-15T13:45:30.6175400 -> 61754
    2009-06-15T13:45:30.0000050 -> (no output)
    "FFFFFF"
    If non-zero, the millionths of a second in a date and time value.
    More information:
    The "FFFFFF" Custom Format Specifier.
    2009-06-15T13:45:30.6175420 -> 617542
    2009-06-15T13:45:30.0000005 -> (no output)
    "FFFFFFF"
    If non-zero, the ten millionths of a second in a date and time value.
    More information:
    The "FFFFFFF" Custom Format Specifier.
    2009-06-15T13:45:30.6175425 -> 6175425
    2009-06-15T13:45:30.0001150 -> 000115
    "g", "gg"
    The period or era.
    More information:
    The "g" or "gg" Custom Format Specifier.
    2009-06-15T13:45:30.6170000 -> A.D.
    "h"
    The hour, using a 12-hour clock from 1 to 12.
    More information:
    The "h" Custom Format Specifier.
    2009-06-15T01:45:30 -> 1
    2009-06-15T13:45:30 -> 1
    "hh"
    The hour, using a 12-hour clock from 01 to 12.
    More information:
    The "hh" Custom Format Specifier.
    2009-06-15T01:45:30 -> 01
    2009-06-15T13:45:30 -> 01
    "H"
    The hour, using a 24-hour clock from 0 to 23.
    More information:
    The "H" Custom Format Specifier.
    2009-06-15T01:45:30 -> 1
    2009-06-15T13:45:30 -> 13
    "HH"
    The hour, using a 24-hour clock from 00 to 23.
    More information:
    The "HH" Custom Format Specifier.
    2009-06-15T01:45:30 -> 01
    2009-06-15T13:45:30 -> 13
    "K"
    Time zone information.
    More information:
    The "K" Custom Format Specifier.
    With DateTime values:
    2009-06-15T13:45:30, Kind Unspecified ->
    2009-06-15T13:45:30, Kind Utc -> Z
    2009-06-15T13:45:30, Kind Local -> -07:00 (depends on local computer settings)
    With DateTimeOffset values:
    2009-06-15T01:45:30-07:00 --> -07:00
    2009-06-15T08:45:30+00:00 --> +00:00
    "m"
    The minute, from 0 through 59.
    More information:
    The "m" Custom Format Specifier.
    2009-06-15T01:09:30 -> 9
    2009-06-15T13:29:30 -> 29
    "mm"
    The minute, from 00 through 59.
    More information:
    The "mm" Custom Format Specifier.
    2009-06-15T01:09:30 -> 09
    2009-06-15T01:45:30 -> 45
    "M"
    The month, from 1 through 12.
    More information:
    The "M" Custom Format Specifier.
    2009-06-15T13:45:30 -> 6
    "MM"
    The month, from 01 through 12.
    More information:
    The "MM" Custom Format Specifier.
    2009-06-15T13:45:30 -> 06
    "MMM"
    The abbreviated name of the month.
    More information:
    The "MMM" Custom Format Specifier.
    2009-06-15T13:45:30 -> Jun (en-US)
    2009-06-15T13:45:30 -> juin (fr-FR)
    2009-06-15T13:45:30 -> Jun (zu-ZA)
    "MMMM"
    The full name of the month.
    More information:
    The "MMMM" Custom Format Specifier.
    2009-06-15T13:45:30 -> June (en-US)
    2009-06-15T13:45:30 -> juni (da-DK)
    2009-06-15T13:45:30 -> uJuni (zu-ZA)
    "s"
    The second, from 0 through 59.
    More information:
    The "s" Custom Format Specifier.
    2009-06-15T13:45:09 -> 9
    "ss"
    The second, from 00 through 59.
    More information:
    The "ss" Custom Format Specifier.
    2009-06-15T13:45:09 -> 09
    "t"
    The first character of the AM/PM designator.
    More information:
    The "t" Custom Format Specifier.
    2009-06-15T13:45:30 -> P (en-US)
    2009-06-15T13:45:30 -> 午 (ja-JP)
    2009-06-15T13:45:30 ->  (fr-FR)
    "tt"
    The AM/PM designator.
    More information:
    The "tt" Custom Format Specifier.
    2009-06-15T13:45:30 -> PM (en-US)
    2009-06-15T13:45:30 -> 午後 (ja-JP)
    2009-06-15T13:45:30 ->  (fr-FR)
    "y"
    The year, from 0 to 99.
    More information:
    The "y" Custom Format Specifier.
    0001-01-01T00:00:00 -> 1
    0900-01-01T00:00:00 -> 0
    1900-01-01T00:00:00 -> 0
    2009-06-15T13:45:30 -> 9
    2019-06-15T13:45:30 -> 19
    "yy"
    The year, from 00 to 99.
    More information:
    The "yy" Custom Format Specifier.
    0001-01-01T00:00:00 -> 01
    0900-01-01T00:00:00 -> 00
    1900-01-01T00:00:00 -> 00
    2019-06-15T13:45:30 -> 19
    "yyy"
    The year, with a minimum of three digits.
    More information:
    The "yyy" Custom Format Specifier.
    0001-01-01T00:00:00 -> 001
    0900-01-01T00:00:00 -> 900
    1900-01-01T00:00:00 -> 1900
    2009-06-15T13:45:30 -> 2009
    "yyyy"
    The year as a four-digit number.
    More information:
    The "yyyy" Custom Format Specifier.
    0001-01-01T00:00:00 -> 0001
    0900-01-01T00:00:00 -> 0900
    1900-01-01T00:00:00 -> 1900
    2009-06-15T13:45:30 -> 2009
    "yyyyy"
    The year as a five-digit number.
    More information:
    The "yyyyy" Custom Format Specifier.
    0001-01-01T00:00:00 -> 00001
    2009-06-15T13:45:30 -> 02009
    "z"
    Hours offset from UTC, with no leading zeros.
    More information:
    The "z" Custom Format Specifier.
    2009-06-15T13:45:30-07:00 -> -7
    "zz"
    Hours offset from UTC, with a leading zero for a single-digit value.
    More information:
    The "zz" Custom Format Specifier.
    2009-06-15T13:45:30-07:00 -> -07
    "zzz"
    Hours and minutes offset from UTC.
    More information:
    The "zzz" Custom Format Specifier.
    2009-06-15T13:45:30-07:00 -> -07:00
    The time separator.
    More information:
    The ":" Custom Format Specifier.
    2009-06-15T13:45:30 -> : (en-US)
    2009-06-15T13:45:30 -> . (it-IT)
    2009-06-15T13:45:30 -> : (ja-JP)
    The date separator.
    More Information:
    The "/" Custom Format Specifier.
    2009-06-15T13:45:30 -> / (en-US)
    2009-06-15T13:45:30 -> - (ar-DZ)
    2009-06-15T13:45:30 -> . (tr-TR)
    "string"
    'string'
    Literal string delimiter.
    2009-06-15T13:45:30 ("arr:" h:m t) -> arr: 1:45 P
    2009-06-15T13:45:30 ('arr:' h:m t) -> arr: 1:45 P
    Defines the following character as a custom format specifier.
    More information: Using Single Custom Format Specifiers.
    2009-06-15T13:45:30 (%h) -> 1
    The escape character.
    2009-06-15T13:45:30 (h \h) -> 1 h
    Any other character
    The character is copied to the result string unchanged.
    More information:
    Using the Escape Character.
    2009-06-15T01:45:30 (arr hh:mm t) -> arr 01:45 A
    La vida loca
    gives error when trying save.
    The given path's format is not supported.

  • How to read a file with data in Hierarchical Structure using XSD Schema

    Hi
    We have requirement in which we have to read a FIXED LENGTH file with FILE ADAPTER. File contains the data in hierarchical structure. Hierarchy in the file is identified by the first 3 characters of every line which could be any of these : 000,001,002,003 and 004. Rest files are followed after these. So structure is like:
    000 -- Header of File. Will come only once in file. Length of this line is 43 characters
    -- 001 -- Sub Header. Child for 000. Can repeat in file. Length of this line is 51 characters
    --- 002 -- Detail record. Child for 001. Can repeat multiple times in given 001. Length of this line is 43 characters 1353
    -- 003 -- Sub Footer record at same level of 001. Will always come once with 001 record. Child for 000. Length of this line is 48 characters
    004 -- Footer of file.At same level of 000. Will come only once in file. Length of this line is 48 characters
    Requirement is to create an XSD which should validate this Hierarchical Structure also i.e data should come in this hierarchy only else raise an error while parsing the file.
    Now while configuring the FILE ADAPTER to read this file we are using Native Schema UI to create the XSD to parse this structure using an example data file. But we are not able to create a valid XSD for this file which should validate the Hierarchy also on the file.
    Pls provide any pointers or solution for this.
    Link to download the file, file structure details and XSD that we have created:
    https://docs.google.com/file/d/0B9mCtbxc3m-oUmZuSWRlUTBIcUE/edit?usp=sharing
    Thanks
    Amit Rattan
    Edited by: user11207269 on May 28, 2013 10:16 PM
    Edited by: user11207269 on May 28, 2013 10:31 PM
    Edited by: user11207269 on May 28, 2013 10:33 PM

    Heloo.. Can anyone help me on this. I need to do Hierarchial read / validation while reading the file using File Adapter using Native XSD schema.

  • Creating a spool file with date/time appended to file name

    In Oracle Sql*Plus, I want to spool out a file, with the date-time stamp as part of the file name. Any idea how to do this?
    Here's what I have right now:
    SQL>
    set serveroutput on size 200000;
    rem
    rem $OFSA is a UNIX alias so sql plus is talking to UNIX
    rem
    spool $OFSA/logs/OFSAP/common_coa_id.log;
    prompt 'Enter date in mmddyyyy format, without quotes';
    exec upd_common_coa_id_driver ('&date_mmddyyyy');
    spool off;
    As an example, I'd like to have a file with this name: common_coa_id083002.log
    Thanks.

    In SQL*Plus this is what you can do to get the current date/time as part of the spool file:
    ============================================================================================
    SQL> column tm new_value file_time noprint
    SQL> select to_char(sysdate, 'YYYYMMDD') tm from dual ;
    1 row selected.
    SQL> prompt &file_time
    20020816
    SQL> spool C:\Temp\logfile_id&file_time..log
    . /* put your code here */
    . /* it will go to a file called C:\Temp\logfile_id20020816.log */
    SQL> spool off
    SQL>

  • File Adapter : read XML file with data validation and file rejection ?

    Hello,
    In order to read a XML file with the file adapter, I have defined a XSD that I have imported to my project.
    Now the File Adapter reads the file correctly but it does not give an error when:
    - the data types are not valid. Ex: dateTime is expected in a node and a string is provided
    - the XML file has invalid attributes.
    How can I manage error handling for XML files ?
    Should I write my own Java XPath function to validate the file after is processed ? (here is an example for doing this : http://www.experts-exchange.com/Web/Web_Languages/XML/Q_21058568.html)
    Thanks.

    one option is to specify validateXML on the partnerlink (that describes the file adapter endpoint) such as shown here
    <partnerLinkBinding name="StarLoanService">
    <property name="wsdlLocation"> http://<hostname>:9700/orabpel/default/StarLoan/StarLoan?wsdl</property>
    <property name="validateXML">true</property>
    </partnerLinkBinding>
    hth clemens

  • Posting a File with Date Time using FTP in a BPM scenario

    Hi All,
      I have got a following requirement within the BPM ::-
    Step 1: We receive a file from an external system using FTPS with File Content Conversion Mode. The file is a comma separated file.
    Step 2 : We need to write the same file without any changes in data elements to another File System. The file to be written will be comma separated.
    Step 3 : The data will be mapped to an RFC and there will be a RFC Call to the ECC system.
    Step 4 : On successful call to RFC, the file will be dumped into the SAP File system also.
    The issue here is in Step 2. The additional requirement for Step 2 is to name the file with the following convention -
    ABCDEF_<Date in MMDDYYYY>_<Time in HHMMSS>_<Time in ms>_data.txt
    Can you help me on how to configure this from within the BPM ? I have seen blogs and replies in forum on using UDF's for the same. I am not sure on how to do this in BPM.
    Please help !!!
    Thanks,
    Amit

    Hi,
    I dont think you required BPM in this case,you can achieve this requirement using Multi mapping.
    3 Receive comunication channels
    1)to send file to receive File directory9Content conversion required)
    2)RFC Receiver Communication channel to make a cal to SAP ECC to send RFC..
    3)One more File communication channel to send data to SAP File System.
    refer below blog.
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Regarding r file name use dynam ic configuration UDF or ASMA to chnage file name format to your desired format,if you decided to use UDF then map root nod of receiver file structure in multimapping.
    Regards,
    Raj

  • Merging output files with bursting ...

    BIP 5.6.3 (eBus 11.5.10.2 + bursting integration patch)
    We have a case where we are attempting to burst a subset of the records to a single merged PDF file, with other records being sent to individual files (same template for all records). I thought that I had seen this merging with emails where the xapi:email and xapi:message details were the same (before our development environment was refreshed), but cannot reproduce this now.
    When I try this with file system output (xapi:filesystem), I get the following error in the bursting log file:
    --Exception
    duplicate entry: /MergedFileName.pdf
    java.util.zip.ZipException: duplicate entry: /MergedFileName.pdf
    Is it possible to generate a merged PDF file (xapi:filesystem) of some of the records?
    Thanks,
    theFurryOne

    Yuvaraj,
    As you discovered, it is not possible to use .jdb files from one environment in a different environment.  The .jdb files use an internal format with relationships between files that form the Btree.
    I'm glad to hear you were able to use DbDump and DbLoad successfully.
    --mark

  • Why do I have files with Date Created of Feb 5, 2040?

    I have at least 26 documents with Date Created shown as Feb 5, 2040 10:28 PM.
    The Date Modified seems to be okay, ranging from 9/24/00 to 10/29/12 - except for one that's 12/31/69.
    The Get Information window shows the same dates as the normal Finder window.
    File types are mostly DOC with some JPG and PDF and one TIFF.
    All were created by me over the course of time on a succession of Macs (except for that 12/31/69 PDF, which was downloaded from Garmin) and then migrated.
    Those I've checked have a Last Opened date that's the same as the Date Modified date.
    These documents are all in my Documents folder, in two subfolders, with some of them further down a hierarchy of subfolders.
    I first noticed this a few weeks ago.
    The number of these 2/5/40 documents seems to be increasing.
    Does anyone know:
    What could cause this phenomenon?
    How can I stop it?
    It's not a big problem per se, but is it likely to cause other problems?
    Is there a way to correct the Created Date?
    Thanks for any help!

    Then I may only guess that perhaps the date was off at some point in time that coincided with when those files were created or the application that created them has a bug in it.
    Oh, at this point in time are all new files dated incorrectly? If so then there could be a corrupted part of the PRAM. You might try Resetting your Mac's PRAM and NVRAM.

  • Any FM or other ways to open the Excel file with data

    Please provide some Help, where I need to open the excel File  with some static  data (header data) from the Selection screen application Toolbar on clicking the button
    Thanks
    Ravindra

    Hi here is good example.
    Satish
    Reads an existing Idoc and dispays the contents in a spreadsheet format
    REPORT Z_DISPLAY_IDOC_AND_DATA line-size 275.
    This tool reads an existing Idoc and dispays the contents in a       *
    spreadsheet format. The spreadsheet (MS-EXCEL) will be automatically *
    created if D_EXCEL = 'X'.                                            *
    data: idoc_control like EDIDC,
          NUMBER_OF_DATA_RECORDS like sy-dbcnt,
          NUMBER_OF_STATUS_RECORDS like sy-dbcnt,
          INT_EDIDS like edids occurs 0 with header line,
          INT_EDIDD like edidd occurs 0 with header line.
    TYPE-POOLS :  LEDID.
    data: STRUCT_TYPE TYPE  LEDID_STRUCT_TYPE ,
          IDOC_STRUCT TYPE  LEDID_T_IDOC_STRUCT,
          SEGMENTS TYPE  LEDID_T_SEGMENT,
          SEGMENT_STRUCT TYPE  LEDID_T_SEGMENT_STRUCT,
          excel_tab(2000) occurs 0 with header line.
    parameter: DOCNUM like edidc-docnum obligatory, ""Idoc Number
               sap_rel like SY-SAPRL default SY-SAPRL obligatory,
               pi_ver like EDI_VERREC-VERSION default '3' obligatory,
               d_excel as checkbox default 'X'. ""Download ?
    start-of-selection.
      perform read_idoc.
      perform process_idoc.
      if d_excel = 'X'.
        perform download_to_excel.
      endif.
    end-of-selection.
    FORM read_idoc.
      CALL FUNCTION 'IDOC_READ_COMPLETELY'
           EXPORTING
                DOCUMENT_NUMBER          = docnum
           IMPORTING
                IDOC_CONTROL             = idoc_control
                NUMBER_OF_DATA_RECORDS   = NUMBER_OF_DATA_RECORDS
                NUMBER_OF_STATUS_RECORDS = NUMBER_OF_STATUS_RECORDS
           TABLES
                INT_EDIDS                = INT_EDIDS
                INT_EDIDD                = INT_EDIDD
           EXCEPTIONS
                DOCUMENT_NOT_EXIST       = 1
                DOCUMENT_NUMBER_INVALID  = 2
                OTHERS                   = 3.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "" read_idoc
    FORM process_idoc.
      perform read_idoc_structure.
      perform display_data_records.
    ENDFORM.                    "" process_idoc
    FORM display_data_records.
      data: PE_seg_HEADER like EDI_SAPI01,
            segname like EDI_IAPI12-SEGMENTTYP,
            prev_segname like EDI_IAPI12-SEGMENTTYP value ' ',
            pt_fields2 like EDI_IAPI12 occurs 0 with header line,
            PT_FVALUES2 like EDI_IAPI14 occurs 0 with header line,
            byte_first type i,
            byte_last type i,
            field_val(50),
            tmp_str(15),
            tmp_str3(15),
            seg_repeats type i value 0,
            tmp_str2(15),
            tab_cr(1) type x value '09',
            tot_ctr type i value 0,
            ctr type i value 0,
            msg(40) type c.
      data: IDOC_STRUCT_wa TYPE  LEDID_IDOC_STRUCT.
      sort int_edidd by segnum.
      describe table int_edidd lines tot_ctr.
      loop at int_edidd.
        move int_edidd-segnam to segname.
        clear msg.
        concatenate 'Reading segment ' segname
                    into msg separated by space.
        if tot_ctr <> 0.
          ctr = ( 100 * sy-tabix ) / tot_ctr.
        endif.
        CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
             EXPORTING
                  PERCENTAGE = ctr
                  TEXT       = msg.
        add 1 to seg_repeats.
        clear tmp_str2.
        if int_edidd-segnam <> prev_segname.
          seg_repeats = 1.
          clear: pe_seg_header, pt_fields2, pt_fvalues2.
          refresh: pt_fields2, pt_fvalues2.
          CALL FUNCTION 'SEGMENT_READ_COMPLETE'
               EXPORTING
                    PI_SEGTYP                 = segname
                    PI_RELEASE                = sap_rel
                    PI_VERSION                = pi_ver
               IMPORTING
                    PE_HEADER                 = pe_seg_header
               TABLES
                    PT_FIELDS                 = pt_fields2
                    PT_FVALUES                = pt_fvalues2
               EXCEPTIONS
                    SEGMENT_UNKNOWN           = 1
                    SEGMENT_STRUCTURE_UNKNOWN = 2
                    OTHERS                    = 3.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          prev_segname = int_edidd-segnam.
        endif.
        read table idoc_struct into idoc_struct_wa with key
                               segment_type = int_edidd-segnam.
        if sy-subrc = 0.
          IF IDOC_STRUCT_WA-SYNTAX_ATTRIB-MUSTFL = 'X'.
            TMP_STR = 'Mandatory'.                  ""Mandatory
          ELSE.
            TMP_STR = 'Optional'.                  ""Optional
          ENDIF.
          if IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-QUALIFIER = 'X'.
            tmp_str3 = 'Qualified'.
          else.
            tmp_str3 = 'Non-Qualified'.
          endif.
          shift IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX
                                     left deleting leading '0'.
          move seg_repeats to tmp_str2.
          condense: IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX, tmp_str2.
          concatenate tmp_str2 'of'  IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX
              into tmp_str2 separated by space.
          write :/ IDOC_STRUCT_wa-SEGMENT_TYPE,
               tmp_str,
               TMP_STR3,
               tmp_str2,
               IDOC_STRUCT_wa-SYNTAX_ATTRIB-HLEVEL,
               IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-plast,
               IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-DESCRP.
          if d_excel = 'X'.
            concatenate 'Segment Name' tab_cr
                        'Mand / Opt ' tab_cr
                        'Qual / non-Qual' tab_cr
                        'Seq of Max' tab_cr
                        'Level' tab_cr
                        'Owner' tab_cr
                        'Description'
                        into excel_tab.
            append excel_tab.
            concatenate IDOC_STRUCT_wa-SEGMENT_TYPE tab_cr
                  tmp_str tab_cr
                  TMP_STR3 tab_cr
                  tmp_str2 tab_cr
                  IDOC_STRUCT_wa-SYNTAX_ATTRIB-HLEVEL tab_cr
                  IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-plast tab_cr
                  IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-DESCRP
                  into excel_tab.
            append excel_tab.
            concatenate tab_cr
                        'Field Nma' tab_cr
                        'Type' tab_cr
                        'Length' tab_cr
                        'Byte From' tab_cr
                        'Byte To' tab_cr
                        'Description' tab_cr
                        'Value' tab_cr
                        'Qualifier Meaning'
                        into excel_tab.
            append excel_tab.
          endif.
        endif.
        sort pt_fields2 by field_pos.
        byte_first = 0.
        loop at pt_fields2.
          clear: field_val.
          byte_last = pt_fields2-EXTLEN.
          write int_edidd-sdata+byte_first(byte_last) to
                field_val left-justified.
          shift pt_fields2-EXTLEN left deleting leading '0'.
          shift pt_fields2-byte_first left deleting leading '0'.
          shift pt_fields2-byte_last left deleting leading '0'.
          write:/ '   ', pt_fields2-fieldname,
                  pt_fields2-datatype,
                  pt_fields2-EXTLEN,
                  pt_fields2-byte_first ,
                  pt_fields2-byte_last,
                  pt_fields2-descrp,
                  field_val.
          read table pt_fvalues2 with key fieldname = pt_fields2-fieldname
                        fldvalue_l = field_val.
          add byte_last to byte_first.
          if sy-subrc = 0.
            write : pt_fvalues2-descrp.
          else.
            clear pt_fvalues2-descrp.
          endif.
          if d_excel = 'X'.
            concatenate tab_cr pt_fields2-fieldname tab_cr
                    pt_fields2-datatype tab_cr
                    pt_fields2-EXTLEN tab_cr
                    pt_fields2-byte_first tab_cr
                    pt_fields2-byte_last tab_cr
                    pt_fields2-descrp tab_cr
                    field_val tab_cr
                    pt_fvalues2-descrp
                    into excel_tab.
            append excel_tab.
          endif.
        endloop.
      endloop.
    ENDFORM.                    "" display_data_records
    FORM read_idoc_structure.
      data: idoctype type LEDID_IDOCTYPE.
      if not idoc_control-cimtyp is initial.
        STRUCT_TYPE = 'E'. ""Extended
        idoctype = idoc_control-cimtyp.
      else.
        STRUCT_TYPE = 'B'. ""Basic
        idoctype = idoc_control-idoctp.
      endif.
      CALL FUNCTION 'IDOC_TYPE_COMPLETE_READ'
           EXPORTING
                RELEASE              = sap_rel
                STRUCT_TYPE          = STRUCT_TYPE
                IDOCTYPE             = idoctype
                VERSION              = pi_ver
          IMPORTING
               IDOC_TYPE            = idoctype
           TABLES
                IDOC_STRUCT          = idoc_struct
                SEGMENTS             = segments
                SEGMENT_STRUCT       = segment_struct
           EXCEPTIONS
                IDOCTYPE_UNKNOWN     = 1
                IDOCSTRUCT_UNKNOWN   = 2
                SEGMENT_DATA_MISSING = 3
                ILLEGAL_STRUCT_TYPE  = 4
                OTHERS               = 5.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "" read_idoc_structure
    FORM download_to_excel.
      data: name like RLGRAP-FILENAME.
      shift docnum left deleting leading '0'.
      concatenate docnum '-' idoc_control-idoctp '.xls'
                  into name.
      CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
       EXPORTING
         DATA_NAME                 = name
         DATA_TYPE                 = 'ASC'
         WAIT                      = ' '
       TABLES
         DATA_TAB                  = excel_tab
       EXCEPTIONS
         NO_BATCH                  = 1
         EXCEL_NOT_INSTALLED       = 2
         WRONG_VERSION             = 3
         INTERNAL_ERROR            = 4
         INVALID_TYPE              = 5
         CANCELLED                 = 6
         DOWNLOAD_ERROR            = 7
         OTHERS                    = 8
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "" download_to_excel

Maybe you are looking for

  • Creating business services in integration directory

    Hi   When business services are created in integration directory - these business services are not tied back to entries in the SLD - i.e we can create entries for business services directly in integration directory without having to import them from

  • Adobe PSE 10 and 11 refuse to open.

    Hi, guys. I've been using PSE 10 on my current computer (currently running Windows 7, 64-bit) for quite some time now--a little over a year, I'd say. Everything worked fine before; I was able to open the editor and use it without problems. Just yeste

  • New line character  is not working in BPEL 11g

    I am trying to use new line character &#13; in string concat operation in BPEL 11g, but it is not giving new line in output. Any idea why?

  • How I can use Visual Studio 2013 to create lists or libraries via remote?

    Hello guys, I use visual studio on my machine and try to create a list, but the sharepoint server is on another machine. It is possible to run a program on my computer and then create a list on the sharepoint server. If yes, how can I achieve this? B

  • Wwctx_api.NO_SESSION_EXCEPTION

    Hi, I have the following problem (I'm very new to writing portlets, so maybe I'm just overlooking something stupid..?): I have created a new schema "portal_pckg" (via 'Create new schema' in Portal) in which we are planning to store plsql-packages to