<?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 ALV - Problem with checkbox. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem-with-checkbox/m-p/7165422#M1516446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an ALV Grid Control and have one column as a check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i tick one checkbox in a line item i pop up a message saying "Do you wish to continue".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects NO then i automatically want to deselect the checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried clearing the work area of the internal table in the data change event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the alv is refreshed the checkbox is still ticked.What should be done to avoid this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is freeing the custom container and creating it again everytime the user selects NO  a good option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Aug 2010 05:28:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-12T05:28:19Z</dc:date>
    <item>
      <title>ALV - Problem with checkbox.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem-with-checkbox/m-p/7165422#M1516446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an ALV Grid Control and have one column as a check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i tick one checkbox in a line item i pop up a message saying "Do you wish to continue".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects NO then i automatically want to deselect the checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried clearing the work area of the internal table in the data change event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the alv is refreshed the checkbox is still ticked.What should be done to avoid this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is freeing the custom container and creating it again everytime the user selects NO  a good option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 05:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem-with-checkbox/m-p/7165422#M1516446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T05:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Problem with checkbox.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem-with-checkbox/m-p/7165423#M1516447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ALV you put check box like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
X_FIELDCAT-FIELDNAME = 'CHK'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 1.
X_FIELDCAT-INPUT = 'X'.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-CHECKBOX = 'X'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.



in between you put logic 

 IF CHK = 'X' 
*---popup_to_continue_yes_no
    PERFORM POPUP_TO_CONT_YES_NO.
endif.


FORM POPUP_TO_CONT_YES_NO .
  CALL FUNCTION 'POPUP_CONTINUE_YES_NO'
    EXPORTING
      TEXTLINE1 = 'Click OK to leave program'
      TITEL     = 'POPUP_CONTINUE_YES_NO'
    IMPORTING
      ANSWER    = ANS.
  IF ANS = 'J'.
    LEAVE PROGRAM.
  ENDIF.
ENDFORM.                    " POPUP_TO_CONT_YES_NO

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 05:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem-with-checkbox/m-p/7165423#M1516447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T05:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Problem with checkbox.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem-with-checkbox/m-p/7165424#M1516448</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 refresing the field using slis_selfield-refresh = 'x'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 05:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem-with-checkbox/m-p/7165424#M1516448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T05:44:44Z</dc:date>
    </item>
  </channel>
</rss>

