Generating index in an ALV

hi,
i am calling FM 'REUSE_ALV_LIST_DISPLAY'. i m passing an internal table with a column containing serial nos. it goes fine untill i make some filter and re-generate the ALV. After using filter option , the serial nos. dont come in the correct format. Could anyone help me out in this regard ?
thanks,
Tanuj

hi,
here is the code :
form fill_catalog1  USING   p_fieldname TYPE any
                            p_ref_table TYPE any
                            p_scrtext   TYPE any.
  CLEAR : wa_fld_catalog.
  wa_fld_catalog-fieldname  = p_fieldname.
  wa_fld_catalog-TABNAME    = p_ref_table.
  wa_fld_catalog-scrtext_s  = p_scrtext.
  wa_fld_catalog-scrtext_m  = p_scrtext.
  wa_fld_catalog-scrtext_l  = p_scrtext.
  APPEND wa_fld_catalog TO it_fld_catalog.
endform.                    " fill_catalog1
also, i m using new FM
'cl_grid->set_table_for_first_display'
thanks,
Tanuj

Similar Messages

  • How to generate interactive report in alv

    hi,
      how to generate interactive report in alv,for this what are the requirements,
    give me one sample report.
                                                 thankyou.

    Hi,
    Chk these helpful links..
    ALV
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
    Simple ALV report
    http://www.sapgenie.com/abap/controls/alvgrid.htm
    http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
    ALV
    1. Please give me general info on ALV.
    http://www.sapfans.com/forums/viewtopic.php?t=58286
    http://www.sapfans.com/forums/viewtopic.php?t=76490
    http://www.sapfans.com/forums/viewtopic.php?t=20591
    http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
    2. How do I program double click in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=11601
    http://www.sapfans.com/forums/viewtopic.php?t=23010
    3. How do I add subtotals (I have problem to add them)...
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    4. How to add list heading like top-of-page in ABAP lists?
    http://www.sapfans.com/forums/viewtopic.php?t=58775
    http://www.sapfans.com/forums/viewtopic.php?t=60550
    http://www.sapfans.com/forums/viewtopic.php?t=16629
    5. How to print page number / total number of pages X/XX in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
    6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
    http://www.sapfans.com/forums/viewtopic.php?t=64320
    http://www.sapfans.com/forums/viewtopic.php?t=44477
    7. How can I set the cell color in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    8. How do I print a logo/graphics in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=81149
    http://www.sapfans.com/forums/viewtopic.php?t=35498
    http://www.sapfans.com/forums/viewtopic.php?t=5013
    9. How do I create and use input-enabled fields in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=84933
    http://www.sapfans.com/forums/viewtopic.php?t=69878
    10. How can I use ALV for reports that are going to be run in background?
    http://www.sapfans.com/forums/viewtopic.php?t=83243
    http://www.sapfans.com/forums/viewtopic.php?t=19224
    11. How can I display an icon in ALV? (Common requirement is traffic light icon).
    http://www.sapfans.com/forums/viewtopic.php?t=79424
    http://www.sapfans.com/forums/viewtopic.php?t=24512
    12. How can I display a checkbox in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    Go thru these programs they may help u to try on some hands on
    ALV Demo program
    BCALV_DEMO_HTML
    BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
    BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
    BCALV_GRID_DEMO Simple ALV Control Call Demo Program
    BCALV_TREE_DEMO Demo for ALV tree control
    BCALV_TREE_SIMPLE_DEMO
    BC_ALV_DEMO_HTML_D0100
    Regards
    Anversha

  • System generated index property not generated in database

    Hi,
    I created an offline table by copying it from an (first) online database to my project. The table contains a unique key constraint, which references a system generated index. Now I used this offline table to generate a table in another (second) online database. This all works well except, that the "System Generated" property of the index is "false" and not "true" as in the offline table (and the first online database). When I manually reconcile the same table to the second online database again, there is always a difference shown for this index property. When I try to continue the reconcile process to change this property I get an error message, that the index cannot be dropped because it is obviousely referenced by the unique constraint.
    When I drop the constraint and try to generate the index only I get the following warning message:
    Jan 11, 2012 2:08:59 PM oracle.javatools.db.property.AbstractPropertyManager processDiffs
    WARNING: Unsupported property: systemGenerated
    Is there a way to work around this annoying behavour? Is it possible to change this index property by an ALTER INDEX statement?
    Im using JDeveloper 11.1.2.1.0 (Build JDEVADF_11.1.2.1.0_GENERIC_110907.2314.6081)
    Thanks for help and hints
    Thomas
    Edited by: thmayr on 11.01.2012 05:08

    Hi,
    it might be due to some BUG in RDBMS...
    First Check the Secondary index in TEST system
    Look at the Transport Number in DEV system, If this is having error, then it will show you the error details also,
    If that not moved Properly then you need to create another request for the INDEX and move it again
    See the threads with similar problem...
    Warning: Index does not exist in database system MSSQL
    Index does not exist in database system ORACLE??????
    Re creation of database index
    Hope it will solve your problem...
    <b>Reward Points if useful</b>
    Thanks & Regards
    ilesh 24x7

  • How do you automate the point size of page numbers in a generated index?

    In Framemaker 10 I have a generated index for a book. The indexed items are in point size 10 but the generated page numbers come out in 12 pt.
    Can I automate the page number size to be 10 pt?
    I have tried defining a character tag IndexPage Numbers and entered the following on the index Reference page:
    Level1IX
    <IndexPageNumbers><$pagenum>
    Level2IX
    <IndexPageNumbers><$pagenum>
    but this does produce the desired point size.
    Thanks

    Error,
    I was just generating an index today and had this weird behavior. The level1IX, level2IX, and level3IX entries formatted as expected (TNR, 11pt, plain) but the markers and page numbers displayed as 24pt, bold, Arial which matched the IndexIX format. What is that format for anyway? My user guide does not mention its purpose.
    I looked at the reference page and there was a paragraph formatted as IndexIX with this content:
    <$pagenum>
    It was 24pt, arial, bold, and centered.
    Another manual had an index that formatted properly last week but it too had the above <$pagenum> tag. So it's confusing as to the different behavior.
    I reformatted the <$pagenum>/IndexIX paragraph to TNR, 11pt, plain (in the index file), regenerated the index, and now the page number formatting matches the entry formatting.
    Again, is IndexIX the format for the index page numbers only and why does Frame insert <$pagenum> in the Index spec. on the reference page?
    Yours,
    Michael F.
    ~~~~~~~~

  • System generated Index names different on target database after expdp/impdp

    After performing expdp/impdp to move data from one database (A) to another (B), the system name generated indexes has different names on the target database, which caused a major issue with GoldenGate. Could anyone provide any tricks on how to perform the expdp/impdp and have the same system index name generated to be the same on both source and target?
    Thanks in advance.
    JL

    While I do not agree with Sb choice of wording his solution is correct. I suggest you drop and recreate the objects using explicit naming then you will get the same names on the target database after import for constraints, indexes, and FK's.
    A detailed description of the problem this caused with Golden Gate would be interesting. The full Oracle and Golden Gate versions is use might also be important to the solution, if one exists other than explicitl naming.
    HTH -- Mark D Powell --
    Edited by: Mark D Powell on May 30, 2012 12:26 PM

  • Generated index is missing indexed items

    Working with book and separate chapter for index. Index generates but is missing index entries. Is it something I'm doing or an InDesign problem?

    Thanks for input. All available updates have been applied. Long telcon with India so far has produced no cure but at last they are 'escalating' problem to find a solution. It seems to only happen in the 'Symbols' heading (non-alphabetic entries) of the index. Not only are items missing but reference page numbers are missing and/or scrambled. Looks like several indexed subjects are loosing page references and/or picking up page references from following index lines. If you can read the image attached you'll see what I'm talking about if you compare the index flyout lines with what shows up in the generated index. Quite a time consuming pain. It took me almost an hour on the phone to get India to the point they wanted to see this.

  • Need Mapping Help: Generate index if value comes

    Hi Experts,
    I need mapping help to generate index if value comes form source. we have 4 fields in item level of source and target side we have to pass the these filed values and sequence number.
    below given the structures:
    Source:              Target:
    Item                    Item
       A1                      Text
        A2                      Seq_No
        A3
        A4
    my requirement is if A1 filed values comes from source we should pass to text and pass seq_no to constant-1, same as A2,A3 and A4 filed values also we should pass to text and seq_no for A2 is 2 and A3 is 3 and A4 is 4. suppose if A1 value is not coming from source we should pass seq_no for A2 is 1. if A1 and A3 filed values are not coming from source then we should pass seq_no for A2 and A3 are 1 and 2.
    can you please help me how to achieve this. appreciate for your support.
    Regards,
    Sanjay.

    Hi Sanjay,
                      you can  try this mapping
    1. Generate the target 4  ITEM's  by duplicating the subtree as shown below 3 times.
    Now create the each target item starting from first by mapping them to A1,A2,A3 and A4 respectively. I have shown the first ITEM mapping above. similarly you can map A2 to ITEM[1],
    A3 to ITEM[2] and A4 to ITEM[3].
    2. Now you can map the A* fields to Text one to one as shown below
    Please repeat the same for A2,A3 and A4 to respective Text fields.
    3. 
    First seq_no field as shown
    and similarly others as shown
    Regards
    Anupam

  • Is there a script that will generate Index Markers based on Notes?

    I need a way to generate index markers/entries within InDesign based on content that has been added in InCopy. I need this becasue InCopy users can't add Index Markers. One type of content they can add is Notes. Can I use these to generate index markers?
    N.b. I have figured a way for InCopy users to add character styles to words I can then generate a simple keyword index based on these. However I now need to be able to cater for sub level topics, cross references to other topics in the index and equivalent terms, and the character style method won't suffice.
    Any advice/tips on other methods to create indexes based on IC content would be useful.
    Thanks
    I'm using InCopy CS6 and InDesign CS6.

    Me again ;-)
    couldn't test with InCopy but I hope those lines will create a note if some text is selected. contents of the note = the selected text. create a shortcut to the script.
    #target InCopy
    try{
    currSel = app.selection[0];
    currContent = currSel.texts[0].contents;
    newNote = currSel.parentStory.notes.add(LocationOptions.BEFORE, currSel.insertionPoints[0]);
    newNote.texts[0].contents = currContent;
    }catch (e){
    alert(e)   
    changed the first script slightly. Note it's still just a example of how it could work:
    var currDoc = app.activeDocument,
    allStories = currDoc.stories,
    l = allStories.length;
    //checking for at least one existing index ...
    if(!currDoc.indexes[0].isValid){
            currDoc.indexes.add();
    while(l--){
    currStory = allStories[l];
    allNotes = currStory.notes;
    n = allNotes.length;
    while(n--){
    currNote = allNotes[n];
    noteContents = currNote.texts[0].contents
    //create the source
    currSource = currStory.characters.itemByRange(currNote.insertionPoints[0].index, currNote.insertionPoints[0].index + noteContents.length);
    currTopic = currDoc.indexes[0].topics.add(noteContents);
    //this is by default PageReferenceType.CURRENT_PAGE ... changes optionally
    currTopic.pageReferences.add(currSource)
    currDoc.indexes[0].update();
    currNote.remove();
    Hope it'll be of some help
    Hans-Gerd Claßen

  • Error "Lock not set for: Generate index" while running process chain

    SAP BI 7.0
    SP 17
    I am attempting to run a new process chain and the generate index steps are failing with the below errors:
    "Lock NOT set forGenerate index"
    "RSSM PROCESS INDEX terminated, because InfoCube/DSO object could not be locked."
    The process chain just pauses. I let it finish once and it took 2 hours and then it gave the failure messages. I have looked in sm12 and can see the lock records when the process chain is running - unfortunately I can't make much of what's there - everything looks good to me. I also tried creating the indexes manually inside the cube and then re-ran, but still get the same error. Before running the process chain, I can get the indexes to check to green, but then after running the process chain they go back to red. I have attempted many things (including looking at other forum posts), but I still have the error. Please help. Thanks
    Edited by: Brett Hutchinson on Feb 10, 2009 7:50 PM

    Hello,
    So Create index is getting failed in you PS right?
    1)check  if any other loads are running to the same CUBE(May be from other PC's also)
    Goto Manage of the cube and check, some times it may happen if any Loads are running into cube I mean Load/DTP & roll up may be running.. if so wait till the others Loads(Jobs) get complete then Repeat the failed index
    2) If the Create index is running for long time, then  got RSDDV--> Select the CUBE then click on BIA index(Maintenance wizard), you can see a message if indexes are running , this will happen  only when some one would have tried to generate the indexes manually and it may got failed due to some reason , since u are running it manually u couldn't identify whether it got failed or not unless you got to RSDDV and check. So delete the index here and then rebuild them through PC
    Hope it helps!

  • Auto generate index for FK

    Where is option like 'auto generate index for FK' in DataModeler 4.0.3?

    You need to right-click on the Browser node for the Design and select Properties.
    In the Design Properties dialog you will find the Automatic Index Generation option for FKs on the Settings > DDL page.
    David

  • Problem generating index with 2th level in cs4

    Windows XP sp 3 - Indesign CS4 601
    When generating an index with a 1st and a 2th level, in the 2th level the entry of the 1st entry is always repeated.
    E.g. the index should look as this:
    text     75
         capitalized     76
         import     78
    word     105
         language     108
         meaning     109
    But actually the index looks as this:   
    text     75
         textcapitalized     76
         textimport     78
    word     105
         wordlanguage     108
         wordmeaning     109
    Is this a bug, or is there a solution for it?
    Thanks for your help!
    Luc Van de Cruys
    phaedra creative communications

    Oops!
    Just tested the script.
    I run it, and I get the script alert 'All Done' at the end.
    But nothing happens.
    This is what I do:
    - I generate the index.
    - I select the index with the text tool (select all or just put the textcursor somewhere in the index makes no difference).
    - I run the script
    - I get the message 'all done', but there is no difference. The problem persists.
    Any other ideas?
    Thanks anyway.
    L.L.

  • How I generate index markers using Applescript and tagged text!

    One of the challenges I've faced in automating the book making process using Applescript with inDesign is that there don't seem to be any AS commands for making new index markers (anyone please correct me I if I'm wrong about this).
    I've tried various js scripts which do an OK job, but they don't make the actual native markers. This means you have to wait until the book (consistiing of multiple ID files) is complete (so that all the page numbers have been established) to generate the index.
    Recently, I read a tweet from someone with a link to a technique which uses tagged text and find and replace with GREP to edit the tags, inserting the tagged text index tags in the text file and then re-placing the text file in the ID page. In itself, this works great. But I'm dealing with literally thousands of separate text frames, none of them connected in a story.
    The books typically consist of around 1200 pages with almost that many people, each of whose names I need to index with "Lastname, Firstname" references. And those particular strings don't (can't) appear anywhere on the pages. There will also be about 50 ID files all combined into one book. So it is imperative that I have ID generate the native index markers. To help keep things straight and efficient, I'm creating separate small text frames to hold the lastname, firstname strings. I created an object style for these frames which sets the attributes to "nonprinting", and I place the frames in the margin.
    Then I realized that I don't actually have to have ID export the tagged text files for each. I exported one prototype and copied its tags to properties in my script, and then I concatenate them with the respective list item values I import from the database.
    At the proper point in the page building script, I tell "textwrangleer" to make a new document, set its contents to the index string for the current record, save it to disk, overwriting the previous one, and then tell ID to "place" it in the index text frame, which generates the ID index mark.
    I actually got an AS error when I first tried this: "file doesn't exist" or some such. Then I realized that the "place" command was happening too soon, so I inserted a .5 sec delay in the script, and it worked.
    This is actually my first major script for actual work, and I'm so excited about it! I promises to cut production time down to about a thenth of what it was.
    I still have to add some logic to branch between handlers with slightly different parameters for five different page formats, but the same page building handler will work on all of them.

    A note on this:
    Daniel Swanson wrote:
    I've tried various js scripts which do an OK job, but they don't make the actual native markers. This means you have to wait until the book (consistiing of multiple ID files) is complete (so that all the page numbers have been established) to generate the index.
    These scripts typically search for words and immediately write out the page numbers they are found on -- one shot indexing.
    The solution is to add both the topic and its page reference to the current document's index:
    if (app.activeDocument.indexes.length == 0)
        app.activeDocument.indexes.add();
    app.activeDocument.indexes[0].topics.add(app.selection[0].contents).pageReferences.add(app.selection[0]);
    The first lines only make sure there is an index to add to (per default, a new document has none).
    The last line adds a selected word to the index (it must be a plain text string, hence the use of its 'contents'), and then adds a reference to the selection in the text itself.
    Adding the same word a second time will for a change (quite untypically for ID's Scripting) not result in an error but simply add another page reference to the existing one.
    When doing this in a loop: remember to work backwards, because the index marker itself gets inserted into the running text, and that will throw off your text indices.

  • InDesign CS5.5 crashes when generating index

    Hello everyone.  I have been working on a 232 page catalog and have been indexing as I've went along.  The catalog itself (232 pages) is a book file.  When I generated the index before it seemed to take a long time, but it always got through it and had no problems.  One day, randomly, it decided it wasn't going to work anymore and crashes when I re-generate the index.
    I have tried to add documents at sections at a time to see if it might be a particular file, but my tests have all been inconclusive.  I have the catalog separated into 8 sections (32 pages each) I added 1, 2, 3, 4, and 5 generating the index after each addition.  I got to section five and it was still okay.  When I added section 6 it crashed.  I tried generating section 6 by itself and it was fine.  Then I generated sections 1-5, and 7 together and it still crashed!  I've done every possible combination of index generating and I'm getting desparate.  I really do not want to have all my indexing work on the entire back section of the catalog to be wasted.
    Is anyone having a similar problem?  If I could get it narrowed down to one section, it would help greatly.  I do have x refs in my documents but they are all contained within section 4 (which had no problems generating).
    I'm assuming the problem lies within section 6 or 7, but I generated them together by themselves and the index generated without a problem.

    My InDesign crashed a couple of months for no apparent reason and, whenever I tried to resume the same activity as I was doing when it crashed, it crashed again! I wasn't creating an index but adding photos. Bascially, what I had to do was copy and paste all of my data into a new document. That worked. It was a pain, because I had to copy the master pages, style sheets, blah, blah but it worked. I think what happens is that files get corrupted if they keep crashing. You're better off just grabbing the data and creating a new doc. A pain, I know but....
    Good luck! I am just now getting into Indexes, btw.

  • How to place the generated index topic

    I have a requirement to create index pages from a catalog that is generated completely (using javascript) from a xml data source dynamically using placeXML functionality of InDesign.
    I created a place holder (a separate page with a textFrame) in my template (.indt file) and used text in between some tags (example: <ix>sometext to be indexed</ix>) and generated the topic thro' script (used grep).
    I am able to invoke the "generateIndex" menu action using the following script and it works thro' ExtendScript ToolKit but the same is not working if I execute the script using the SOAP client to the InDesign Server.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    var indexAction = app.scriptMenuActions.itemByID(78084);
    indexAction.invoke(); 
    The following errors occur.
    UserInteractionLevels is undefined
    Object does not support scriptMenuActions property
    Does anyone have any other ideas to achieve the same, please help!
    I appreciate your help and thank you!
    - Elavarasan

    Hi,
    I found the solution. There is a method for the Index object named "generate" and I invoked to generate the index.
    - Elavarasan

  • Checkbox "include book documents" dimmed when generating index

    Hello,
    I`m having some trouble generating the index of a book.
    I have index entries in multiple documents. I have the "book" option in index window checked, and all the book documents opened. But I still cannot check the "include book documents" option. Am I doing something wrong?
    Oh and another thing, probably not related, but whenever I open a document, it looks like it has been changed and unsaved, although no changes were made. Whenever I save it, the star indicator disappears, but after a few seconds it pops back. The documents are not locked, and InDesign has the privilege to overwrite them.
    Using InDesign CS 5.5 on Mac OS X Lion 10.7.2.

    Well that was weird, I moved the folder to my desktop and back, and now it is alright.
    But the second issue (with the changed/unsaved thing) still prevails.

Maybe you are looking for