Validating the first two columns of a excel file when importing?

Hi everyone,
I have an excel file in the presentation server which has to be uploaded into prog.First the user adds a additonal column in the excel file.
For example the excel file is intially in this way,
col1 col2 col3 col4 col5
Now the user adds one more column 'colx' in the excel sheet and he will upload it into the prog.Before uploading programatically we have to validate that the first two columns of the excel file should be col1 colx(the newly added one).How can I do it?
Any suggestions please?
Thank you.

Hi gopi,
Thanks for the reply.
I have one more problem.Now in the excel file I may have only 5 columns in the future it may have more than that.So the internal table which will hold the uploaded values from excel file should be dynamic.I can't declare the internal table with 5 or 6 columns like that.If the user adds some columns in the excel file and upload it,the internal table should hold these columns also.
i hope u understood my requirement.Can u give me any ideas.If u have any sample code for this kind of requirement.
Thank you.

Similar Messages

  • When I convert my file to excel it cuts off the first two columns, is there a way to fix that??

    When I convert my file to excel it cuts off the first two columns, is there a way to fix that??

    Hey Diann,
    Please let me know whether you are using Adobe Reader or signed up at "https://cloud.acrobat.com/"
    If you are using Adobe Reader, then try converting the file online and vice-versa.
    Let me know.
    Regards,
    Anubha

  • I'm trying to open a 900kb Word doc (240pages) in Pages but get this error message:  Import Warning - A table was too big. Only the first 40 columns and 1,000 rows were imported.

    I'm trying to open a 900kb Word doc (240pages) in Pages but get this error message:  Import Warning - A table was too big. Only the first 40 columns and 1,000 rows were imported.

    Julian,
    Pages simply won't support a table with that many rows. If you need that many, you must use another application.
    Perhaps the originator could use a tabbed list rather than a table. That's the only way you will be able to contain a list that long in Pages. You can do the conversion yourself if you open the Word document in LibreOffice, Copy the Table, Paste the Table into Numbers, Export the Numbers doc to CSV, and import to Pages. In Pages Find and Replace the Commas with Tabs.
    There are probably other ways, but that's what comes to mind here.
    Jerry

  • Count first two columns

    Hello,
    I have a count requirement that i havent been able to solve by searching sdn.  Maybe someone can help.
    I have a query built on a multiprovider that points to two basic cubes.  The basic cubes do not contain a count key figure.  The first two columns of my query are characteristics.  My requirement is to count the occurences of the combination of the first two column (characteristics).  I am looking for a way to do this in the query so i do not have to reload the cubes as they have large volumes of data.  All the suggestions i have been able to find on sdn seem to be only for counting a single characteristic.  Is there a way to count the combination of two?
    Regards,
    TMS

    Hi Create a count using the formula or calculated ket figure for the count unique id like client id for your infocube.
    so you will have a count for each row now. place this count object in your column.
    now select the two char or the group whatever you want a count in your row.
    select query properties and select the display tab and make sure the option - hide repeated key values is selected (normally by default it is selected). Then select each of the char in rows and in free char and set the option under display tab result rows - always suppress.
    Execute the query now. you will get the list of char and their count. sort the count by descending to get the most duplicate entries by their highest number on top in the count coulmn.
    you can also ignore the rows which donot have a duplicate i.e count more than 1 by creating a new condintion on the count key figure > 1 and restricting the condition  by only the group of char you have given in the column. so that you can also do a drill down by free char in your query and it will only show the duplicates group.
    Hope it helps.
    regards,
    Siva

  • Validation on the first two letter

    Hi,
    Can anyone help me how to write a PLSQL code.
    The code should check that the first two letter is a letter and then follow by a number e.g AB123456, BC123456.
    When entering a number for the first two and error should be appear.
    Regards,
    Ekas

    Is there any PLSQL code that can check that specific validation?A check constraint will do, no PL/SQL code is needed:
    SQL> create table t (col varchar2(8));
    Table created.
    SQL> alter table t add constraint t_chk  check (    regexp_replace(substr(col, 1, 2), '[[:alpha:]]') is null
      2                                             and regexp_replace((substr(col, 3)), '[[:digit:]]') is null
      3                                            );
    Table altered.
    SQL>                                          
    SQL> insert into t values ('12345678');
    insert into t values ('12345678')
    ERROR at line 1:
    ORA-02290: check constraint (HOEK.T_CHK) violated
    SQL> insert into t values ('ABCDEFGH');
    insert into t values ('ABCDEFGH')
    ERROR at line 1:
    ORA-02290: check constraint (HOEK.T_CHK) violated
    SQL> insert into t values ('AB123456');
    1 row created.Edited by: hoek on Jun 11, 2010 3:23 PM

  • Populating a third column form the contents of lov result the first two

    Hi,
    i have a form with three fields.
    The first two fields are LOV. The third is a text field.
    I would like to compile a third field concatenating the results of these two. I would also check that the third field does not exceed the 30 digit value.
    e.g.
    first field --> country
    lov
    FRANCE d, FR r
    ITALY d, IT r
    second field --> town
    lov
    PARIS d, PRS r
    MILAN d, MI r
    third filed
    PARIS FRANCE ( max 30 char)
    MILAN ITALY
    Any help?
    Thanks in advance
    lukx
    Apex 4.1
    rdbms 11.2

    lukx,
    Yes, you would extend your PL/SQL to use the LOV return values as your look-up to return your display values.
    Looking back your original question; why doesn't your database yield Paris France just by selecting Paris with just one LOV? Maybe you need a table that relates a city to a country.
    Jeff

  • Export option in ALV report downloades first two columns blank

    Hi ,
    Before posting this query I searched the solution in SDN but I did't find the solution.
    My problem is  After displaying report in ALV format ,if I press Export --> Local file --->spreadsheet ;  file will downloaded to excel sheet but first two columns(only heading no data ) will be blank  and next two columns with proper data.
    I checked field catalog defination it seems to be ok,  any other mistake ?
    Please suggest.
    Narayan

    Hi
    It's the option you have in the path System->List->Save->Local file
    I means it's the standard option to export an abap list into a local file, so you should try this path too and check if the resul it's the same
    I think you should choose  Export --->spreadsheet: here before saving the file an excel document will be open
    Max

  • How can I pull info into a report using just the first two characters of that field?

    I am trying to pull a total cost based upon locations in a particular area(s). Can I get the formula to just do this based on the first two characters of that field?
    Here is what I have so far:
    if {PACKED.LOCATIONS.NEXT OPERATION} = ["xx"] THEN {Job.Total_Price}
    Packed locations is a table I'm pulling from and the column I want just the first two digits is the the Next operation. Once this meets the "xx" (whatever location) then give me the total price from the Job table.
    This works for one or two orders, but then blows up when I do 10 or so.

    Hi Steve, assuming that Next Operation is a string field...
    Create a new formula and place it in the field where you see the {Job.Total_Price} field (Detail or Group depending on your report) with the formula:
    whileprintingrecords;
    global numbervar TotalValue;
    if len({? Replace me}) <= len({PACKED.LOCATIONS.NEXT OPERATION}) then(
    if left(ucase({PACKED.LOCATIONS.NEXT OPERATION}),len({? Replace me})) = ucase({? Replace me}) then
    TotalValue := TotalValue + {Job.Total_Price}
    TotalValue;
    You can go ahead and suppress that field.
    Create a new formula to place where you want to view the summary using the formula:
    whileprintingrecords;
    global numbervar TotalValue;
    This method allows for a higher degree of flexibility and you can search for the first x characters of that field instead of only the first 2 characters

  • On SSRS Export or Print, Select the first 9 columns out of 15 columns

    Hello Every1,
    My Greetings for the day!!!
    I am Hiren Parikh from India.
    I am developing a SSRS report (Tablix) which has 15 columns. While developing the report, I have come a crossed a strange requirement.
    When the reports gets loaded in SSRS Preview or in Sharepoint, it should display all the 15 columns.
    However, if the user exports the same report or print the report in that case only the first 9 (columns 1 to 9)should come and the remaining 6 (columns 10 to 15) should not come in the print or export.
    I request you all to suggest me.
    Thanks in advance.
    Regards,
    Hiren Parikh.
    Hiren Parikh

    Hi Hiren Parikh,
    Per my understanding that you want to hide the remaining 6 columns when print or export the report but display all the column when view in Sharepoint, right?
    I have tested on my local environment and if your SQL Server version is 2008 R2 or higher, you can take reference as the method below:
    This method is use the expression to show/hide the 6 columns in the report, when you print/ export the report it will hide, only when you preview in the designer or view the report in the server you can see all the columns
    Details information below for your reference:
    Check the entire column and right click the column to select the "Column Visibility"
    Check the "Visibility" on the left pane and check the "Show or hide base on an Expression"
    Expression:
    =iif(Globals!RenderFormat.IsInteractive,False,True)
    Repeat the step1 and step2 to hide the other columns.
    If your version is SSRS 2008 and older, you can create a Parameter name 'Display or Print' and can give 2 values one Display and another Print.
    Create two tablix: one have 15 columns (Tablix1)and another 9 columns (Tablix2)and when choose "Display" show the tablix1 and hide the tablix2 and when select the "Print" hide the tablix1 and show the tablix2.
    If you have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to keep first two columns constant

    Hi
    IF i move the scroll bar till end i should get first two Columns constant....
    I mean i want to set Freez to First two columns in my report
    how to du this?
    Regards
    Smith

    HI
    Can you try below for your firtst column while filling the field catalog.
    wa_fieldcat_alv-fix_column = 'X'.
    it works.
    Thanks!

  • We just moved from the United States to Costa Rica.  The first two days my mac worked great.  Then all of a sudden I was trying to use a game application and the screen went black and there is a white cursor which I can move around, but I can't escape it

    We just moved from the United States to Costa Rica.  The first two days my mac worked great.  Then all of a sudden I was trying to use a game application and the screen went black and there is a white cursor which I can move around, but I can't escape it. When I restart it seems okay and I see my main screen, but only for a second and then it goes black again. 
    This computer was brand new in June.  Is it the humidity???   What can I do.  Please help!!!!

    No guarantess but try smc and pram resets,

  • I am trying to install windows 7 to my Macbook pro with bootcamp but every time I open bootcamp I am only able to check the first two boxes but not the third one saying "install or remove Windows 7", any solutions ?

    Hi, I am trying to install Windows on my MacBook Pro with bootcamp. Every time I open bootcamp I am only able to check the first two boxes but not the third one saying "install or remove Windows 7". I did this before using the same computer and the same hard drive so I am not sure why this is happening now but did´t happen then. Any solutions ?

    Was your Bootcamp info.plist manipulated to change any options?

  • Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,change remotes, no change.Help please.

    Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,changed remotes, no change. Latest software update. This is really annoying.  iPhone remote app works just fine.  Any suggestions?

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • The sheet I am working on has lost the ability for me to scroll to the first few columns. I can't see the columns but I can cut and paste them so I know they are still there. Has this happened to others

    The sheet I am working on has lost the ability for me to scroll to the first few columns. I can't see the columns A & B but if I cut and paste the table to a new sheet, the columns I am missing will travel to the new sheet.  I have charts and other stuff related the the original table so I need to figure out why I can only see from column C  forward.  I tried to "UNHIDE" the columns but the function doesn't seem to recognise that there are columns missing. Has this happened to others and how did you fix it?

    I've seen it happen before, or at least it sounds something like what I've seen before. The table somehow gets into the margins of the page and the app doesn't know how to deal with it. Go into Print View and try moving the table away from the left side ofthe page. You might have to change content size or resize the table to get it to correct (then put you can put them back the way you like).

  • Print in PDF only Prints the first two pages

    I am have been ahving problems with my creat PDF account, only printing the first two pages, when i print something to PDF from a webpage.  I.E. Pinterest.  It will only print the first two pages and the rest will be blank or incomplete.  I am at the end of my rope and dont know how to fix it.  I recently got Acrobat 9 standard thinking this may help, but the problem still exists, which irritates me more.  Please help!

    Try here: http://forums.adobe.com/community/createpdf
    There people who use CreatePDF on a daily basis there, who know much more about it .

Maybe you are looking for

  • Is there a way to create either a flash video or wmv from Keynote?

    I have a file that I am sending out to a group who are Windows users, and have included effects and audio. There is a good chance that none of them have quicktime and I do not want them to need to download it. Can I somehow create a flash video or ot

  • How to go back to the current jquery tabs

    Hi, I have used Patric Wolf's method in (Re: New themes in APEX 4 not working with JQuery tabs to create the jquery tabs and it works great! Thank you Patric! Inside each tabs, I have a "create button" to branch to another form page to create some re

  • Cannot load EWA report

    Dear All, i have configure for EWA report but the report still not give reported for each satellite system in Solman. one week ago we receive msg from SAP that give us Red Alert for our Production systems, this mean that solution manager for EWA is w

  • VDS didn't start: Could not load JDBC driver

    Hello, I want to start the VDS Tutorial, but I get an error: Exception: Data source 'Derby database' failed. Check your CLASSPATH! (in Tools -> Options) Could not load JDBC driver 'org.apache.derby.jdbc.EmbeddedDriver' Shutting down... Data source 'D

  • What should I try?

    I was using my iPhone just playing some music then I turn the music off and lock my screen and set my phone down. A few mins later I pick my phone up and press the lock button to unlock my screen and nothing happened. My phone will not turn on. What