Find/Find Next Behavior in ALV in container in ABAP OO

I have an ALV grid in a custom container that's sized for a screen on a high-resolution tube.  In other words, there's a scrollbar on the ALV but none on the screen itself (because the whole screen is visible at the high resolution.)
At this high resolution, a find or find next will correctly scroll the ALV to the row in which an item is found (when the "found" row is below the currently visible row of the ALV.)
But when I switch to a lower resolution where I have a scroll bar on the ALV and on the window itself, a find or find next does not scroll the ALV properly.  You have to manually scroll to find the found row.
Yes - I have both resizings checked on the container.
Is there a way I can:
1) find the resolution the user is in?
2) modify the screen size to fit this resolution?
3) modify the container size to fit this resolution?
Thanks
djh

Calgar -
This is the same thing that Thomas (Jung) suggested in an old ABAP General thread.
But I've done it, and it doesn't work.
Also, I don't understand why I'm getting a scroll bar for the ALV as well as for the screen.
I thought if I did what you and Thomas said, I would only see the scroll bar for the screen and not the ALV.
Any other ideas ????
Thanks
djh

Similar Messages

  • Regarding ALV Using container OO ABAP

    HI ALL,
    I have created an editable alv report using docking conatainer.
    i am facing list of problem while need to maintain these activities.
    1. I need to save the changes which are made change in the grid layout.
    2. As the alv itself gives a option adding a new row and deleting a new row, while doing that i need to capture the previous record value. And assign these values to the first 2 field in the added row.
    In order to do how can we deffer the original functionality.
    Can any one give some suggestions in order to work.
    Thanks and regards,
    Naresh

    hi,
    First you have to take your data into another internal table and then send data for display of ALV.At the time of save you can compare the old internal table with new edited data and based on which you can save the data for it.
      SAP will give provision for triggering of our own subroutine before/after the user command method is called. You can call those subroutines for those adding/deleting lines.
    Regards,
    Veeresh

  • Possible to code a Find/Find Next feature for use inside a Table Control

    Hello,
    I have a Table Control that displays many lines.  Is it possible to code a Find/Find Next feature that would allow the user to enter a 'keyword' then search each line of the Table Control for existing matches?
    I have provided the user with various Selection Criteria that will filter the table control results, but there are still too many lines to visually scan for the desired result.
    I am guessing that I would place an input box and a 'Find' button onto my layout screen. Then in user command, I have to scroll through each line of the table control and check every value to see if the string contains 'keyword' When found, stop  and display table control assigning current line as Top line?
    Am I on the right track or is there a better solution already?
    Kind Regards,
    MPersson

    I've done that. It works pretty well. You might want to allow the user to search only in selected column(s) as well.
    Rob

  • Adding 'FIND' functionality in toolbar of ALV Web Dynpro ABAP

    Hi Friends,
    I need to know whether we can add FIND functionality in toolbar of ALV display. If yes than which class will help in that, or do i need to code it.
    Pls help on this.
    Regards,
    Saud

    Hi Saud,
        If you mean that you need to highlight the Field-Value then, you can use Set Focus On A Table Cell .
    You can use the method REQUEST_FOCUS_ON_VIEW_ELEM of if_wd_view.
    For this, you can see this post --
                               How to set focus on a specific UI field at the start of an application?
    Further, you have to design 'find input-screen', submitting which will set focus on the cell that contains requested value.
    This way, you can add ( or somehow, simulate ) the Functionality of FIND, although not per se.
    Thanks.
    Kumar Saurav.

  • How to find the selected item in alv grid or table control

    can any one tell me please
    how to find the selected item in alv grid or table control

    In table control, If you goto screen painter and goto table control properties ( f2 ), there is one check-box w/selColumn check that and give column name. Then add that column to your internal table.
    IN PAI
      LOOP AT it_tkhdr.
        FIELD it_tkhdr-sel_row
          MODULE tab_tkhdr_mark ON REQUEST.
      ENDLOOP.
    MODULE tab_tkhdr_mark INPUT.
      MODIFY it_tkhdr INDEX tc_tkhdr-current_line.
    ENDMODULE.                 " tab_tkhdr_mark  INPUT
    here it_TKHDR is internal table sel_row is field for selection
    After that, you can loop at it_tkhdr where sel_row is 'X' to get selected rows.
    regards,
    Gagan

  • C# Find/Find Next functionality on SQL Server CE 3.5 table

    Hi,
       Is it possible to implement a Find/Find Next type search on an SQL Server 3.5 table (only 1 column to search)?
    Thanks
    Paul.
    Paul Wainwright

    Hello Paul,
    a "Find" is a simple select Statement with a where clause on a column to filter the resultset, like
    SELECT *
    FROM Addresses
    WHERE FirstName = 'Olaf'
    In your C# program code you get the result e.g. as a DataReader where you can iterate through all resultset = "Find next". 
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I cannot find the next and previous button in iTunes get info menu? Is there anyone that has also experienced this problem that can help me please

    I cannot find the next and previous button in iTunes get info menu?
    Is there anyone that has also experienced this problem that can help me please
    I have the lates version of Itunes

    I have managed to figure out how to solve this problem, after looking around I saw a lot of people kept saying makesure it is list view however this still did not work, I found the only way for me get these buttons back was to change the Movie to a TV Show and only then did the "Next" and "Previous" button appear. Right Click> Get Info > Options > Media Kind and then Select TV Show, this is extremely inconvienent but the only way that I found that has worked so far.
    Hope this works for you too!!

  • Find the Next available date which is not necessarily the Maximum Date

    Morning folks!
    I am trying to find the next scheduled appointment date (Including any day after today) for a patient which may not be the maximum date for that person. I am trying to do this in Oracle Forms. My Query is working in SQL*Plus but is not working in Forms.
    FUNCTION get_next_sched_date(P_PATIENT_ID in varchar2) RETURN DATE IS
      v_next_scheduled_date   patient_visit.target_date%TYPE;
    BEGIN
      select next_target_date into v_next_scheduled_date
      from   ( select v.*, max(target_date) over (partition by patient_id) max_target_date,
                           lead(target_date) over (partition by patient_id order by target_date) next_target_date
               from   patient_visit v)
      where  patient_id = P_PATIENT_ID
      and    next_target_date >= SYSDATE
      and    max_target_date > next_target_date;
      return( v_next_scheduled_date );
    EXCEPTION
       when NO_DATA_FOUND then
         return(NULL);
    When I compile this in Oracle Forms, it gives me an Error.Encountered the symbol "(" when expecting one of the following: ,from.
    I also noticed that Oracle Forms is not liking keywords such as LAG and LEAD. I am working on Oracle Forms 9i.
    Any idea what I am doing wrong here? Thanks for listening to my Monday harping. :-)
    Forms [32 Bit] Version 9.0.4.0.19 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit ProductionEdited by: Roxyrollers on Aug 27, 2012 8:43 AM
    Edited by: Roxyrollers on Aug 27, 2012 8:46 AM

    Thanks.
    For now, I have another simpler solution. I was just curious if the first way would have worked.
    select MIN(target_date) into v_next_scheduled_date from patient_visit v1
    where  patient_id = P_PATIENT_ID
    and    target_date >= SYSDATE
    and    target_date <= (select MAX(target_date) from patient_visit v2
                           where  v2.patient_id = v1.patient_id);Edited by: Roxyrollers on Aug 27, 2012 9:16 AM

  • Finding the next smaller and next larger prime number

    Hey all, will this code help me find the next larger and next smaller prime number? I only ask because my main() isnt outputting anything, but everything looks fine there. So assuming I may have done something that didnt make sense here.
              //returns the next larger prime number
              long largerGetter = num;
              long lG = num + 1;
              while(largerGetter != 1)
                   largerGetter = PrimeChecker.primeOrNot(lG);
                   lG++;
              nextLargerPrimeNumber = lG;
              //returns next smaller prime
              long smallerGetter = num;
              long sG = num - 1;
              while(smallerGetter != 1)
                   smallerGetter = PrimeChecker.primeOrNot(sG);
                   sG--;
              nextSmallerPrimeNumber = sG;

    JimmyV88 wrote:
    Hey all, will this code help me find the next larger and next smaller prime number? ...If this isn't homework (which it probably is), use the BigInteger class to find a [next probable prime|http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html#nextProbablePrime()] given a prime number or keep subtracting two from that given prime and check if that number is [(probable) prime|http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html#isProbablePrime(int)] to find the previous prime.

  • How to find a next bigger no from the list of random numbers

    hi abapers
    can u plz tell me how to find the next bigger no from the given list if some input is given
    the list is 1,2,3,4,8,9
    the input given to the list is 5 and the output should come 8
    i used select endselect but the output is coming 9 i want it 8
    how to do it?

    Try this way
    PARAMETERS : p_num TYPE i.
    TYPES : BEGIN OF ty_itab,
            num TYPE i,
           END OF ty_itab.
    DATA : it_itab TYPE TABLE OF ty_itab,
              wa_itab TYPE ty_itab.
    DATA : a TYPE i.
    wa_itab-num = '1'.
    APPEND wa_itab TO it_itab.
    wa_itab-num = '2'.
    APPEND wa_itab TO it_itab.
    wa_itab-num = '3'.
    APPEND wa_itab TO it_itab.
    wa_itab-num = '4'.
    APPEND wa_itab TO it_itab.
    wa_itab-num = '8'.
    APPEND wa_itab TO it_itab.
    wa_itab-num = '9'.
    APPEND wa_itab TO it_itab.
    SORT it_itab ASCENDING BY num.
    LOOP AT it_itab INTO wa_itab.
      IF wa_itab-num GT p_num.
        a = wa_itab-num.
        EXIT.
      ENDIF.
    ENDLOOP.
    WRITE : / a.

  • "Find Finder Items" returns same file twice

    Hey y'all,
    I'm trying to jerry-rig a photobooth for my wedding. I'm using automator to grab 3 stills from a webcam, and place them all in a folder. When I use "Find Finder Items" to send these images to an action that will rotate them, it finds one of the images twice. That is, the results for "Find Finder Items - where: path whose: name contains 'snap' " will return pictures/path/snap3.tiff, pictures/path/snap1.tiff, pictures/path/snap2.tiff, pictures/path/snap3.tiff. This means that when I send these results to my Rotate 90 Degrees action, Snap3 is rotated 180, and when I send them all into a PDF, I get snap3 twice.
    This also happens when I "Find Finder Items" and just look for all the .tiff files in /path, and when use "Get Folder Contents" on /path.
    Background: Running 10.5.8 Leopard on a PPC Mac mini. Fairly new to the world of Mac, so I may be missing something obvious.
    I've been searching for answers for a day or two now, and haven't come across this sort of issue; I apologize if this is old hat, but I really have made a goodfaith attempt to search these and other forums.
    Any help would be greatly appreciated.
    Edited to add: The folder only contains the 3 .tiff files, and the PDF I'm trying to dump them into. I thought maybe I was somehow creating a 4th identical file, but it's not the case.

    Hello & a warm welcome!
    no idea what is happening, other than Apple Software is usually the worst to accomplish thing the way YOU want to.
    GraphicConverter has a powerful Browse Folder function, & many tools for manipulation, & you can keep your Pics wherever you want...
    http://www.lemkesoft.com/

  • Find Finder Items doesn't work?

    I can't seem to get a basic thing to work...
    Find Finder Items (Where "camerafiles" & Whose Name Contains "camera1")
    View Results
    Always results in ()
    Have tried contains, begins with, ends with....nothing works.
    The folder contains about 300 files that all start with "camera1-xxx-xxx-xxx"
    Any ideas or is it just broken?
    Dual Processor 1.4 Ghz   Mac OS X (10.4.9)  

    Depends on what?
    I don't understand why "where" the folder is located should make any difference. But here's the path:
    Macintosh HD:Applications:4DWebSTAR:WebServer:Users:heckman:camerafiles
    Spotlight doesn't let you limit your search to a specified folder. I mean, why search the whole hard drive when you know the files you want are inside a specific folder?
    I tried a Cmd-F find for the files, they don't come up. I tried a Spotlight find, they don't come up. I open up the "Macintosh HD" drive from another computer on the network, do a Cmd-F find on that machine, they show up.
    So I guess the issue is: why can't I find them on the local machine they are actually on? The files are definitely there.

  • Backup workflow fails - Find Finder Items

    I have tried to put together a simple Automator workflow to backup recently changed files to a CD as follows:
    [Find Finder Items]: Where:[Top level folder] Whose:[Date Modified]:[Within the last 2 weeks]
    [Create Archive]: Save As:[Archive File Name] Where:[Desktop] Ignore unreadable items
    [Burn a Disk]: ...
    After Create Archive has run I have a Zip file on the Desktop, but it contains far more than just the files modded in the last two weeks. Even if I reduce the [Date Modified] criterion to [This Week] I get the same result.
    Any idea what I'm doing wrong?
    I've set up a Smart Folder in Finder to list the files using the same search criteria, and it produces a reasonable list. I thought of trying to archive the contents of the Smart Folder, but that just archives the Smart Folder definition file, not the files it points to.

    Whoops! I can now answer this one myself!
    It turns out that if a folder contains a recently modified file it is included in the items, and then the entire contents of that folder are included in the archive. I was able to solve the problem by adding a second criterion to the [Find Finder Items] action: Kind Is Not Folder. The Zip file still contains a hierarchical folders/files structure, but now only the recently-changed files are included.

  • "Find Finder Items" Broken? Help!

    I'm having a problem with Find Finder Items. I set it as follows:
    Find Finder Items
    Where: 100EOS7D (this is a folder on my drive)
    Whose: Extension is equal to CR2
    When I run this I see in the window below all my CR2 files listed. However, I also see my path and directory listed twice at the top. Why? My next step is to move the results of this search to the trash, but along with the files, my folder is moved to the trash as well!
    Am I doing something incorrectly?
    Please let me know either here or at *********.
    <edited by host>
    Thanks!

    please don't put your email in the post. it's against forum rules. are you using automator? please give full details of the whole workflow, not just one action.

  • Where do I find "finder.plist"

    where do I find "finder.plist"
    I have a line in the favorite bar that is not removable.
    Deleting the finder.plist should resolve this issue I understand.
    But how deep I go into my system in the library under preferences there is no finder.plist.

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy – do not type – the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

Maybe you are looking for