<?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: Adding checkbox on screen dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141664#M451213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If its a screen that you are adding the checkbox to, you can select whether to hide/unhide your checkbox in the PBO as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT screen.&lt;/P&gt;&lt;P&gt;IF screen-name = 'CHK1'.&lt;/P&gt;&lt;P&gt;screen-invisible = 0.&lt;/P&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To enable the checkbox, just reverse the values to 1.&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;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2007 15:42:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-13T15:42:13Z</dc:date>
    <item>
      <title>Adding checkbox on screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141662#M451211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we add checkbox on to a screen dynamically. please send me some details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;samm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 15:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141662#M451211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T15:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding checkbox on screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141663#M451212</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;are you trying to use checkbox in the Abap List?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For creating checbox, you can use &lt;/P&gt;&lt;P&gt;the write addition "as checkbox".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do 5 times&lt;/P&gt;&lt;P&gt;WRITE:/ FLAG AS CHECKBOX INPUT OFF.&lt;/P&gt;&lt;P&gt;WRITE:/ FLAG_on AS CHECKBOX INPUT ON.&lt;/P&gt;&lt;P&gt;enddo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 15:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141663#M451212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T15:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding checkbox on screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141664#M451213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If its a screen that you are adding the checkbox to, you can select whether to hide/unhide your checkbox in the PBO as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT screen.&lt;/P&gt;&lt;P&gt;IF screen-name = 'CHK1'.&lt;/P&gt;&lt;P&gt;screen-invisible = 0.&lt;/P&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To enable the checkbox, just reverse the values to 1.&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;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 15:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141664#M451213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T15:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding checkbox on screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141665#M451214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please give me some more inputs since i am not getting any check box on the screen after i used your codes in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Samm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 10:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141665#M451214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T10:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding checkbox on screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141666#M451215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Try this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Us say u have a Check box on selection screen p_cbox , if user selects this u want Check box ( for selection ) to appear in the output list ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While Setting the layout parameters for the Output you can use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA  g_r_layo1      TYPE   lvc_s_layo ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM alv_layo1.&lt;/P&gt;&lt;P&gt;  g_r_layo1-grid_title    =  'SD Delivery Note(Printed)'.&lt;/P&gt;&lt;P&gt;  g_r_layo1-cwidth_opt  =  g_c_mark.&lt;/P&gt;&lt;P&gt;  g_r_layo1-zebra       =  g_c_mark.&lt;/P&gt;&lt;P&gt;  g_r_layo1-no_rowmark  =  space.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IF ALready Printed Delivery to be printed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF p_cbox             =  'X'.&lt;/P&gt;&lt;P&gt;    g_r_layo1-sel_mode  =  g_c_selmode.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " alv_layo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_r_layo1-sel_mode   will get u the check box ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for classes ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 11:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141666#M451215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding checkbox on screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141667#M451216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code suggesed by Sudha, just add the statement MODIFY SCREEN before the ENDLOOP and it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if the name of your checkbox is CHK1 then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to hide the checkbox&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME EQ 'CHK1'.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = '0'.&lt;/P&gt;&lt;P&gt;SCREEN-INVISIBLE = '1'.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = '0'.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And inverse values for input/active and invisible when u want to display the checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Aditya Laud&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 12:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-checkbox-on-screen-dynamically/m-p/2141667#M451216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T12:54:12Z</dc:date>
    </item>
  </channel>
</rss>

