<?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 Regarding pushbutton operation in alv report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-pushbutton-operation-in-alv-report/m-p/5115566#M1186605</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 have a requiement in which i will get list display which contains certain no of records(let us say 10  records)...now the issue is *&lt;STRONG&gt;if i selet one record and if it is correct record&lt;/STRONG&gt;* and if i hit the insert pushbutton it should go and insert into z-table which i hav created.....and if the record which i hav selected is error record.....it should throw an error message saying that it is the error record....as error record stops further process i hav used it as information message and i used 'display like 'E''....so that it wont affect further proceedings.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if i select the 2nd record and if i hit the pushbutton it is taking to the sap initial screen which i dont want .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to solve this issue?&lt;/P&gt;&lt;P&gt;can anyone plz help me in this issue....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2009 07:35:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-05T07:35:50Z</dc:date>
    <item>
      <title>Regarding pushbutton operation in alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-pushbutton-operation-in-alv-report/m-p/5115566#M1186605</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 have a requiement in which i will get list display which contains certain no of records(let us say 10  records)...now the issue is *&lt;STRONG&gt;if i selet one record and if it is correct record&lt;/STRONG&gt;* and if i hit the insert pushbutton it should go and insert into z-table which i hav created.....and if the record which i hav selected is error record.....it should throw an error message saying that it is the error record....as error record stops further process i hav used it as information message and i used 'display like 'E''....so that it wont affect further proceedings.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if i select the 2nd record and if i hit the pushbutton it is taking to the sap initial screen which i dont want .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to solve this issue?&lt;/P&gt;&lt;P&gt;can anyone plz help me in this issue....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 07:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-pushbutton-operation-in-alv-report/m-p/5115566#M1186605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T07:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding pushbutton operation in alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-pushbutton-operation-in-alv-report/m-p/5115567#M1186606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;copy the standard alv pf-status to z.&lt;/P&gt;&lt;P&gt;and create a push button in z pf status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then write the logic in your code&lt;/P&gt;&lt;P&gt;  CASE r_ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'PUSH'.&lt;/P&gt;&lt;P&gt;your logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to copy  standard alv pf status.&lt;/P&gt;&lt;P&gt;go to program&lt;/P&gt;&lt;P&gt;BCALV_TEST_FULLSCREEN&lt;/P&gt;&lt;P&gt;double click on pf status set pf-status 'STANDARD' excluding rt_extab. in to code&lt;/P&gt;&lt;P&gt;then choose other object button then copy button in the pop up&lt;/P&gt;&lt;P&gt;then give your program name and pf status name&lt;/P&gt;&lt;P&gt;Edited by: abap on Feb 5, 2009 8:39 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abap on Feb 5, 2009 8:41 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 07:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-pushbutton-operation-in-alv-report/m-p/5115567#M1186606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding pushbutton operation in alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-pushbutton-operation-in-alv-report/m-p/5115568#M1186607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Needy ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  M giving you a sample code where you can set your pf-status and how to handle the check box etc .&lt;/P&gt;&lt;P&gt;This code shows you hoe to select and deselect the check boxes ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that you have to do is apply your logic...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; set pf-status 'SELECT' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at user-command .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table t_lpr lines w_lines .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  case sy-ucomm .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when 'SELECTALL' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      set pf-status 'SELECT' excluding 'SELECTALL' immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      do w_lines times .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        read line w_line field value w_check . " INTO W_CHECK .&lt;/P&gt;&lt;P&gt;        if w_check = space .&lt;/P&gt;&lt;P&gt;          w_check = 'X' .&lt;/P&gt;&lt;P&gt;          modify line w_line field value w_check.    "INTO W_CHECK .&lt;/P&gt;&lt;P&gt;          add 1 to w_line .&lt;/P&gt;&lt;P&gt;        endif .                        " IF W_CHECK = ' '&lt;/P&gt;&lt;P&gt;      enddo .                          " DO W_LINES TIMES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear w_line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when 'DESELECT' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      set pf-status 'SELECT' excluding 'DESELECT' immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      do w_lines times .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        read line w_line field value w_check .&lt;/P&gt;&lt;P&gt;        if w_check = 'X' .&lt;/P&gt;&lt;P&gt;          w_check = space .&lt;/P&gt;&lt;P&gt;          modify line w_line field value w_check .&lt;/P&gt;&lt;P&gt;          add 1 to w_line .&lt;/P&gt;&lt;P&gt;        endif .                        " IF W_CHECK = 'X' .&lt;/P&gt;&lt;P&gt;      enddo .                          " DO W_LINES TIMES&lt;/P&gt;&lt;P&gt;      clear w_line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Here w_line : Line that is being read &lt;/P&gt;&lt;P&gt;             w_lines : Total number of lines in your table(or list if you use 'list number of lines w_lines)&lt;/P&gt;&lt;P&gt;            w_check is my checkbox .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your need will be done!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much Regards ,&lt;/P&gt;&lt;P&gt;Amuktha .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 08:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-pushbutton-operation-in-alv-report/m-p/5115568#M1186607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T08:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding pushbutton operation in alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-pushbutton-operation-in-alv-report/m-p/5115569#M1186608</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;Cretae a push button on the application tool bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the alv output have a check box for each and every record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u check the check box and press the push button u write the belwo code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM USER_COMMAND                                          *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      --&amp;gt; R_UCOMM                                                *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      --&amp;gt; RS_SELFIELD                                            *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING lv_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                  rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH : git_final2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_grid = gv_ref1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD gv_ref1-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check function code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CASE lv_ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;PUSH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO gwa_itab WHERE check = gc_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now insert ur record to the anothe internal table (itab1)having ur ztable structure..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab1[] is not initial.&lt;/P&gt;&lt;P&gt;modify ztable from table itab1.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 09:03:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-pushbutton-operation-in-alv-report/m-p/5115569#M1186608</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-02-05T09:03:05Z</dc:date>
    </item>
  </channel>
</rss>

