<?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 isuue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134277#M1190036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2009 06:02:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-04T06:02:42Z</dc:date>
    <item>
      <title>Selection Screen isuue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134272#M1190031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have Plant (WERKS) and Material(MATNR) on the selection screen as a select-options for multiple entries. &lt;/P&gt;&lt;P&gt;  Now my issue is, when i am passing a plant in first selection then I should get only those material in the search help for the plant which I have passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 05:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134272#M1190031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T05:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen isuue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134273#M1190032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass the plant valule in LOW value of the select-options, Then it will fetch data releated to that plant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 05:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134273#M1190032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T05:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen isuue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134274#M1190033</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;Write a select query selecting Material from the internal table&lt;/P&gt;&lt;P&gt;based on the value range u have put in Plant and then read the internal table into the select-option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help.&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;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 05:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134274#M1190033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T05:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen isuue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134275#M1190034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Poorna,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;My proble is, on which event should i pass this value. Because I am using selection-screen output event but while debugging i am not able to get the plant no.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 05:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134275#M1190034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T05:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen isuue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134276#M1190035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this function module,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNP_VALUES_READ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it dynamically reads the corresponding values of second field with respect&lt;/P&gt;&lt;P&gt;to the value entered in the first field on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can further serch for this function module on sdn or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check its parameters through se37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 05:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134276#M1190035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T05:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen isuue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134277#M1190036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 06:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134277#M1190036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T06:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen isuue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134278#M1190037</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;Check this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES : mara.
TYPES : BEGIN OF t_mtart,
         mtart TYPE mara-mtart,
        END   OF t_mtart,

        BEGIN OF t_matnr,
         matnr TYPE mara-matnr,
        END OF t_matnr.
DATA : it_mtart TYPE STANDARD TABLE OF t_mtart WITH HEADER LINE,
       it_matnr type STANDARD TABLE OF t_matnr WITH HEADER LINE.


SELECT-OPTIONS : s_mtart FOR mara-mtart,
                 s_matnr FOR mara-matnr.

AT SELECTION-SCREEN ON  VALUE-REQUEST FOR s_mtart-low.
  PERFORM get_value USING 'S_MTART'.

AT SELECTION-SCREEN ON  VALUE-REQUEST FOR s_matnr-low.
  PERFORM getvalue_comp.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  GET_VALUE
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_0022   text
*----------------------------------------------------------------------*
FORM get_value  USING    name.
  IF it_mtart[] IS INITIAL.
    SELECT DISTINCT mtart
                    FROM mara
                   INTO TABLE it_mtart.
  ENDIF.




  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'S_MTART'
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      dynprofield     = name
      stepl           = 0
      window_title    = 'Material type'
      value_org       = 'S'
    TABLES
      value_tab       = it_mtart
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM.                    " GET_VALUE
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  GETVALUE_COMP
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM getvalue_comp .
   DATA it_dynfield TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.
   DATA : s_comp1 LIKE it_mtart-mtart.
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = sy-repid
      dynumb               = sy-dynnr
      request              = 'A'
      translate_to_upper   = 'X'
    TABLES
      dynpfields           = it_dynfield
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      invalid_parameter    = 7
      undefind_error       = 8
      double_conversion    = 9
      stepl_not_found      = 10
      OTHERS               = 11.
  READ TABLE it_dynfield WITH KEY fieldname = 'S_MTART-LOW'.

  s_comp1 = it_dynfield-fieldvalue.



  REFRESH it_MATNR[].
  IF it_MATNR[] IS INITIAL.
    SELECT DISTINCT MATNR
    FROM MARA
   INTO TABLE it_MATNR
   WHERE MTART = s_comp1.
  ENDIF.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*   DDIC_STRUCTURE         = ' '
      retfield               = 'S1'
*   PVALKEY                = ' '
     dynpprog               = sy-repid
     dynpnr                 = sy-dynnr
     dynprofield            = 'S_COMP-LOW'
     stepl                  = 0
*   WINDOW_TITLE           =
*   VALUE                  = ' '
   value_org              = 'S'
*   MULTIPLE_CHOICE        = ' '
*   DISPLAY                = ' '
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
*   MARK_TAB               =
* IMPORTING
*   USER_RESET             =
    TABLES
      value_tab              = it_MATNR
*   FIELD_TAB              =
*   RETURN_TAB             =
*   DYNPFLD_MAPPING        =
   EXCEPTIONS
     parameter_error        = 1
     no_values_found        = 2
     OTHERS                 = 3
            .
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM.                    " GETVALUE_COMP

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Debarshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 06:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134278#M1190037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T06:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen isuue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134279#M1190038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Debarshi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 06:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-isuue/m-p/5134279#M1190038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T06:05:10Z</dc:date>
    </item>
  </channel>
</rss>

