<?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 Adding check box in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823585#M351698</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;I have to add a check box to the previous report, I need to fetch the data based on the checkbox. Please tell me how to proceed further with flag set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2007 07:36:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-22T07:36:58Z</dc:date>
    <item>
      <title>Adding check box in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823585#M351698</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;I have to add a check box to the previous report, I need to fetch the data based on the checkbox. Please tell me how to proceed further with flag set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 07:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823585#M351698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T07:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding check box in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823586#M351699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add two fields to my report based on the check box on the selection screen, Can any one help me how to do it. Or any sample program which helps me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 08:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823586#M351699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding check box in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823587#M351700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Line,&lt;/P&gt;&lt;P&gt;For this you need to use LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the Event AT SELECTION-SCREEN OUTPUT event, you need to write this coe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF CHECK_BOX = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SCREEN-GROUP1 = 'SC1'.&lt;/P&gt;&lt;P&gt;    SCREEN-INPUT = '1'.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the link below&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/change-the-input-fields-dynamically-in-a-screen.htm" target="test_blank"&gt;http://www.sap-img.com/abap/change-the-input-fields-dynamically-in-a-screen.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 08:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823587#M351700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T08:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding check box in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823588#M351701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if ui want to add check box&lt;/P&gt;&lt;P&gt;there is a command&lt;/P&gt;&lt;P&gt;data: chk_1 as checkbox.&lt;/P&gt;&lt;P&gt;use this command&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;see u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 08:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823588#M351701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T08:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding check box in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823589#M351702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare 2 fields in select-options with no-display mode. then based on ur check box selection...&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF CHECK_BOX = 'X'.&lt;/P&gt;&lt;P&gt;IF SCREEN-GROUP1 = 'SC1'.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = '1'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF SCREEN-GROUP1 = 'SC2'.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = '1'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check below....&lt;/P&gt;&lt;P&gt;Change the Input Fields Dynamically in a Screen &lt;/P&gt;&lt;P&gt;ABAP Dialog Programming Questions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to change the input fields dynamically in a screen which consists of 9 text fields? &lt;/P&gt;&lt;P&gt;Moreover the user must not enter values in some of the input fields where the values are given. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.If you want to change the input fields on some user input then use 'user-command ac' after the field on which you want the action. &lt;/P&gt;&lt;P&gt;2.Specify the modif id 'xxx' for each screen object. &lt;/P&gt;&lt;P&gt;3.Then in the event 'AT SELECTION-SCREEN ON OUTPUT' loop at screen. check the screen-group1(modif id ) of screen objects and change the status of the object. &lt;/P&gt;&lt;P&gt;4.You can view all the screen attribute from se11. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following example may help you: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK 001. &lt;/P&gt;&lt;P&gt;PARAMETERS: P_MRU  RADIOBUTTON GROUP SEL DEFAULT 'X' USER-COMMAND AC, &lt;/P&gt;&lt;P&gt;            P_PART RADIOBUTTON GROUP SEL. &lt;/P&gt;&lt;P&gt;    SELECT-OPTIONS P1 FOR &amp;lt;field&amp;gt; MODIF ID PRT. &lt;/P&gt;&lt;P&gt;    SELECT-OPTIONS G1 FOR &amp;lt;field&amp;gt;  MODIF ID MRU. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK 001. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT. &lt;/P&gt;&lt;P&gt;LOOP AT SCREEN. &lt;/P&gt;&lt;P&gt;  IF P_MRU = 'X'. &lt;/P&gt;&lt;P&gt;      IF SCREEN-GROUP1 = 'PRT'. &lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = '0'. &lt;/P&gt;&lt;P&gt;      ENDIF. &lt;/P&gt;&lt;P&gt;      IF SCREEN-GROUP1 = 'MRU'. &lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = '1'. &lt;/P&gt;&lt;P&gt;      ENDIF. &lt;/P&gt;&lt;P&gt;  ELSEIF P_PART = 'X'. &lt;/P&gt;&lt;P&gt;     IF SCREEN-GROUP1 = 'MRU'. &lt;/P&gt;&lt;P&gt;       SCREEN-INPUT = '0'. &lt;/P&gt;&lt;P&gt;     ENDIF. &lt;/P&gt;&lt;P&gt;     IF SCREEN-GROUP1 = 'PRT'. &lt;/P&gt;&lt;P&gt;       SCREEN-INPUT = '1'. &lt;/P&gt;&lt;P&gt;     ENDIF. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;  MODIFY SCREEN. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 08:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823589#M351702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T08:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding check box in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823590#M351703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zforum12.

parameters : p_matnr like mara-matnr.
parameters : cb as checkbox user-command r .


selection-screen begin of block b1 with frame.
parameters : p_werks like marc-werks modif id abc,
             p_lgort like mard-lgort modif id abc.
selection-screen end of block b1.

at selection-screen output.
if cb ne ' '.
loop at screen.
if screen-group1 = 'ABC'.
screen-active = '1'.
modify screen.
endif.
endloop.


elseif cb eq ' '.

loop at screen.
if screen-group1 = 'ABC'.
screen-active = '0'.
modify screen.
endif.
endloop.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please elaborate the query  with data reference incase if the logic is not meeting your requirement.&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 08:26:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823590#M351703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T08:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding check box in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823591#M351704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;1) do u want this? if checkbox is not checked then no data is read from database and if checked then only data wil be fetched - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables pa0001.&lt;/P&gt;&lt;P&gt;parameters p_check as checkbox.&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0.&lt;/P&gt;&lt;P&gt; include structure pa0001.&lt;/P&gt;&lt;P&gt;data end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if p_check = 'X'.&lt;/P&gt;&lt;P&gt; perform read_data.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if itab[] is not initial.&lt;/P&gt;&lt;P&gt; loop at itab.&lt;/P&gt;&lt;P&gt; write:/ itab-pernr.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt; write: 'No data fetched from database,may be u need to check the Checkbox'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  read_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      text&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;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&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 read_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from pa0001 into table itab up to 20 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " read_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Adding fields based on Chekbox - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_check AS CHECKBOX  MODIF ID ABC USER-COMMAND CH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_pernr like pa0001-pernr modif ID ABD,&lt;/P&gt;&lt;P&gt;            P_DATE LIKE PA0001-BEGDA MODIF ID ABD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check sy-ucomm = 'CH'.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if p_CHECK = 'X'.&lt;/P&gt;&lt;P&gt;   if screen-group1 = 'ABD'.&lt;/P&gt;&lt;P&gt;      SCREEN-ACTIVE = '1'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  if screen-group1 = 'ABD'.&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; ENDIF.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 08:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823591#M351704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T08:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding check box in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823592#M351705</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;In selection screen write as below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters : cb_box as checkbox.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;START-OF-SELECTION.

IF cb_box = 'X'.
 perform get_data.
ELSE.
 perform get_data2.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In get data you can use an internal table without those two fields and in the get_data2 u can have the two fields in teh different internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else while dispalying &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF cb_box = 'X'.
WRITE:/ itab-matnr,
             itab-matkl,
             itab-posnr.
ELSE.
WRITE:/ itab-posnr.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem.&lt;/P&gt;&lt;P&gt;Please reward points for those who have answered for ur query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 09:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-check-box-in-selection-screen/m-p/1823592#M351705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T09:57:38Z</dc:date>
    </item>
  </channel>
</rss>

