Spreadsheet into Hyperlink Destinations

I'm trying to find a way to generate hyperlink destinations automatically from an Excel spreadsheet.
We gave a spreadsheet to the client with the names of images used in the document. They are placing these images on their websites.
They will then send back the spreadsheet with the URL of where these links appear on their site. We will then attach hyperlinks to the images in the document that, when exported to PDF, will bring up the relevant page on their site.
On top of that, each hyperlink will have at least 10 different destinations, as the images appear on multiple sites.
We have many images to create hyperlinks and destinations for, so I'm trying to automate as much as possible. To that end, is there a way to somehow bring in that spreadsheet in such a way as to create named URL destinations? It seems like a relatively simple task, but the hyperlinks palette is clunky, at least compared to other operations in InDesign.
Thanks

> I'm trying to create links from a webpage to specific spots in a pdf.
This makes it sound like you need links from a webpage to a PDF.
> I can get it to work perfectly if I create the hyperlink destinations
> in the pdf, using the Acrobat software.
But this makes it sound like you need links from a PDF to a webpage.
> When I try it, though, I can't get the
> webpage link to go to the destination, only to the top of the pdf.
And this makes it sound like you're linking from webpage to PDF.
Which one are you doing?
1) If you want a link from a webpage to a PDF, the link must be in the
webpage.
2) If you want a link from a PDF to a webpage, the link must be in the PDF.
I can help you with #2. I could probably help you with #1 too, but I
don't think I would use Indesign.
Kenneth Benson
Pegasus Type, Inc.
www.pegtype.com

Similar Messages

  • Cross-references to hyperlink destinations (text anchors) results in file slowdown

    I'm using text anchors for the first time in a 12-file book (~280 pages) for the table/figure list in the front matter. There are maybe 100 or so total cross-references in the front matter in tables (where one column is the text of the figure title and one column the page number).
    About halfway through the process of adding the cross references, things got reallllly slow, and only in that one document. So slow that reformatting became almost impossible, because of the delays.
    So I went through many of the usual troubleshooting steps, just in case. Trashed preferences, trashed the style, etc. I exported the file to IDML and created a new file from that. It helped, but I can tell that it's still not quite so snappy.
    My question, then, is if this is to be expected with what may be a large number of hyperlinks/text anchors? All the other files in the book act fine, so it's not an InDesign-wide slowdown. Are there any best practices when it comes to using hyperlink destinations?
    As an amusing aside, before I tried the troubleshooting steps I had a clever idea--to insert the cross references into a new, blank document and then paste them into the frontmatter file. Consist and ugly crashes to desktop resulted.

    George Krompacky wrote:
    Peter,
    Thanks for your reply. Yes, the TOC could do this and would be an easier approach. But I hadn't anticipated using it and so didn't have my ducks in a row as far as having the styles consistent for chapter titles, figures and tables. Next time I will do so. I can guess that as a TOC doesn't generate live links, it shouldn't have a performance impact like dozens of cross-references do.
    Yes, the TOC is inert except when it's being generated.
    Regardless of how "creatively chaotic" or "chaotically creative" your chapter, table, and figure title paragraph styles are, as long as all chapter titles are tagged with style names that are not used for figures or tables, and similarly figures and tables are not tagged with styles used for the "other," you can still generate a usable TOC. The idea is to capture all the paragraph styles for each category, and display each category's captured paragraphs as uniform TOC entries - i. e., all chapter title entries are the same, all table title entries are the same, and all table title entries are the same. If you don't want the categories intermixed, create a separate TOC for each category, place each TOC separately, unthreaded to other document frames.
    If you'd like to try a few things to see if it's possible to quickly remake the TOC and regain a responsive working document, before doing anything else, save the whole project to a secure place, and work on the copy. Then:
    * Move the Text tool insertion point to each cross-reference's destination by selecting the reference in the cross-reference panel and clicking  the right-pointing arrow on the panel status bar; then verify that the paragraph is tagged with an appropriate style that doesn't belong to the other category of TOC items.
    * After all the TOC-to-be items are identified and verified that they're tagged correctly, delete the text frame(s) that contain the TOC that's created with cross-references. All the references will break, of course. You've got the secure original project somewhere, right?
    * Set up the TOC roughly; just pick the paragraph styles for each category - chapter, figure, table, and generate a TOC for the book. Drag to place the TOC on a clean new page, and DO NOT THREAD THE TOC TO NON-TOC TEXT FRAMES.
    * If the extracted paragraphs are in their correct categories, you can create new TOC styles for the TOC entries, or, if they exist, assign them in the TOC setup dialog box, and regenerate.
    If this result gives you a sense of what needs fixing, and you have the time, refine the TOC styles so you can get the exact appearance you want. By avoiding changing the source paragraphs in the main document, you'll avoid any risk of reflowing anything. Finally, after the project's completely done and handed off, you can spend time refining the rogue source paragraph styles, IN A COPY, for use going forward.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Hyperlink Destinations (IDCS3) - created in one document, want to use in another

    I've created a number of hyperlink destinations that I want to use in several already existing document. Is there a way to copy or import them into my existing document or do I have to create them all over again in each one?

    Hi,
    According to your description, the issue occur when we set the hyperlink destination with cell range. For example: If we link to destination cell via Sheet2!A1, whatever we add/delete the rows/lines, the hyperlink won't changed, always shows the value of
     Sheet2!A1.
    Thus, if we want to update the destination values after we add/delete the rows/lines, we might define the name of the cell. Please see the below image:
    Here is the steps:
    Select the cell/range of destination worksheet>Click formula> Define name>Add the name which you want.
    Select the origin cell>Insert tab>Hyperlink>Choose the define name
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in
    Office programs.

  • Script to split threaded story but keep hyperlink destinations?

    I have a series of long CS6 documents in a book with stories running through many frames. These stories have many text anchors acting as hyperlink destinations within (and across) the files. 
    Each story needs to be split into separate frames.*
    The script SplitStory.jsx does exactly this, but in the process it breaks my hyperlinks to destinations anchored in the text of the story being split.
    The problem seems to be that a hyperlink destination does not "carry" the correct information when duplicated, and the script duplicates each frame before removing it.
    A manual solution
    I have found a manual way of producing the desired result:
    Unlink the last frame in the thread,
    Cut (not copy) the overmatter from the penultimate frame,
    Paste into what was the last frame (which is now a standalone frame).
    Repeat recursively until the entire story is reduced to standalone frames.
    This seems crying out for a scripting solution: it may even be relatively simple? But I cannot find anything suitable and my javascript is not good enough to write one from scratch.
    Could anyone offer any suggestions?
    * As an aside, I need to split the stories into separate frames so that all the text on a given page gets extracted to a text file together. Otherwise all the text in the main text thread gets extracted and then our software "mops up" display quotes, etc. This is not acceptable in my scenario.

    It seems that Rorohiko's plug-in TextStitch will automatically de-thread linked frames whilst preserving the destinations.
    I Rorohiko

  • Shared Hyperlink Destinations Unpleasantness

    Where I work, we've upgraded from CS1 to CS6.
    We've created many newsletters in InDesign (40+ pages each; 1 per month) that have hyperlinks.
    Working with the Hyperlinks and Hyperlink Destinations, while rather cumbersome before, was manageable.
    However, in CS6 an aspect of it makes them unworkable.
    First off, we're working in a new newsletter that has essentially been opened and converted from a previous month's CS1 version to the new CS6. It carries forward all the previous hyperlinks, naturally. However, InDesign treats all of these as "shared" hyperlinks.
    So, when I have to troubleshoot a link, I can straight up delete the link and create a new, unshared URL-type link.
    No real problem, except having to write down where the link goes and retype it into the new link creation dialog, since I can't select the original and copy & paste it.
    However, if I accidentally forget to avoid opening Hyperlink Destinations like the plague, then all the Destinations created previously in CS1 will be accessed in order to open that pallet. Since all "shared" Destinations are stored in whatever original document they were made in apparently, that means InDesign will open and convert effectively every single CS1 INDD that still shares a link in common or that still has a Destination listed in the palette ... or something.
    This process takes about 1 hour (or more) and effectively hangs InDesign for me. I can not cancel the process (that I've found yet); I can not close the palette before it's refreshed and processed every single Destination; I have to manually hit Esc or click cancel on every single Destination as it tries opening it if I wish to try short-circuiting the process (which means I'll still have to sit there for at least half an hour, since there's so much time between each dialog that pops up).
    I'm not the one who generally works in the file doing all the design work; I'm the one who does the processing for creating the PDF for the web. I'm willing to understand and work with InDesign to a fuller extent of its capabilities, but the actual designers are generally as ignorant as they can get away with about InDesign's tools and innards.
    They're the ones that work with and create the links (until there's a problem, then it's me); and getting them to clean up their methods or to at least only create "unshared" hyperlinks going forward is pretty much impossible.
    If somebody doesn't know a way to get around this problem, then I have a request that an update to InDesign is implemented to accomplish any of several things:
    • All "old" Hyperlink Destinations are not created as shared ones, thereby avoiding InDesign's desire to open and convert all the old INDD files.
    • All shared Destinations are stored elsewhere, not in their original INDD (or whatever is going on with them right now).
    • Implement a method to short-circuit this update process (like hitting Esc exits the opening of the Hyperlink Destinations palette, or prevents the action if I masochistically try selecting and editing a Hyperlink Destination once it opens, etc).
    Thank you, especially if there's any help getting around the problem short of me deleting all Hyperlink Destinations (once I get the palette open and sitting still again) to force the designers to start over.

    > I'm trying to create links from a webpage to specific spots in a pdf.
    This makes it sound like you need links from a webpage to a PDF.
    > I can get it to work perfectly if I create the hyperlink destinations
    > in the pdf, using the Acrobat software.
    But this makes it sound like you need links from a PDF to a webpage.
    > When I try it, though, I can't get the
    > webpage link to go to the destination, only to the top of the pdf.
    And this makes it sound like you're linking from webpage to PDF.
    Which one are you doing?
    1) If you want a link from a webpage to a PDF, the link must be in the
    webpage.
    2) If you want a link from a PDF to a webpage, the link must be in the PDF.
    I can help you with #2. I could probably help you with #1 too, but I
    don't think I would use Indesign.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • A script to make all page references into hyperlinks

    Hi,
    I have a customer request to make all pages references into hyperlinks.
    For example: when you see in the text of the PDF "page 4", you can click on it and move to page 4. This of course can be done manually with InDesign. The problem starts when you have whole load of them. In addition to that, I have this project as a book, with several different documents...
    I used the script "Automatic hyperlink of each word in a file" from http://www.nobrainer.dk/automatic-hyperlink-of-each-word-in-a-file/ as a base, and modified it for my porpuse. Currently it still produces errors. Any idea what's the bug?
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var myHyperlinkStyle = myDocument.characterStyles.item("hyperlink"); // replace hyperlink with name of your char style for links
    //alert(myHyperlinkStyle);
    main();
    } else {
    alert("Please open a document");
    function main() {
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //the value to find
    myFindVal = "page (\\d+)";
    doSearchAndReplace(myFindVal, app.activeDocument);
    // reset search
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    function doSearchAndReplace(stringfind, searchin) {
    app.findGrepPreferences.findWhat = stringfind;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = true;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    var myFoundItems = searchin.findGrep();
    for (i = 0; i < myFoundItems.length; i++) {
    var item = myFoundItems[i].contents;
    //the destination page
    var destPage = item.slice(5);
    var myHyperlinkDestination = myMakeHyperlinkDestination(destPage);
    myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
    myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
    try {
    var myHyperlinkTextSource = myDocument.hyperlinkTextSources.add(myFoundItem);
    var myHyperlink = myDocument.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
    myHyperlink.visible = false;
    catch(myError){
    function myMakeHyperlinkDestination(myDestPage){
    //If the hyperlink destination already exists, use it;
    //if it doesn't, then create it.
    try{
    var myHyperlinkDestination = myDocument.hyperlinkDestinations.item(myDestPage);
    myHyperlinkDestination.name;
    catch(myError){
    myHyperlinkDestination = myDocument.hyperlinkPageDestinations.add(myDestPage);
    myHyperlinkDestination.destinationPage = myDestPage;
    myHyperlinkDestination.name = myDestPage;
    //Set other hyperlink properties here, if necessary.
    return myHyperlinkDestination;

    well, after some more digging into it, I found the bugs and corrected, here is the corrected version (now I only need to figure out how to do it on an entire book...):
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var myHyperlinkStyle = myDocument.characterStyles.item("hyperlink"); // replace hyperlink with name of your char style for links
    //alert(myHyperlinkStyle);
    main();
    } else {
    alert("Please open a document");
    function main() {
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //the value to find
    myFindVal = "page (\\d+)";
    doSearchAndReplace(myFindVal, app.activeDocument);
    // reset search
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    function doSearchAndReplace(stringfind, searchin) {
    app.findGrepPreferences.findWhat = stringfind;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = true;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    var myFoundItems = searchin.findGrep();
    for (i = 0; i < myFoundItems.length; i++) {
    var item = myFoundItems[i].contents;
    //the destination page
    var destPageNumber = item.slice(5);
    var destPage = searchin.pages.itemByName(destPageNumber);
    var myHyperlinkDestination = myMakeHyperlinkDestination(destPage);
    myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
    myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
    try {
    var myHyperlinkTextSource = myDocument.hyperlinkTextSources.add(myFoundItem);
    var myHyperlink = myDocument.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
    myHyperlink.visible = false;
    catch(myError){
    function myMakeHyperlinkDestination(myDestPage){
    //If the hyperlink destination already exists, use it;
    //if it doesn't, then create it.
    try{
    var myHyperlinkDestination = myDocument.hyperlinkDestinations.item(myDestPage);
    myHyperlinkDestination.name;
    catch(myError){
    myHyperlinkDestination = myDocument.hyperlinkPageDestinations.add(myDestPage);
    myHyperlinkDestination.destinationPage = myDestPage;
    //myHyperlinkDestination.name = myDestPage.name;
    //Set other hyperlink properties here, if necessary.
    return myHyperlinkDestination;

  • How to change hyperlink destinations

    Hi, I would like to have a different setting for the
    hyperlink destination for two layouts. For one layout I want the
    links to open in a new window; for the other layout I want the
    links to open in the same window. Is there a way I can change the
    link destinations for the entire project; or is the only option
    change each link individually? Thanks, Becky

    From what I can work out you have two options - well three if
    you include amending the links individually. My favoured method
    would be to have two links and use build tags for each one and
    assign these to your layouts. The other method would be use a find
    and replace tool (e.g.
    FAR. You can go into the
    truecode to see the syntax required to be found and replaced. But
    before you do anything with a find and replace tool, take a backup
    of your project.

  • Hyperlink Destination

    Ive imported a small icon in to my report and set up a hyperlink to a web page.
    The webpage opens ok but in the same browser - is there any way of getting the destination webpage to open in a new window ?
    I thought perhaps I could use the HyperLink Destination property but I havnt been able to get it to work so far.
    Any help would be appreciated.
    null

    In the propery window insert into the Additional Hyperlink Attributes the following HTML: target=_new
    Hope this helps

  • How can I add multiple email addresses  from spreadsheet into email?

    how can I add multiple email addresses  from spreadsheet into email?

    I have tried that, but the system reads the emails as one long email and I can't find any way of separating them - it ignores spaces, colons and I have also tried putting them through a word doc... still does not work. It works perfectly easily on a PC system!! ( I have just moved to a mac!)
    any ideas would be good
    thanks

  • SSIS 2012 is intermittently failing with below "Invalid date format" while importing data from a source table into a Destination table with same exact schema.

    We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
    SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
    Error: 2014-01-28 15:52:05.19
       Code: 0x80004005
       Source: xxxxxxxx SSIS.Pipeline
       Description: Unspecified error
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC0202009
       Source: Process xxxxxx Load TableName [48]
       Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC020901C
       Source: Process xxxxxxxx Load TableName [48]
       Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
    the specified type.".
    End Error
    But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
    This looks like bug to me, Any suggestion?

    Hi Mohideen,
    Based on my research, the issue might be related to one of the following factors:
    Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
    A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
    Hope this helps.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Can I export values from an excel spreadsheet into a dropdown field in Acrobat?

    I'm creating a form in Acrobat with a dropdown field as an option, I would like to know if I could export the values from an Excel spreadsheet into this field (there are 600 records)?

    Sorry this is not something that we currently support. You have to enter your items manually. Once you created you field though you can copy in paste to other forms so you only have to create it once.

  • How to automatically create hyperlink destinations based on numbered list?

    I am very new to InDesign and am creating a template for an academic journal. Each article contains a list of references at the end and the references are cited in the main text (like what you see in Wikipedia if you are not familiar with scientfic journal articles). In exported HTML, the citation in the main text should be hyperlinked to the coressponding reference in the reference list. I have two questions:
    1) It is possible to ask paragraphy style to assign each numbered item a hyperlink destination? If this is possible, I can then manually inserted hyperlinks in the main text.
    2) one step further, is there any way (e.g. script) which can then insert hyperlink to those destinations based on pattern match? For example, in main text, the citation to reference #1 appear in the text as [1] which should be hyperlinked to reference #1.
    One more question, is there anyone who knows how academic journals handle the flow from InDesign to html? Certainly, the exported html cannot go directly online without further editing.
    Thank you.

    Hi Eric,
    I posted the script here. But it should be adjusted to your particular document. (Anyone with basic scripting knowledge can do this). I am sure it won’t work as it is. I assume that “comments” and “references” are in two different stories.
    Can I have the scripts from you (for a fee or free)?
    I don't sell my scripts: they're free.
    Can the scripts handle the pattens like these [3], [1-5], [3,4], [6, 8, 11-13]?
    This script can't, but another handles both single page numbers and page ranges like so:
    I can post it as well.
    Now I’d like to make one thing clear:
    I made a set of scripts for creating hyperlinks in InDesign documents for further exporting them to ePub/HTML. I can’t make a script that would work for everyone because all books are very different. I simply adjusted scripts for every book I had to work with (mainly changing GREP expressions and names of styles) and I have numerous variations of scripts. I can post them if someone is interested but you should be aware that they have to be reworked.

  • I cannot copy a selection from an Excel 2003 spreadsheet into a Mozilla Gmail document. When I do so, I lose the format.

    I cannot copy a selection from an Excel 2003 spreadsheet into a Mozilla
    Gmail document. When I do so, I lose the format. This just started happening in the past week. I’ve already tried repairing Excel with the original disk and that didn’t fix the problem. I have been doing this for years and all of a sudden it stopped working.
    I tried the same process in Chrome and the formatting was lost there as well. It was working before. How do I fix this?

    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/

  • How do I delete this non-existent hyperlink destination?

    New to Indesign.
    I need to use the "Blank White" header text as a hypertext destination and I want the name of the hypertext destination to be the same as the text.
    When I try, I get:
    Yet, there seems to be NO hypertext definition already in existence by this name. See:
    Now . . . I have been dinking around in this document for hours creating and deleting hypertext destinations, making bookmarks, trying out text variables, etc etc.
    I'm afraid that all this back and forth may have screwed up my file(s) and now I've got some phantom, hidden hypertext destination I can't find and is therefore undeletable.

    That's a great suggestion, and I tried it, but the undeletable Hyperlink Destination survived.
    And still didn't show up in the list of already defined Hyperlink Destinations:
    So, I started eliminating layers and trying again to define a new Hyperlink Destination using the name "Blank White" that was somehow taken, each time I'd delete an entire.
    After nixing a few layers, I was actually able to use "Blank White" again. I kept going . . .
    Once I knew the affected layer, I then narrowed it down to text object responsible. Guess which one it was . . .
    Yeah, the "Blank White" header itself.
    Apparently I'd used the same exact text to define two Hyperlink Destinations, and in that case the Hyperlink Destination named "Blank White" didn't show up in the Hyperlink Destination Options dialogue.
    Had to delete the affected text, then re-type it and re-define my Hyperlink Destination.
    geeze . . .
    Steve, thanks for your help, though!

  • Import an open office spreadsheet into internal table

    hi all,
            i have one requirment to import excel into sap but  i dont have MS office on my system     
              is  there any way to import an open office spreadsheet into internal table
                by using  ALSM_EXCEL_TO_INTERNAL_TABLE fm  or any other ways.

    Hi,
    You can use this function module 'ALSM_EXCEL_TO_INTERNAL_TABLE',
    It works fine, Here is a sample code hwich I developed and working fine.
      FIELD-SYMBOLS: <FS1>.
    Variables
      DATA: LV_BEGCOL TYPE I VALUE 1,
            LV_BEGROW TYPE I VALUE 1,
            LV_ENDCOL TYPE I VALUE 100,
            LV_ENDROW TYPE I VALUE 32000.
      DATA: LV_FILENAME LIKE RLGRAP-FILENAME.
      DATA: LV_ZWLEN TYPE I,
            LV_ZWLINES TYPE I.
      DATA: LV_TIND(4) TYPE N.
      DATA: LV_ZWFELD(30).
      DATA: KZHEADER TYPE XFELD.
    Internal Tables
      DATA: BEGIN OF LT_INTERN OCCURS 0.
              INCLUDE STRUCTURE  ALSMEX_TABLINE.
      DATA: END OF LT_INTERN.
      DATA: BEGIN OF LT_INTERN1 OCCURS 0.
              INCLUDE STRUCTURE  ALSMEX_TABLINE.
      DATA: END OF LT_INTERN1.
      DATA: BEGIN OF LT_COL OCCURS 0,
             COL LIKE ALSMEX_TABLINE-COL,
             SIZE TYPE I.
      DATA: END OF LT_COL.
      DATA: BEGIN OF LT_FIELDNAMES OCCURS 3,
              TITLE(60),
              TABLE(6),
              FIELD(10),
              KZ(1),
            END OF LT_FIELDNAMES.
    No of columns
      DATA: BEGIN OF LT_DATA_TAB OCCURS 0,
             VALUE_0001(50),
             VALUE_0002(50),
             VALUE_0003(50),
             VALUE_0004(50),
             VALUE_0005(50),
             VALUE_0006(50),
             VALUE_0007(50),
             VALUE_0008(50),
             VALUE_0009(50),
             VALUE_0010(50).
      DATA: END OF LT_DATA_TAB.
    Initialization
      LV_FILENAME = P_UFILE.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                = LV_FILENAME
          I_BEGIN_COL             = LV_BEGCOL
          I_BEGIN_ROW             = LV_BEGROW
          I_END_COL               = LV_ENDCOL
          I_END_ROW               = LV_ENDROW
        TABLES
          INTERN                  = LT_INTERN
        EXCEPTIONS
          INCONSISTENT_PARAMETERS = 1
          UPLOAD_OLE              = 2
          OTHERS                  = 3.
      IF SY-SUBRC <> 0.
        WRITE:/ 'Uploading Error'(019), SY-SUBRC.
      ENDIF.
    Arrange Data
      LOOP AT LT_INTERN.
        LT_INTERN1 = LT_INTERN.
        CLEAR LT_INTERN1-ROW.
        APPEND LT_INTERN1.
      ENDLOOP.
      SORT LT_INTERN1 BY COL.
      LOOP AT LT_INTERN1.
        AT NEW COL.
          LT_COL-COL = LT_INTERN1-COL.
          APPEND LT_COL.
        ENDAT.
        LV_ZWLEN = STRLEN( LT_INTERN1-VALUE ).
        READ TABLE LT_COL WITH KEY COL = LT_INTERN1-COL.
        IF SY-SUBRC EQ 0.
          IF LV_ZWLEN > LT_COL-SIZE.
            LT_COL-SIZE = LV_ZWLEN.
    Internal Table, Current Row Index
            MODIFY LT_COL INDEX SY-TABIX.
          ENDIF.
        ENDIF.
      ENDLOOP.
      DESCRIBE TABLE LT_COL LINES LV_ZWLINES.
      SORT LT_INTERN BY ROW COL.
      IF KZHEADER = 'X'.
        LOOP AT LT_INTERN.
          LT_FIELDNAMES-TITLE = LT_INTERN-VALUE.
          APPEND LT_FIELDNAMES.
          AT END OF ROW.
            EXIT.
          ENDAT.
        ENDLOOP.
      ELSE.
        DO LV_ZWLINES TIMES.
          WRITE SY-INDEX TO LT_FIELDNAMES-TITLE.
          APPEND LT_FIELDNAMES.
        ENDDO.
      ENDIF.
      SORT LT_INTERN BY ROW COL.
      LOOP AT LT_INTERN.
        IF KZHEADER = 'X'
        AND LT_INTERN-ROW = 1.
          CONTINUE.
        ENDIF.
        LV_TIND = LT_INTERN-COL.
        CONCATENATE 'LT_DATA_TAB-VALUE_' LV_TIND INTO LV_ZWFELD.
        ASSIGN (LV_ZWFELD) TO <FS1>.
        <FS1> = LT_INTERN-VALUE.
        AT END OF ROW.
          APPEND LT_DATA_TAB.
          CLEAR LT_DATA_TAB.
        ENDAT.
      ENDLOOP.
    Thanks & Regards,
    Dileep .C

Maybe you are looking for

  • Looking up a EJB 3.0 Session Bean in JSP Scriptlet

    Hello There, Somebody please enlighten me. I have a bean named a.b.MyBeanextending local interface a.b.MyLocalNow I want to use this bean in a JSP (Maybe just for fun, but the point is I am not using resource injection). So the question is, What is t

  • How do we know

    Hi, I have a mapping developed a guy who left. I have a question about SCD columns now. How would i know whether a certain colum in DIM table is an an SCD column or not ? Help woul be much appreciated.

  • Archiving of Workflow items and Data stored - Reg

    All gurus, I am working on ECC 6.0 with the below system: SAP_BASIS     700     0015     SAPKB70015     SAP Basis Component SAP_ABA     700     0015     SAPKA70015     Cross-Application Component I understand that not all the data that is available i

  • AIR Native Extensions. How to loop FREObject properties?

    Hello. We're working on a new AIR Native Extension, the goal is to run javascript code inside AIR. However that's actually not directly related to the problem. The problem itself: - we need to pass some AS3-objects to the javascript runtime - javascr

  • Browse folders

    Hi again, great! Now that I've discovered this wonderful forum, I can ask all the questions I've always wanted to ask about XML DB but never dared to ;-) I frequent use case with XML DB is that you want to find out about folders and subfolders from y