File need to be read in different formats( Tab formatted, commas separated)

Hi All,
I am reading an input text file which can be in any of the format like tab formatted, commas separated or fixed format. How can i write a code to make it work for all these file format other than writing separately for the above three cases. Kindly suggest.
Thanks,
Neslin.

As far as seperators are concerned you may read entire file to stirng table, then identify separator (i.e. if you find  tab mark, you assume it is tab separated; if you find ";" mark you assume this is a column separator). Use SEARCH or FIND statement and then (after having the separator) loop at string table and split each entry at this separator. If none of the above was find (no separator or fixed one) split according to given fixed format.

Similar Messages

  • Data from a file need to be read and mapped  into a custom table of R/3

    Hello all,
    This is related to inbound to  SAP ECC via SAP PI.
    There is a requirement concerning PI part that data from a file need to be read and mapped  into a custom table of R/3.
    To have this scenario developed , do we have any other  option than the Proxy ?
    My understanding is as follows : File --> SAP PI --> Proxy
    You suggestions are welcome.
    Regards,
    Rachana

    Hi Ravi,
    As suggested by Inaki, you can use proxy communication in recever.
    but you can also use the below
    FILE -----> PI -------> PROXY
                                  RFC
                                  IDOC
    to communicate to ECC system.
    Regards
    srinivas

  • How to break the file and send it to 2 different formats??

    Hi PI Experts,
        My scenario is i have a file with multiple records on the sender side and i have 1 receiver business system and have to  receive the data in 2 formats, one is in JDBC and other in xml format. my condition is if field is equal to 'ECC' then the data should be send to JDBC and if element is not equal to 'ECC' then data should be send to xml format.
    for example, if a file has 2 records('ECC & ECC1) then 'ECC' record has to be stored in JDBC and 'ECC1' record should be send to xml format.
    tell me what to do in the mapping side. hope u guys understood my problem.
    if possible send me screenshots of the mapping.

    HI Srini,
    Just use two different message types in ur mapping!!!
    Write the condition if (A = ECC ){Map to Structure A}
                                  else if (A = ECC1){Map to Structure B}
    Once you are generating all the required ECCs in Message Type A and then All ECC1s in Message Type B,
    It is just configuration stuff where you will have common sender Agreement, receiver determination and also interface determination but the only thing that will separate these two is your receiver agreement.
    You have to use two service interfaces for this, one for Structure A and another for Structure B.
    I have done similar stuff  2 yrs back!!!
    Please let me know if you require anything on this.
    Thanks & Regards,
    VK

  • Adobe Reader and protected pdf files, need better pdf reader

    If Adobe will not fix the app for the Playbook, will Blackberry remove the reader and add Pdf to Go, so we can read protected pdfs?  Pdf to go works fine on my blackberry phone. I can not remove the password from the pdf it is protected with a unknown password from my estatement vendor.

    Unable to open password protected PDF files on the BlackBerry PlayBook tablet
    I went through this today with one. It opened on my PC with no issue and was a simple PDF
    I hope they add more support in OS 2.1 once it is released.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Need to format comma separated values in address line in Adobe Forms

    Hi All,
    I have one text in which fields are separated by comma. I want to display the text in a text field. But whenever there is a comma the text following it needs to be printed in the same text field on new line.
    Is there any way to achieve this.
    e.g. if the address line 01 = ABC, 01/123 XYZ, 890776
    then the output should be printed as follows
    ABC
    01/123 XYZ
    890776
    Thanks...

    Hi,
    You need to put the code in the java script where you ll read the text in the texfield and then read it in diff var on the basis of the comma and then print the various var as an output.
    Hope this might help you.
    Thanks
    Pooja

  • Footage of different formats on one timeline; also different frame rates

    I need to edit footage of different formats on one timeline. The end product will be compressed for the web so I do not need to be working in HD.
    I have been using the timeline settings for DVCAM (720 x 480) Anamorphic.
    I have broll footage shot and captured at 960 x 720 59.95 FPS DVCPRO HD 720p60
    And Interview footage shoot in DV Cam -- 720 x 480 29.79 Dv/DVCPRO – NSTC
    When I put the HD footage on the timeline and render it, it appears to be in fast-forward – as if I adjusted the speed of the clip. I am wondering if it is caused by the difference in frame rates and also what I can do about it.
    Thanks!

    The main bulk of your footage is DV and DVCAM, with some B-roll at DVCPRO HD, and you need to deliver HDCAM? Then you either need to have a dub facility use a Terranex to upconvert all the DV to DVCPRO HD, or you need to invest in a Kona 3 and use that to upconvert your footage to DVCPRO HD...and also use that to output to HDCAM.
    Shane

  • Read/Insert values from comma separated string

    I need Stored procedure to insert values in table using comma separated values from string based on algorithm as below.
    There are two table Mtable(Parent table), Ctable(Child table).
    Value passed from String can be like_
    1,A001,R1,C1,R2,C2,R3,C3
    2,A002,X1,Y1,X2,Y2
    3,A003,A1,B1,A2,B2,A3,B3
    1)For line1 I need to insert in Mtable values(1,A001)
    And in ctable I need to insert 3 rows with values
         ROW1     (1,R1,C1)
         ROW2     (1,R2,C2)
         ROW3     (1,R3,C3)
    2)For line2 I need to insert in Mtable values(2,A002)
    And in ctable I need to insert 2 rows with values
         ROW1     (2,X1,Y1)
         ROW2     (2,X2,Y2)
    Please help me to overcome this.
    Thanks

    create table t as
    select '1,A001,R1,C1,R2,C2,R3,C3' s from dual union
    select '2,A002,X1,Y1,X2,Y2' from dual union
    select '3,A003,A1,B1,A2,B2,A3,B3' from dual
    Table created
    select substr(s,1,instr(s,',')-1),
    substr(s,instr(s,',',1,2*i)+1,instr(s||',',',',1,2*i+1)-instr(s,',',1,2*i)-1),
    substr(s,instr(s,',',1,2*i+1)+1,instr(s||',',',',1,2*i+2)-instr(s,',',1,2*i+1)-1
    from t, (select 1 i from dual union select 2 from dual union select 3 from dual)
    where instr(s,',',1,2*i+1)>0
    order by 1,i
    SUBSTR(S,1,INSTR(S,',')-1) SUBSTR(S,INSTR(S,',',1,2*I)+1, SUBSTR(S,INSTR(S,',',1
    1                          R1                             C1                   
    1                          R2                             C2                   
    1                          R3                             C3                   
    2                          X1                             Y1                   
    2                          X2                             Y2                   
    3                          A1                             B1                   
    3                          A2                             B2                   
    3                          A3                             B3                   
    8 rows selected

  • SSIS project - read multiple flat files with different formats

    hi all,
    i need to import multiple flat files with different formats into different tables of the sql server database and not able to figure out the best way out in ssis to do so...
    please advise the possible methods in ssis to do so and if possible the process which can be dynamic as file names or columns might change in future.

    Hi AK1987,
    To import flat files with dynamic columns, we can use Script Task inside a Foreach Loop Container to parse the first row of the flat file to get the columns names and save them into a .NET variable, then, we can create “Create Table” script based on this
    variable, and then store the script into a SSIS package variable. After that, we create a staging table based on the package variable, load the flat file data to the staging table. Eventually, we load data from the staging table to the destination table. For
    the detail steps, please walk through the following blog:
    http://www.citagus.com/citagus/blog/importing-from-flat-file-with-dynamic-columns/ 
    Regards,
    Mike Yin
    TechNet Community Support

  • Hello. I am trying to transfer MP3 format sound files (currently saved to my Dell PC) to itunes. These files are audio books.  Do I need to convert them to different files first?  Thank you.

    Hello. I am trying to transfer MP3 format sound files (currently saved to my Dell PC) to itunes. These files are audio books.  Do I need to convert them to different files first?  Thank you.

    File > Add File/Folder to iTunes

  • Read a file and write in different format

    Hi, I am new to Java, Please help me to do this.
    Just give me a hint as to what I should use to solve the problem below.
    Please suggest me what to do in Java.
    1. Read from a text file that has name in the following format:
    FirstName LastName
    Carol Bender
    Peter Milton
    Harish M. Mondol
    karen J. Funny
    2. Convert that file in the following format:
    Lastname, FirstName
    Bender, Carol
    Milton, Peter
    Mondol, Harish M.
    Program should read the <input-file-name> and
    <output-file-name> from the command promt as a parameter.

    What part are you having trouble with?
    Reading/writing files? http://java.sun.com/docs/books/tutorial/essential/io/Converting after reading? I'd suggest regex. http://java.sun.com/docs/books/tutorial/extra/regex/
    http://www.javaregex.com/I'd suggest using BufferedReader to read a line at a time. Once you've read that line use either String.replaceAll or java.util.regex.Matcher.replaceAll to replace A B with B, A

  • Compatibility icon not showing up when I "share" my file (want to save in different format)

    I'm trying to save my file as "avi", but I can't find any way for me to do that. I searched up how to export it into a different format and saw that there is a compatibility icon. However, when I tried to do that, it wasn't there. I also downloaded video converting apps and I just wanted to see if there is an easier way to convert it, especially if I end up having a big file.
    I have iMovie Version 10.0.4.
    Any ideas on how I can export it as a different format?
    Thank you!

    Hello Veronica.
    Although possibly not related to your problem, I will remind you that the version of Firefox you are using at the moment has been discontinued and is no longer supported. Furthermore, it has known bugs and security problems. I urge you to update to the latest version of Firefox, for maximum stability, performance, security and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].
    As for your question, hopefully this support article is what you need:
    If you access your history, you can see that it is sorted by date (you can sort it by other criteria, if you want). Maybe that is the source of the confusion?

  • Print different format files using java API

    Hi All,
    I need to print documents ( MS-DOC, PDF, Plain Text ) using Java API. I do not need window for configuring number of pages to be print etc etc.. Whatever the file specified should be printed.
    I checked with printerJob.print(); from java API and able to print simple text. I need to approach same for files of different formats.
    Any other API's ? How do i approach?
    Any help will be appreciated.
    Thanks,
    Praveen

    Which of the LiveCycle products are you looking at? (there is no Java API to Acrobat)

  • Convert MPEG 4 file into different format

    I have a TrekStore Movie Station which only supports formats like DVD (IFO,VOB), VCD (MPGEG1), SVDC/KVCD (MPEG2), DivX 3, DivX5, XviD. In Quick Time Pro Help it says I can convert an save movies into different formats, I just can't find how I can do it.

    I have a TrekStore Movie Station which only supports formats like DVD (IFO,VOB), VCD (MPGEG1), SVDC/KVCD (MPEG2), DivX 3, DivX5, XviD. In Quick Time Pro Help it says I can convert an save movies into different formats, I just can't find how I can do it.
    QT Pro does not "do" multiplexed compression formats. For that you would need an external, third-party, MPEG-based application. iDVD, Toast, Visual Hub, iVCD, MPEG2 Works, etc. would work here to create some of these formats. QT Pro, MPEG Streamclip, and GarageBand can all create DivX and/or XviD files if you have the appropriate QT components installed. (Not sure if you can still find DivX 3 but assume free download of DivX 5.1.1, 5.2.1, and/or Xvid are still readily available on the internet.)

  • Save one file in different formats at once.

    Hello,
    I am a illustrator who needs to save files in different formats. Like 1 with a watermark, one small one for the website, another one for shop, a pdf file for the prints, etc. Is there a way to do all those things at once? Cause it really takes a lot of time.
    I make my illustrations in photoshop, but if it's nessecary to only do those thing in another adobe programm, than that's no problem.
    Please help, thank a lot!
    Renske

    Or try Image Processor Pro:
    http://blogs.adobe.com/jnack/2011/05/new-image-processor-pro-script-for-cs5.html

  • How do I make a DVD copy of a file? And does the file have to be converted from mpeg or mp4 or.MOV to a different format before it can be copied and is readable by DVD? Thanks.

    How do I make a DVD copy of a file? And does the file have to be converted from mpeg or mp4 or.MOV to a different format before it can be copied and is readable by DVD? Thanks.

    Great hearing for you all! I thought I was all alone this past weekend. I did learn a lot this weekend. I really like the InDesign product.(half-the-battle) But to be helped by the prestigious “Sandee Cohen” was an honor indeed.”  I ordered the InDesign CC today.  Peter, I appreciate all the feedback on Lynda too. They are loaded with lots of good videos. Derek too honed in on one of the most important aspects!  Since I have been working with Word for most of the first portion of the book this will be a big help. I looked at the comments big help ! Thanks a ton ALL!  Have a wonder day or evening whenever you read this reply.

Maybe you are looking for

  • Sql Query in Unix script

    Hi, on 10G R2, on AIX 6.1, in a shell script I want to do : sqlplus user/password@mydb select * from mytable.How to do that ? Thank you.

  • User status with reference to characteristic value of the Functional locati

    Hi, For a Functional location for which a characeteristic values is maintained as"1",i  want "user status of the mainteance order,when created  to be updated as "XXX".Can any one of you tell me the user exit and code changes for this.Please reply at

  • Patching dynamic library in a running process

    Hello. I am planning a tool that uses a special feature of my graphics card. Therefore I plan to use sysi86() to alter the IOPL and access the graphics card using asm("outb"). I already wrote a similar tool so this part is not a problem for me. The a

  • ITMS 9000 question

    I am upolading my first book and received the message: ERROR ITMS 9000: Index_split_001.xhtm(14): element "br" not allowed here. It says the error occurs twice. I created the ePub using Calibre and am attempting to upload is using iTunes Producer. Wh

  • IOS 4.2.1 iPhone 3G - battery drain / indicator problem

    Since past few days this iPhone has started behaving strangely. Battery indicator will show as low (red bar) even when it's been on charge. Power off and on and it will show full but then over course of about 15 minutes the indicator will drop down t