<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem using ALV Grid Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841086#M357443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the message is bcos of the value stored from &lt;/P&gt;&lt;P&gt;CALL METHOD alv_grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    ET_INDEX_ROWS = &amp;lt;b&amp;gt;G_INDEX_ROW&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u dont clear this value then it assumes u have selected multiple records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it doesn't solve ur problem pls paste part of ur code so we can able to help u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;CNU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2007 15:22:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-11T15:22:38Z</dc:date>
    <item>
      <title>Problem using ALV Grid Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841085#M357442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a wierd situation while using the ALV Grid Control. I would appriciate if anybody help me as it is bit urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is as below:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ALV Grid Control with ten thousand records and at a time, one can see only 10 records. So, if anybody has to see any record more than 10, he has press the PAGE DOWN or scroll down by using the vertical scroll bar to go to that particular record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any time, the user can select only ONE record at any time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application toolbar, which has 4 buttons  which does some operations based on the record selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following the problem I am facing:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have selected more than one row (suppose record 1,2 and 3) and clicked one button on the application toolbar and it is giving an error message "Please select only ONE record" of type 'E'. This functionality is absolutely correct and I dont have any problem. Now, after clicking the okay button on the error message dialog, if I click the page down or the vertical scroll bar to go to record 2000, it is giving the same error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I need to go to 2000 record, I may need to press the Page down button a couple of times (even same is the case with the vertical scroll bar), I am getting the same error message "Please select only ONE record".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know what is the relation between the Page down button and the button I have clicked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked whether I have used the same shortcut key of Page down button for the button on the application toolbar. But both are having two differnt shortket keys in the GUI Status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have even cleared the OK_CODE value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have kept a breakpoint near the error message and then tried clicking the vertical scroll bar (or pressing the page down button), but the control never goes there. The control goes to PAI, but then what ever button I press, be it F5, F6, F7 or F8, it displays the error message and show the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please help me out. This is very very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 15:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841085#M357442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T15:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using ALV Grid Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841086#M357443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the message is bcos of the value stored from &lt;/P&gt;&lt;P&gt;CALL METHOD alv_grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    ET_INDEX_ROWS = &amp;lt;b&amp;gt;G_INDEX_ROW&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u dont clear this value then it assumes u have selected multiple records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it doesn't solve ur problem pls paste part of ur code so we can able to help u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;CNU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 15:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841086#M357443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T15:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using ALV Grid Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841087#M357444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; In which event are you validating the checkboxes ? if possible please paste your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        varaprasad bhagavatula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 15:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841087#M357444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T15:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using ALV Grid Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841088#M357445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the clearing of GS_INDEX value really doesnt help me as the value woud be not be stored. I have used a local structure inside a PAI form for capturing the selected rows. So, once the control comes out of the form, the strucuture no longer exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, I have pasting the code. Fist is the PBO module, where I am displaying the ALV Grid Control. Second is the PAI Module where I am handling the error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************************************&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT&lt;/P&gt;&lt;P&gt;*********************************************************************************************&lt;/P&gt;&lt;P&gt;Form PBO_DISPLAY_MATCH_RECORDS.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local structure declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    ls_row_id            TYPE lvc_s_roid,                                                " row id&lt;/P&gt;&lt;P&gt;    ls_layout            TYPE lvc_s_layo,                                      " Layout Structure&lt;/P&gt;&lt;P&gt;    ls_variant           TYPE disvariant.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local Internal table declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    lt_row_id            TYPE lvc_t_roid,                                                " Row Index&lt;/P&gt;&lt;P&gt;    lt_fcat              TYPE lvc_t_fcat,                                      " Fieldcatalog&lt;/P&gt;&lt;P&gt;    lt_exclude           TYPE ui_functions.                                    " ALV Toolbar User&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  IF gp_match_alv IS NOT BOUND.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create the match Details Container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT gp_match_cont&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        container_name              = c_reversal_contain                       " MATCH_REV_CONT&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        cntl_error                  = 1&lt;/P&gt;&lt;P&gt;        cntl_system_error           = 2&lt;/P&gt;&lt;P&gt;        create_error                = 3&lt;/P&gt;&lt;P&gt;        lifetime_error              = 4&lt;/P&gt;&lt;P&gt;        lifetime_dynpro_dynpro_link = 5&lt;/P&gt;&lt;P&gt;        OTHERS                      = 6.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the container object is not created, then raise an error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_TO_INFORM'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          titel = space&lt;/P&gt;&lt;P&gt;          txt2  = sy-subrc&lt;/P&gt;&lt;P&gt;          txt1  = text-101.                                                                    " The control could not be created&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create match Details ALV Grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT gp_match_alv&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_parent          = gp_match_cont&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        error_cntl_create = 1&lt;/P&gt;&lt;P&gt;        error_cntl_init   = 2&lt;/P&gt;&lt;P&gt;        error_cntl_link   = 3&lt;/P&gt;&lt;P&gt;        error_dp_create   = 4&lt;/P&gt;&lt;P&gt;        OTHERS            = 5.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the ALV object is not created, then raise an error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_TO_INFORM'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          titel = space&lt;/P&gt;&lt;P&gt;          txt2  = sy-subrc&lt;/P&gt;&lt;P&gt;          txt1  = text-101.                                                    " The control could not be created&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build the field catalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    REFRESH lt_fcat.&lt;/P&gt;&lt;P&gt;    PERFORM build_match_fcatalog CHANGING lt_fcat.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Subloan Charges Layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ls_layout-zebra        = c_x.                                              " X&lt;/P&gt;&lt;P&gt;    ls_layout-no_rowmark   = c_x.                                              " X&lt;/P&gt;&lt;P&gt;    ls_layout-cwidth_opt   = c_x.                                              " X&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Register the Events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF gp_handler IS INITIAL.&lt;/P&gt;&lt;P&gt;      CREATE OBJECT gp_handler.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Remove Insert, delete, edit etc buttons from ALV Toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM remove_alv_toolbar_icons CHANGING lt_exclude.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    MOVE sy-repid TO ls_variant-report.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display Match alv&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD gp_match_alv-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        is_variant                    = ls_variant&lt;/P&gt;&lt;P&gt;        is_layout                     = ls_layout&lt;/P&gt;&lt;P&gt;        it_toolbar_excluding          = lt_exclude&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_outtab                     = gt_matchfund&lt;/P&gt;&lt;P&gt;        it_fieldcatalog               = lt_fcat&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;        program_error                 = 2&lt;/P&gt;&lt;P&gt;        too_many_lines                = 3&lt;/P&gt;&lt;P&gt;        OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the ALV Cannot be displayed, raise an error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_TO_INFORM'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          titel = space&lt;/P&gt;&lt;P&gt;          txt2  = sy-subrc&lt;/P&gt;&lt;P&gt;          txt1  = text-102.                                                    " Creation of ALV Grid failed "&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Refresh the Category ALV Grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD gp_match_alv-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************************************&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT&lt;/P&gt;&lt;P&gt;*********************************************************************************************&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Form Pai_Validate_match_Records.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local Variable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    lv_lines                 TYPE i.                                                           " Number of Lines&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local Structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    ls_row                   TYPE lvc_s_roid.                                                 " Row Number&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;     lt_row                   TYPE lvc_t_roid.                                                  " Row Number&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  lv_f_code = gv_ok_code.&lt;/P&gt;&lt;P&gt;  CLEAR gv_ok_code.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the selected Records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD lp_alv-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;       et_row_no     = lt_row.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Number of Selected Match records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DESCRIBE TABLE lt_row LINES lv_lines.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the no match records are selected, then give an error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF lv_lines EQ 0.&lt;/P&gt;&lt;P&gt;	Message 'Select a match record' type 'E'.&lt;/P&gt;&lt;P&gt;  elseif lv_lines gt 1.&lt;/P&gt;&lt;P&gt;	Message 'Select only One Match Record' type 'E'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    case LV_F_CODE.&lt;/P&gt;&lt;P&gt;	.&lt;/P&gt;&lt;P&gt;	.&lt;/P&gt;&lt;P&gt;	.&lt;/P&gt;&lt;P&gt;	.&lt;/P&gt;&lt;P&gt;	.&lt;/P&gt;&lt;P&gt;	.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;EndForm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 16:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841088#M357445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T16:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using ALV Grid Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841089#M357446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try moving the CASE LV_F_CODE statement above the describe table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes are marked in bold..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form Pai_Validate_match_Records.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local Variable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;lv_lines TYPE i. " Number of Lines&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local Structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;ls_row TYPE lvc_s_roid. " Row Number&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;lt_row TYPE lvc_t_roid. " Row Number&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;lv_f_code = gv_ok_code.&lt;/P&gt;&lt;P&gt;CLEAR gv_ok_code.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;case LV_F_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WHEN 'ANOTHER BUTTON IN THE APPLICATION TOOLBAR IS PRESSED'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the selected Records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD lp_alv-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;et_row_no = lt_row.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Number of Selected Match records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DESCRIBE TABLE lt_row LINES lv_lines.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the no match records are selected, then give an error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF lv_lines EQ 0.&lt;/P&gt;&lt;P&gt;Message 'Select a match record' type 'E'.&lt;/P&gt;&lt;P&gt;elseif lv_lines gt 1.&lt;/P&gt;&lt;P&gt;Message 'Select only One Match Record' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WHEN 'PAGE DOWN IS PRESSED'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WHEN 'PAGE UP IS PRESSED'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EndForm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 16:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841089#M357446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T16:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using ALV Grid Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841090#M357447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move the case statement b4 getting the rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE LV_F_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh lt_row.&lt;/P&gt;&lt;P&gt;clear lv_lines.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the selected Records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD lp_alv-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;et_row_no = lt_row.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Number of Selected Match records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DESCRIBE TABLE lt_row LINES lv_lines.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the no match records are selected, then give an error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF lv_lines EQ 0.&lt;/P&gt;&lt;P&gt;Message 'Select a match record' type 'E'.&lt;/P&gt;&lt;P&gt;elseif lv_lines gt 1.&lt;/P&gt;&lt;P&gt;Message 'Select only One Match Record' type 'E'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;DO THE OPERATION OF UR EVENT BUTTON.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;CNU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 16:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841090#M357447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T16:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using ALV Grid Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841091#M357448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narendran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont understand what is the user of moving the LV_F_CODE ahead. I have not declared any status for Page Up or Page Down. Then why is the control going to PAI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I have pressing any buttons (page up or page down). I am clicking the Vertical scroll bar. but still i am having the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 17:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841091#M357448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T17:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using ALV Grid Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841092#M357449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since in your code you are doing the describe table and giving the error message irrespective of what the function code is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the reason I moved the code inside the function code where you have to check if only row is selected..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* Get the selected Records&lt;/P&gt;&lt;P&gt;CALL METHOD lp_alv-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;et_row_no = lt_row.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Number of Selected Match records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DESCRIBE TABLE lt_row LINES lv_lines.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the no match records are selected, then give an error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF lv_lines EQ 0.&lt;/P&gt;&lt;P&gt;Message 'Select a match record' type 'E'.&lt;/P&gt;&lt;P&gt;elseif lv_lines gt 1.&lt;/P&gt;&lt;P&gt;Message 'Select only One Match Record' type 'E'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841092#M357449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using ALV Grid Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841093#M357450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever find out why your message was being displayed multiple times while scrolling down?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having the same problem, which seems to be a problem with the ALV scrolling functionality and not with my code.  My "s" message at the bottom of the screen keeps dinging and flashing while I scroll down through hundreds of records.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 19:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-alv-grid-control/m-p/1841093#M357450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T19:42:52Z</dc:date>
    </item>
  </channel>
</rss>

