<?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: selection screen problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371176#M1040124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said, you have to use the screen structure to achieve this. Initially you should not mention the s_vblen or s_fkart as obligatory, instead you should change them in the runtime by looping the screen structure and making the parameter 'required' as 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the sap demo program demo_dynpro_modify_screen for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Trikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Aug 2008 05:01:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-23T05:01:30Z</dc:date>
    <item>
      <title>selection screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371174#M1040122</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 some problem with selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My selection screen looks  like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS : c1    TYPE c AS CHECKBOX,            &lt;/P&gt;&lt;P&gt;                        c2    TYPE c AS CHECKBOX.&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002 .&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_vbeln   FOR vbak-vbeln  oblidgatory.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_fkart  FOR vbrk-fkart obligatory&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.&lt;/P&gt;&lt;P&gt;PARAMETERS :  p_rlgrap TYPE rlgrap-filename.      SELECTION-SCREEN END OF BLOCK b4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is if user selects c1 check box he will  pass only  block B2 values(s_vbeln) and if selects c2 check box will pass only block b3 values only  and block b4 is common for both check boxes .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know i can do this by using screen structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but as my both parameters are obligatory i am facing problem by doing so .(my both parameters must be obligatory and no error messages issued in my program as it runs in back ground means no message class and no validations required for my selection screen.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one help me in this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;all answers are rewardfull.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 02:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371174#M1040122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-23T02:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371175#M1040123</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;First remove the 'OBLIGATORY' for both the variables S_VBELN and S_FKART. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can apply same action of obligatory in the program as follows which satisfies your check box conditions also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN on field &amp;lt;your field1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If C1 = 'X' AND S_VBELN-low is initial.&lt;/P&gt;&lt;P&gt;EXIT. (If background)&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;MEssage E("XXXX') (if foreground).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN on field &amp;lt;your field2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If C2 = 'X' AND S_FKART-low is initial.&lt;/P&gt;&lt;P&gt;EXIT. (If background)&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;MEssage E("XXXX') (if foreground).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solves ur problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 04:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371175#M1040123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-23T04:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371176#M1040124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said, you have to use the screen structure to achieve this. Initially you should not mention the s_vblen or s_fkart as obligatory, instead you should change them in the runtime by looping the screen structure and making the parameter 'required' as 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the sap demo program demo_dynpro_modify_screen for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Trikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 05:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371176#M1040124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-23T05:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371177#M1040125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can look into this thread, it almost matches your requirement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5967695"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to avoid using Obligatory fields, instead validate them in the code, go through the above thread, you will find some good code snippets to follow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 05:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371177#M1040125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-23T05:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371178#M1040126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't make them obligatory, you have to validate them in your code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZTEST_SDN
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  ztest_sdn.
DATA:wa_sbook TYPE sbook.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS :
c1 TYPE c AS CHECKBOX USER-COMMAND flag,
c2 TYPE c AS CHECKBOX USER-COMMAND flag.
SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002 .
SELECT-OPTIONS : s_carrid FOR wa_sbook-carrid." OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b2.


SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
SELECT-OPTIONS : s_connid FOR wa_sbook-connid." OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b3.

SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.
PARAMETERS : p_rlgrap TYPE localfile.
SELECTION-SCREEN END OF BLOCK b4.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.

    IF c1 = 'X' AND c2 = space.
      IF screen-name = '%B003007_BLOCK_1000' OR
         screen-name = '%_S_CONNID_%_APP_%-TEXT' OR
         screen-name = '%_S_CONNID_%_APP_%-OPTI_PUSH' OR
         screen-name = 'S_CONNID-LOW' OR
         screen-name = '%_S_CONNID_%_APP_%-TO_TEXT' OR
         screen-name = 'S_CONNID-HIGH' OR
         screen-name = '%_S_CONNID_%_APP_%-VALU_PUSH'
         .
        screen-active = '0'.
      ENDIF.
    ENDIF.
    IF c2 = 'X' AND c1 = space.
      IF screen-name = '%B002004_BLOCK_1000' OR
       screen-name = '%_S_CARRID_%_APP_%-TEXT' OR
       screen-name = '%_S_CARRID_%_APP_%-OPTI_PUSH' OR
       screen-name = 'S_CARRID-LOW' OR
       screen-name = '%_S_CARRID_%_APP_%-TO_TEXT' OR
       screen-name = 'S_CARRID-HIGH' OR
       screen-name = '%_S_CARRID_%_APP_%-VALU_PUSH'
       .
        screen-active = '0'.
      ENDIF.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.

AT SELECTION-SCREEN.
  IF sy-ucomm = space OR
     sy-ucomm = 'ONLI' OR
     sy-ucomm = 'PRIN' OR
     sy-ucomm = 'SJOB' OR
     sy-ucomm = 'SPOS' OR
     sy-ucomm = '' .

    IF c1 = 'X' AND c2 = space AND s_carrid IS INITIAL.
      MESSAGE e001(00) WITH 'S_CARRID is initial'.
    ENDIF.
    IF c1 = space AND c2 = 'X' AND s_connid IS INITIAL.
      MESSAGE e001(00) WITH 'S_CONNID is initial'.
    ENDIF.
    IF c1 = space AND c2 = space.
      MESSAGE e001(00) WITH 'Checkbox not checked'.
    ENDIF.
  ENDIF.

START-OF-SELECTION.

END-OF-SELECTION.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://abap-explorer.blogspot.com/" target="test_blank"&gt;http://abap-explorer.blogspot.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 05:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371178#M1040126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-23T05:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371179#M1040127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;probelm solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 03:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4371179#M1040127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-23T03:28:42Z</dc:date>
    </item>
  </channel>
</rss>

