<?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 Checkbox in dialog program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381175#M1042286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the screen , i want to use checkbox. But at runtime when i click on the checkbox , it does not appear as checked. The tick mark on this checkbox disappears. And if i want to code something when this checkbox is clicked , then if i do it as:&lt;/P&gt;&lt;P&gt;write MODULE CHECK in the PAI and then write case sy-ucomm . is it OK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Aug 2008 11:04:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-30T11:04:40Z</dc:date>
    <item>
      <title>Checkbox in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381175#M1042286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the screen , i want to use checkbox. But at runtime when i click on the checkbox , it does not appear as checked. The tick mark on this checkbox disappears. And if i want to code something when this checkbox is clicked , then if i do it as:&lt;/P&gt;&lt;P&gt;write MODULE CHECK in the PAI and then write case sy-ucomm . is it OK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2008 11:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381175#M1042286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-30T11:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381176#M1042287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi priti suryawanshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Design ur screen using screen painter (Tcode SE51)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then put check box in the screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign Function Code for that checkbox from the properties of the checkbox..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets Function code for check box is 'CHK'  and Screen no is 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in Flow logic for the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write a code like in MODULE USER_COMMAND_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CASE SY-UCOMM.
WHEN 'CHK'. " here CHK is the Function code for check box and it's case sensitive so mst be in upper case...
MESSAGE 'check box clicked' TYPE 'I'.
*Write your logic here...
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate Screen and whole program and then execute it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2008 11:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381176#M1042287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-30T11:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381177#M1042288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done all this . But when i click on the checkbox it does not remain clicked. The tickmark disappears.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2008 12:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381177#M1042288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-30T12:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381178#M1042289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you declare the field in your program which you assigned it as checkbox in the screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it will always be initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a Global variable , and use it in your screen design while creating the checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2008 16:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381178#M1042289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-30T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381179#M1042290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi priti suryawanshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use below code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : CHEK1 TYPE C. " here CHEK1 is same as the name property of Check box in screen painter...

MODULE USER_COMMAND_0100 INPUT.
  CASE SY-UCOMM.
    WHEN 'CHK'. " here CHK is the Function code for check box and it's case sensitive so mst be in upper case...
      MESSAGE 'check box clicked' TYPE 'I'.

*Write your logic here...

      SCREEN-INPUT = 1.
      

CHEK1 = 'X'. " ==&amp;gt; To Keep the checkbox ticked... Use this as and when u require 
*      CHEK1 = 'X' ==&amp;gt; For Ticked Checkbox &amp;amp; CHEK1 = SPACE ==&amp;gt; For Unticked Checkbox
      
MODIFY SCREEN.

      WHEN 'EXIT'.
        LEAVE PROGRAM.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt; u can design your &lt;STRONG&gt;selection screen&lt;/STRONG&gt; and call it as a &lt;STRONG&gt;subscreen&lt;/STRONG&gt; in your modulepool screen and you can achieve it... As I am not getting ny propery for checkbox to be ticked in screen painter properties...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upper code shows the logic u need to apply as and when it's required... user X or SPACE value as per your need...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 04:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checkbox-in-dialog-program/m-p/4381179#M1042290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T04:39:42Z</dc:date>
    </item>
  </channel>
</rss>

