How to select records in ALV using FM

Hi guys,
How to select records in ALV using FM. Not the OO method. Thx in advance!
Kun

hI
by using REUSE_ALV_FIELDCATALOUG_MERGE. Iys fill field catalouge table as per internal table description. Then use REUSE_ALV_GRID_DISPLAY for display ALV REPORT.
**Please reward suitable points***
With Regards
Navin Khedikar

Similar Messages

  • Download only selected record from ALV

    Hi
      I want to download only selected records from ALV output with button.
    i hav to fix the button on ALV screen using &ZDL whenever user presses the button record should be downloaded.
    Pl with coding
    its very very urgent.

    Hi ,
    i dont have the exact code which suits to your requirement
    but declare the internal table
    like
    data: begin of itab occurs 0,
      check type c,
    fields
    end of itab.
    while filling the field catalog
    fieldcatalog-checkbox = 'X'
    for this check field.
    and display the grid
    now write this subroutine
    *&      Form  USER_COMMAND
          Called from within the ALV processes. Currently, '&IC1' is used
          to process the hotspot and display the document 'picked' by the
          user.
          PV_UCOMM    contains the sy-ucomm from ALV
          SELFIELD is a structure that contains all the data required to
                   process a user selection. The following is an example
                   of the SELFIELD structure and sample values:
    FORM USER_COMMAND USING PV_UCOMM LIKE SY-UCOMM
                            SELFIELD TYPE SLIS_SELFIELD.
      CASE PV_UCOMM.
        WHEN '&IC1'.
          loop at itab where check = 'X'.
    append all these records to another internal table itab1
         endloop.
    call function gui_download.
    pass the internal table itab1 in the tables statement
    and also you have to give the file path that may be static or dynamic
    if dynamic you have to call the function module
    f4_filename
    and get the filename and pass the same value to gui_download
    that will be download to the above said path
    endcase.
    end form.
    reward points if helpful,
    thanks & regards,
    venkatesh

  • How to select "ISO A" (auto) using Custom Controls with lever assigned to ISO change?

    On 7D Mark II with firmware 1.0.4, I have used Custom Controls to assign ISO change to the lever.  However, it is not possible to change ISO to "ISO A" (auto).  How to select "ISO A" (auto) using Custom Controls with lever assigned to ISO change? 

    Follow Up:
    Ok so ive changed things up a bit and have had some more success.
    I have used a Switch statement in my For loop to perform different actions based on the item selected.
    The code looks like this:
    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
    var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*] .Row4.Cell1");
    var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[* ].Row4.Cell1");
    for (var i=0; i <= fFrom.length-1; i++) {
         switch (fFrom.item(i).rawValue)
         case "Option 3":
         fTo.item(i).rawValue = "Enter the details in the field below";
         break;
         default:
         fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
         break;
    This code solves my problem but has thrown up a new issue:
    When i select Option 1 or 2 from the dropdown list  the change in the text field is instantaneous, however if I select Option 3 it wont appear in the text field until I either select Option 3 a second time or select another item. Its as if the text field is a selction behind what I have enterd in the dropdown list.
    Any thoughts?

  • How to select records based on Max/Min on different columns and group by

    I have a table with 5 columns(a,b,c,d,e), i need to select records based on MAX(c),Max(D) and Min(e) group by a,b. i am trying using : select max(c),max(d),min(e) from table group by a,b. this is not working. its giving me 1 6 1
    a b c d e
    1 1 1 2 1
    1 1 1 6 4
    1 1 1 6 3
    when i group by a,b i am expecting the record 1 6 3
    Please help me with this.. Thanks in advance....

    Hi,
    Welcome to the forum!
    962163 wrote:
    I have a table with 5 columns(a,b,c,d,e), i need to select records based on MAX(c),Max(D) and Min(e) group by a,b. i am trying using : select max(c),max(d),min(e) from table group by a,b. this is not working. its giving me 1 6 1
    a b c d e
    1 1 1 2 1
    1 1 1 6 4
    1 1 1 6 3
    when i group by a,b i am expecting the record 1 6 3It looks to me like "1 6 1" is the correct answer. You're asking for the lowest value of e, and 1 is lower than 3.
    Maybe you don't want MIN (e). Explain why you want 3 (that is, how you decided that 3 is the correct value for the last column) and someone will help you code it.
    Edited by: Frank Kulash on Sep 28, 2012 6:17 PM
    Whenever you have a problem, you should psot CREATE TABLE and INSERT statements for your sample data. That way, the people who want to help you can re-create the problem and test their ideas. It often helps to clarify the problem, too. since this is your first message, I'll do it for you:
    CREATE TABLE     table_x
    (       a     NUMBER
    ,     b     NUMBER
    ,     c     NUMBER
    ,     d     NUMBER
    ,     e     NUMBER
    INSERT INTO table_x (a, b, c, d, e) VALUES (1, 1, 1, 2, 1);
    INSERT INTO table_x (a, b, c, d, e) VALUES (1, 1, 1, 6, 4);
    INSERT INTO table_x (a, b, c, d, e) VALUES (1, 1, 1, 6, 3);
    COMMIT;

  • How to select records in batch?

    Hi Friends.
    I want to select 10 lacs records. But if i used for all entries also it is giving error of time out. now i want to select records ina batch og 100000. Means forst it will select 100000 records and move in a internal table ..after that it will again fetch next 100000 records and append in that internal table like that..Is it possible..how to do this? i am selecting BELNR from BKPF and using FOR ALL ENTRIES fetching records from BSEG. requirement is such as i have to fetch records from BSEG only and not from BSID,BSIK... like tables..
    Please help me...its urgent friends....

    Hi ..
    My program is not a normal abap program..it is a RFC. actually requirement is to fetch data from sap and send it to squ server database. So non sap application execute the RFC. so i cant run this it in background...is it possible to run RFC in background..

  • How to select installation language when using silent install

    Hi,
    How can i select installation language when using silent install.
    Power management
    Presentation_Director
    System_Update
    EasyEject_Utility
    When i install those programs with silent install string it will install language i have select at windows regional options. I want thinkvantage software to be installed in english but now its finnish.
    So how to set default language EN with silent install?
    Cannot change windows regional options.

     No solution yet....?

  • How to select item in combobox using database?

    I inserted some data in oracle database using comboboxes and to retrieve that data from oracle database.my problem, How to select the item in combobox using that data(retrieve data)?

    Not quite sure what you're asking; do you want to show some value in the combo box selected when the page loads? Then you need to use the "selected" key word in the correspoding <option> element.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Newbie asks: "How do I record my voice using my built-in mic?"

    I will admit it - I am the newbie. I cannot for the life of me figure out how to record my voice, using my built-in mic on my laptop (G4). The manual for GarageBand doesn't have a step by step.
    My Track Info does not list "Vocal", as I have seen it listed on Apple tutorials and pdf manuals. Also, I have set my Preferences to "built-in audio" for input and output. I am using version 2.0.2 (50) of Garage Band.
    I am probably just being mentally deficient, but can anyone help me with a step-by-step explanation of how to record my voice?
    iBook G4   Mac OS X (10.4.9)   Complete Novice
    iBook G4   Mac OS X (10.4.9)  

    Hi,
    You can use Windows "Sound Recorder'
    Start Sound Recocrder
    Speak, Sing or may noises
    And stop when finish
    Save file
    To start Sound Recorder
    Windows 7: Click Start > All Programs > Accessories > Sound Recorder
    Windows 8 & 8.1: Hold down Win key then press Q > Type Sound R in Search box
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to select records with certain fields unique while others not

    Hi,
    For example, I have table with 6 columns, called 'A', 'B', 'C', 'D', 'E', 'F'. There's no unique constraint built-in, and I would like to select records that have both column 'A' and 'B' unique. What should the sql statement look like?
    Columns 'C', 'D', 'E', 'F' can have same data in different records or null, not a concern.
    Thanks.

    select A, B, max(C), max(D), max(E), max(F) from <your_tab>
    group by A, B
    select * from (select t.*, row_number() over (partition by A,B order by null) rn from <your_tab> t)
    where rn=1they are not the same, but seem to meet your needs both.

  • How to select records considering 200 entries at a time

    Dear All,
    Need some help.
    Scenario :-
    I have an idoc number range in select options.Instead of selecting all the
    records falling in this range and populating the final internal table i want
    that every 200 idoc no.s (from select-options)be copied into a range field and then this field be used
    repetitively (until idoc nos are finished)for populating final data.
    The reason for doing this way is performance factor.
    Please suggest how to do this.

    Hi Deepali,
    check the package size addition of select statement.
    ... INTO|APPENDING [CORRESPONDING FIELDS OF] TABLE itab [PACKAGE SIZE n]
    Effect
    If the result set consists of multiple lines, an internal table itab of any table type can be specified after INTO or APPENDING. The row type of the internal table must meet the prerequisites.
    The result set is inserted into the internal table itab line-by-line; a sorting process is executed in the case of a sorted table. If INTO is used, the internal table is initialized before the first line is inserted. Previous lines remain intact if APPENDING is used.
    Before any assignment of a line of the result set, an initial row of the internal table itab is created and the line of the result set is assigned to this row. When assigning a line of the result set to a row of the internal table with or without CORRESPONDING FIELDS, the same rules apply as when assigning to an individual work area wa (see above).
    If the PACKAGE SIZE addition is not used, all lines of the result set are inserted in the internal table itab and the ENDSELECT statement must not be specified after SELECT.
    If you specify the PACKAGE SIZE addition, all lines of the result set for SELECT are processed in a loop, which must be closed with ENDSELECT. The lines are inserted in the internal table itab in packages of n lines. n must be a type i data object that contains the number of lines. If the value of n is smaller than 0, an exception that cannot be handled occurs. If n is equal to 0, all lines of the result set are inserted in the internal table itab. If used in the FETCH statement, n lines are extracted from the current cursor position.
    If INTO is used, the internal table is initialized before each insertion and, in the SELECT loop, it only contains the lines of the current package. If APPENDING is used, a further package is added to the existing rows of the internal table for each SELECT loop or for each extraction using FETCH.
    After ENDSELECT, the content of itab is not defined if INTO is used - that is, the table can either contain the lines of the last package or it can be initial. If APPENDING is used, the content of itab retains the state of the last loop pass.
    Notes
    In the case of an internal table with a unique key, an exception that cannot be handled occurs if an attempt is made to create a duplicate entry.
    If the addition PACKAGE SIZE is specified together with FOR ALL ENTRIES, it is not passed to the database system, but is applied to the result set on the application server, after all selected rows have been read.
    Thanks,
    Vinod.

  • How to select a radio button using javascript?

    Hi,
    I have 2 radio buttons as shown below:
    <input id="poBoxRadio" name="poBoxRadio" type="radio" class="radio-btn" value="No" /> No
    <input id="poBoxRadio" name="poBoxRadio" type="radio" class="radio-btn" value="Yes" /> YesI want to select one of this radio button, according to the following condition in javascript:
    <script type="text/javascript">
    if (<%=option1%> != ""){
         // Radiobutton "No" should be selected.
    else if (<%=option2%> != ""){
         // Radiobutton "Yes" should be selected.
    </script>How can I do this in Javascript? Any help will be highly appreciated.
    Thanks,
    Rishi

    I have solved this issue using the following:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script type="text/javascript">
    var a='', b='d';
    </script>
    </head>
    <body>
    <input id="poBoxRadioNo" name="poBoxRadio" type="radio" class="radio-btn" value="No" /> No
    <input id="poBoxRadioYes" name="poBoxRadio" type="radio" class="radio-btn" value="Yes" /> Yes
    <script type="text/javascript" defer="defer">
    <!--
    if(document.getElementById){
    if (a != ""){
    // Radiobutton "No" should be selected.
    document.getElementById('poBoxRadioYes').checked = false;
    document.getElementById('poBoxRadioNo').checked = true;
    else if (b != ""){
    // Radiobutton "Yes" should be selected.
    document.getElementById('poBoxRadioNo').checked = false;
    document.getElementById('poBoxRadioYes').checked = true;
    // -->
    </script>
    <input disabled type="button" value="UP" onclick="setVariable('move=1')">
    </body>
    </html>Thanks to all of you!

  • How to select records filter by the value which stored in xml field

    I read many datas to solve my problem,but those doesn't work...
    At first, I create a table in sqlserver
    CREATE TABLE [dbo].[Demo](
    [ID] [int] IDENTITY(1,1) NOT NULL,
    [Content] [xml] NOT NULL
    Then I insert two records:
    INSERT INTO Demo(Content) VALUES(
    '<plan>
    <teachers>
    <teacher>1</teacher>
    <teacher>2</teacher>
    </teachers>
    </plan>')
    INSERT INTO Demo(Content) VALUES(
    '<plan>
    <teachers>
    <teacher>3</teacher>
    <teacher>4</teacher>
    </teachers>
    </plan>')
    Now ,I want to get the records which the Content field's teacher=3. I try my best to sovle it ,but I can't.
    Are there somebody can help me? Thanks !

    You can use the .exist method to do that.  Try these:
    SELECT *
    FROM Demo
    WHERE Content.exist('plan/teachers/teacher[. = 3]') = 1
    DECLARE @teacherId INT = 3
    SELECT *
    FROM Demo
    WHERE Content.exist('plan/teachers/teacher[. = sql:variable("@teacherId")]') = 1

  • How to insert record in table using ADF Table

    Hi,
    I am developing and application in ADF .it consist 5 tables.i need to insert into 1 table that contains IDs that are reffered from other tables and on ADF Table fi i dont want to show those IDs. Can somebody provide me solution how to do that?
    like i have a SkillTable - that contains attributes Resource No(number) ,module Id(number), Track id(number), skill_type(number), skill_rating(number), experience(number).
    Track id is reffered from track table
    Module id is reffered from module table
    Resource table is reffered from resource table
    skill_type and skill_rating from lookup table
    and i need to insert into SkillTable using ADF Table. we dont want to show Track id,module id,codes for skill_type nad skill_rating on ADF Table instead we want to show trackname and module name ,code values for skill_type and Skill_rating .
    when we create ADF table for this skill table it shows me ids but what i want is that in each row it should show resource name,modulename,track name,and for skill_type and skill_rating it should show name of skill_types and Skill_rating rather than codes for each skill_type and Skill_rating.
    we tried to insert by creating view ,but didnot work.
    plz provide any solution.
    Thnakls

    Hi,
    Thanks for quick reply.but let me tell u my problem in more detail.
    To insert into skill_table I have created a VO that contains ResourceNo, track_id, module_id,skill_type,skill_rating,experience. And I drag it on ADF creation form and also have created read only LOV for resource_name from resorce_table, LOV for skill_type,skill_rating from Lookup table,
    And mapped those LOV to resource_no,skill_type,skill_rating on insert page.
    For track_id I have converted inputtextBox to SelectinputText to create databound LOV which will popup a window that contain master detail for track_table and module_table which shows all track_names in master and corresponding module_names in detail table, and on that window I have select button when we click that button selected track_id and selected module_id will get populated to insert skill page in track_id selectinputtextbox and module_Id inpiuttextbox.
    Now what I want is that instead of track_id and module_id populated on insert page coz these are of id's actually and we want to show values of these id's from other tables, I need to show selected track_name and module_name over on insert page.
    Not getting any idea how to do that???
    Plz help.

  • How to select record like A?

    Hi,
    I want to select the records like "one letter + non alphabetic characters" from a table. For example: A!, B??, D2, F%5 etc.
    What is the right SQL for those kind of records. I think, I should use regular expression but i couldn't find the right one. I'll be appreciated if you can send the sql statement.
    Thanks
    Seher

    I want to select the records like "one letter + non alphabetic characters" from a table. Maybe something like:
    SQL> WITH test_tab AS
      2       (SELECT 'A!' col_1 FROM DUAL
      3        UNION ALL
      4        SELECT 'A?$#' FROM DUAL
      5        UNION ALL
      6        SELECT 'AB&' FROM DUAL
      7        UNION ALL
      8        SELECT 'A123' FROM DUAL
      9        UNION ALL
    10        SELECT '123' FROM DUAL)
    11        -- end test_data
    12  SELECT col_1
    13    FROM test_tab
    14  /
    COL_
    A!
    A?$#
    AB&  -- Discard because second letter is an alphabet
    A123
    123  -- Discard because first letter is a digit
    5 rows selected.
    SQL> WITH test_tab AS
      2       (SELECT 'A!' col_1 FROM DUAL
      3        UNION ALL
      4        SELECT 'A?$#' FROM DUAL
      5        UNION ALL
      6        SELECT 'AB&' FROM DUAL
      7        UNION ALL
      8        SELECT 'A123' FROM DUAL
      9        UNION ALL
    10        SELECT '123' FROM DUAL)
    11        -- end test_data
    12  SELECT col_1
    13    FROM test_tab
    14   WHERE REGEXP_LIKE (col_1, '^[[:alpha:]][^[:alpha:]]')
    15  /
    COL_
    A!
    A?$#
    A123
    3 rows selected.
    SQL> Regards,
    Jo
    Edit: Changed Query. Thanks to Sean... ;)
    Edit: Removed '*$' from query. Thanks again to Sean... !http://www.mysmiley.net/imgs/smile/angel/angelnot.gif!
    Sigh... I think I need to have more practice on these.

  • How do I record Skype calls using CS4 Soundbooth?

    Hello All,
    I'd like to use CS4 Soundbooth to record my Skype calls for a podcast.  How do I do that?  If anybody can help me out, I would be very grateful.  Thanks!

    Which model call phone are you using? If you are a Windows Mobile user, then it will become an easy job. The software ----wm sound recorder can help you to record calls and sms. Then you can record your calls easily.
    Maybe you can have a look at :http://www.wmsoundrecorder.com/index.html
    Hope help~

Maybe you are looking for

  • How to edit PO_STANDARD_XSLFO.xsl

    How to edit PO_STANDARD_XSLFO.xsl. this is EBS12.04 purchse order seeded report. i want to edit its some of contents. Edited by: fassi on Nov 12, 2008 3:09 AM

  • Help with Webservice to CRM scenario

    Hey guys i have a scenario in which users will buy some atricles through a website(shopping cart) and that info has to be posted to a CRM system.its an async scenario do i need to know about BDOC's too or only knowledge of IDOC should be ok. i m deve

  • Update on download error.

    It seems to just be whenever I go from a browser link to the quicktime page itself. After I get to the Quicktime page, I can navigate off of it to other Apple pages... including the Downloads page. Quicktime DOES seem to download from there, but it i

  • Capturing the POST RESULTS function

    Hi all, Firstly, I have posted this question before some time ago, so I apologies to those that recognise it.  I am hoping that after more people have had a go with Captivate 5 a solution to my question might be out there! What I want to do is captur

  • Error when updating and restoring iPhone6

    An error #53 occurred when updating my new iphone6.  now it won't update/restore.  It is locked at the iTunes plug in screen.