<?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 invisible in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451760#M1249608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for u r immediate response.&lt;/P&gt;&lt;P&gt;For the below selection fileds material description,division need to be mandatory if the matnr is not in data base.if i set obligatory first screen itself asking.Plese tell me how to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2009 04:37:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-26T04:37:19Z</dc:date>
    <item>
      <title>Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451754#M1249602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In selection screen first i will give first matnr(Material Number).and press enter it need to check if it is there in database(marc table)  or not.&lt;/P&gt;&lt;P&gt;if it is in data base the below selection screen not to be displyed.&lt;/P&gt;&lt;P&gt;if it is there  the below selection screen  with Material Desc(maktx),sales text,Division. how can achive this requirement.thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 03:53:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451754#M1249602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T03:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451755#M1249603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Reddy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  selection-screen begin of block b with frame title text-001.&lt;/P&gt;&lt;P&gt;  select-options: s_plwrk for plaf-plwrk obligatory,"Plant&lt;/P&gt;&lt;P&gt;                  s_plnum for plaf-plnum,  "Planned Order.&lt;/P&gt;&lt;P&gt;                  s_matnr1 for plaf-matnr, "Header Material&lt;/P&gt;&lt;P&gt;                  s_matnr2 for resb-matnr ,"Comp Material&lt;/P&gt;&lt;P&gt;                  s_pertr for plaf-pertr obligatory,&lt;/P&gt;&lt;P&gt;                  "Planned opening date&lt;/P&gt;&lt;P&gt;                  s_dispo for plaf-dispo.  "MRP Controller&lt;/P&gt;&lt;P&gt;  parameter :     pa_vari like disvariant-variant.&lt;/P&gt;&lt;P&gt;                                           "layout variant&lt;/P&gt;&lt;P&gt;  selection-screen end of block b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;if s_plwrk is not initial and s_pertr is not initial.&lt;/P&gt;&lt;P&gt;**Fetch the Planned Order Number from table PLAF.&lt;/P&gt;&lt;P&gt;    select plnum	&lt;/P&gt;&lt;P&gt;           matnr&lt;/P&gt;&lt;P&gt;           plwrk&lt;/P&gt;&lt;P&gt;           gsmng&lt;/P&gt;&lt;P&gt;           pertr&lt;/P&gt;&lt;P&gt;           dispo&lt;/P&gt;&lt;P&gt;           from plaf into table it_plaf where&lt;/P&gt;&lt;P&gt;           plnum in s_plnum&lt;/P&gt;&lt;P&gt;          and matnr in s_matnr1&lt;/P&gt;&lt;P&gt;          and plwrk in s_plwrk&lt;/P&gt;&lt;P&gt;          and pertr in s_pertr&lt;/P&gt;&lt;P&gt;          and dispo in s_dispo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message text-002 type 'E'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;   message 'Plant and Planned opening date both are mandatory' type 'S'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 03:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451755#M1249603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T03:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451756#M1249604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;to validate u can use event AT SELECTION-SCREEN ON &amp;lt;matnr&amp;gt;.&lt;/P&gt;&lt;P&gt;and to hide use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT SCREEN.
   CASE SCREEN-NAME.
       WHEN &amp;lt;maktx&amp;gt;.
          screen-invisible = 'X'.
   ENDCASE.
MODIFY SCREEN.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 04:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451756#M1249604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T04:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451757#M1249605</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; devlope ur code using this key... .&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; tables: mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; parameters: p_matnr type matnr,&lt;/P&gt;&lt;P&gt;                   p_maktx type maktx.&lt;/P&gt;&lt;P&gt;&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;select single matnr from mara into mara-matnr where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 and mara-matnr &amp;lt;&amp;gt; space. this code fro &lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'P_MAKTX'.               " check ur  fields here&lt;/P&gt;&lt;P&gt;screen-active    = 0. "for deactive mode it will hide from screen   " &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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;viji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 04:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451757#M1249605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T04:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451758#M1249606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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 condition( the condition that u need to check will be written here).&lt;/P&gt;&lt;P&gt;if screen-name = 'X'. " parameter that u need to make invisible&lt;/P&gt;&lt;P&gt;screen-invisible = '1'.&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>Thu, 26 Mar 2009 04:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451758#M1249606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T04:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451759#M1249607</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;Refer this code, its working:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : p_matnr TYPE marc-matnr OBLIGATORY,
             p_maktx TYPE makt-maktx MODIF ID abc.

DATA : v_matnr TYPE marc-matnr.

AT SELECTION-SCREEN OUTPUT.
  SELECT SINGLE matnr  FROM marc INTO v_matnr WHERE matnr = p_matnr.
  IF sy-subrc NE 0.
    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
        screen-invisible = 1.
        screen-active = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
    CLEAR p_maktx.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
        screen-invisible = 0.
        screen-active = 1.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
    SELECT SINGLE maktx FROM makt INTO p_maktx WHERE matnr = p_matnr.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 04:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451759#M1249607</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-26T04:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451760#M1249608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for u r immediate response.&lt;/P&gt;&lt;P&gt;For the below selection fileds material description,division need to be mandatory if the matnr is not in data base.if i set obligatory first screen itself asking.Plese tell me how to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 04:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451760#M1249608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T04:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451761#M1249609</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;Do you also want to make material description mandatory or just division field mandatory , if no material found from table MARC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 04:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451761#M1249609</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-26T04:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451762#M1249610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both fields need to be mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 04:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451762#M1249610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T04:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451763#M1249611</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;Refer this code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If material not found in MARC, fields p_maktx and p_param are made mandatory.&lt;/P&gt;&lt;P&gt;But if user wishes to change material, and even if the material is available in MARC,&lt;/P&gt;&lt;P&gt;the other tow fields are still mandatory.&lt;/P&gt;&lt;P&gt;But if you give some value to these two fields and the material is a valid material from MARC,&lt;/P&gt;&lt;P&gt;the other two fields are set as optional (not mandatory)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : p_matnr TYPE marc-matnr OBLIGATORY,
             p_maktx TYPE makt-maktx MODIF ID abc,
             p_param(10) TYPE c MODIF ID def.

DATA : v_matnr TYPE marc-matnr.

AT SELECTION-SCREEN OUTPUT.

  IF NOT p_matnr IS INITIAL.
    SELECT SINGLE matnr FROM marc INTO v_matnr WHERE matnr = p_matnr.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      CLEAR p_maktx.
      CLEAR p_param.
      LOOP AT SCREEN.
        IF screen-group1 = 'ABC'.
          screen-invisible = 0.
          screen-active = 1.
          screen-input = 1.
          screen-required = 1.
        ENDIF.
        IF screen-group1 = 'DEF'.
          screen-invisible = 0.
          screen-active = 1.
          screen-input = 1.
          screen-required = 1.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ELSE.
      SELECT SINGLE maktx FROM makt INTO p_maktx WHERE matnr = p_matnr.
      LOOP AT SCREEN.
        IF screen-group1 = 'ABC'.
          screen-invisible = 0.
          screen-active = 1.
          screen-input = 1.
          screen-required = 0.
        ENDIF.
        IF screen-group1 = 'DEF'.
          screen-invisible = 0.
          screen-active = 1.
          screen-input = 1.
          screen-required = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ENDIF.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 05:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451763#M1249611</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-26T05:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451764#M1249612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the immediate response. if the material is not in marc  i need division default value AE need to be passed. division other than ae or ac it should through error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451764#M1249612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451765#M1249613</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;Consider parameter &lt;STRONG&gt;p_param&lt;/STRONG&gt; as &lt;STRONG&gt;DIVISION NUMBER&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If no material found from MARC, p_param is set to &lt;STRONG&gt;AE&lt;/STRONG&gt;, else if material found p_param is cleared.&lt;/P&gt;&lt;P&gt;If p_param is other than &lt;STRONG&gt;AE&lt;/STRONG&gt; or &lt;STRONG&gt;AC&lt;/STRONG&gt;, then error message &lt;STRONG&gt;'Invalid Division'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : p_matnr TYPE marc-matnr OBLIGATORY,
             p_maktx TYPE makt-maktx MODIF ID abc,
             p_param(10) TYPE c MODIF ID def.

DATA : v_matnr TYPE marc-matnr.

AT SELECTION-SCREEN OUTPUT.

  IF NOT p_matnr IS INITIAL.
    SELECT SINGLE matnr FROM marc INTO v_matnr WHERE matnr = p_matnr.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      CLEAR p_maktx.
      CLEAR p_param.
      p_param = 'AE'.
      LOOP AT SCREEN.
        IF screen-group1 = 'ABC'.
          screen-invisible = 0.
          screen-active = 1.
          screen-input = 1.
          screen-required = 1.
        ENDIF.
        IF screen-group1 = 'DEF'.
          screen-invisible = 0.
          screen-active = 1.
          screen-input = 1.
          screen-required = 1.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ELSE.
      SELECT SINGLE maktx FROM makt INTO p_maktx WHERE matnr = p_matnr.
      CLEAR p_param.
      LOOP AT SCREEN.
        IF screen-group1 = 'ABC'.
          screen-invisible = 0.
          screen-active = 1.
          screen-input = 1.
          screen-required = 0.
        ENDIF.
        IF screen-group1 = 'DEF'.
          screen-invisible = 0.
          screen-active = 1.
          screen-input = 1.
          screen-required = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ENDIF.
  ENDIF.

AT SELECTION-SCREEN.
  SELECT SINGLE matnr FROM marc INTO v_matnr WHERE matnr = p_matnr.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    p_param = 'AE'.
  ENDIF.
  IF NOT ( p_param = 'AE' OR p_param = 'AC' ).
    MESSAGE 'Invalid Division' TYPE 'E'.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451765#M1249613</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-26T06:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen invisible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451766#M1249614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-invisible/m-p/5451766#M1249614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:38:33Z</dc:date>
    </item>
  </channel>
</rss>

