<?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: Loop at screen wit h checkbox in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415961#M820445</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;Basically, when you select/deselect the checkbox, the PBO of the selection screen (AT SELECTION-SCREEN OUTPUT event) needs to be called again, so that that modify screen command works , for this fo the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_dl AS CHECKBOX &lt;STRONG&gt;USER-COMMAND one&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aditya Laud on Feb 20, 2008 2:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 07:45:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T07:45:14Z</dc:date>
    <item>
      <title>Loop at screen wit h checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415960#M820444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;selection-screen : begin of block b1.&lt;/P&gt;&lt;P&gt;parameters : p_dl as checkbox ,&lt;/P&gt;&lt;P&gt;         p_file type rlgrap-filename modif id FIL.&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement here is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having two selection screen parameters &lt;/P&gt;&lt;P&gt;1. Check box for download 2. File .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i didnt select the checkbox it should disable.&lt;/P&gt;&lt;P&gt;If i check the checkbox, the file parameter should enable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after execution the file field is disable ,but in the selection screen when i select the check box, it is not enable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will anybody try the code in your sys and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : end of block b1.&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;if p_dl = 'X'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if screen-group1 = 'FIL'.&lt;/P&gt;&lt;P&gt;screen-input = '1'.&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;else.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'FIL'.&lt;/P&gt;&lt;P&gt;screen-input = '0'.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;its urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 07:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415960#M820444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T07:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen wit h checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415961#M820445</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;Basically, when you select/deselect the checkbox, the PBO of the selection screen (AT SELECTION-SCREEN OUTPUT event) needs to be called again, so that that modify screen command works , for this fo the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_dl AS CHECKBOX &lt;STRONG&gt;USER-COMMAND one&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aditya Laud on Feb 20, 2008 2:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 07:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415961#M820445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T07:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen wit h checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415962#M820446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
Check below example:
&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_dl AS CHECKBOX USER-COMMAND abc,
            p_file TYPE localfile.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-name CP '*P_FILE*'.
      IF p_dl IS INITIAL.
        screen-active = 0.     " File Parameter Invisible
      ELSE.
        screen-active = 1.     " File Parameter Visible
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 07:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415962#M820446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T07:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen wit h checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415963#M820447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi eswar ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood it should decalre with usercommand.&lt;/P&gt;&lt;P&gt;but where are you checking the user command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_dl AS CHECKBOX USER-COMMAND abc,&lt;/P&gt;&lt;P&gt;            p_file TYPE localfile.&lt;/P&gt;&lt;P&gt; &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 screen-name CP '&lt;STRONG&gt;P_FILE&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF p_dl =  abc .&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;  screen-active = 1.     " File Parameter Invisible&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        screen-active = 0.     " File Parameter Visible&lt;/P&gt;&lt;P&gt;      ENDIF.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 07:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415963#M820447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T07:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen wit h checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415964#M820448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
Hi,
The USER-COMMAND addition triggers the AT SELECTION-SCREEN OUTPUT event. If we dont use the addition, you have to use ENTER key each time you change the value of Check Box.

Note that USER-COMMAND Addition can only be used for CHECK BOX or RADIOBUTTON.

Also see below extract from help:

&lt;STRONG&gt;... USER-COMMAND ucom&lt;/STRONG&gt; 


&lt;STRONG&gt;Effect&lt;/STRONG&gt; 
This addition is only supported for parameters that are defined as checkboxes or radio buttons. In this case, clicking the parameter triggers the user command ucom, similarly to SELECTION-SCREEN PUSHBUTTON. 

Hope this helps.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 07:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415964#M820448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T07:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen wit h checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415965#M820449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you eswar .&lt;/P&gt;&lt;P&gt;Problem resolved .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need one more clarification with you.&lt;/P&gt;&lt;P&gt;in selection screen i am having MEAN-EAN11(Refernece number as parameter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While validating this  parameter EAN11, there is no master table for that field .&lt;/P&gt;&lt;P&gt;how to validate that field now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415965#M820449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen wit h checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415966#M820450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
Remember i have answered this question in your other thread. 

Anyhow, validating the EAN in the sense you need to check if any material exists with this external identification number.

So you can do that as below:
&lt;PRE&gt;&lt;CODE&gt;
SELECT SINGLE ean11 INTO p_ean11 FROM mara WHERE ean11 = p_ean11.
IF sy-subrc NE 0.
   MESSAGE e001(00) WITH 'Invalid EAN!!!'.    "Error Message
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;

EAN's are not pre-defined, they can vary time to time for the same material. So only means to check is from material master unless maintained is other specifically designed tables.
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-wit-h-checkbox/m-p/3415966#M820450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:26:56Z</dc:date>
    </item>
  </channel>
</rss>

