<?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: Multiple value read using ' DYNP_VALUES_READ ' Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-value-read-using-dynp-values-read-function-module/m-p/7932584#M1599900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Soumen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;but when i entered multiple value in field S_TPLNR only gate 1st one value by this function module.NOT GETTING multiple value.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The FM 'DYNP_VALUES_READ' returns the values of the elements which are &lt;U&gt;available on the screen in case the PAI event is not triggered&lt;/U&gt;. For e.g., this FM in the POV module if we want to populate the F4 values of the screen element based on the values in another element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;when i give T_DYNPFIELDS-FIELDNAME = 'S_TPLNR'. no value gatting by this function module&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There is no element 'S_TPLNR' available in the screen-painter. It is either ''S_TPLNR-LOW' or 'S_TPLNR-HIGH'. Hence the FM is not returning any values!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i have mentioned earlier this FM is required if the PAI module is not triggered yet. In your code snippet i can see you have used this in the AT SELECTION-EVENT(PAI event for seln. scr.), so you can access the values by directly using the variable &lt;EM&gt;S_TPLNR&lt;/EM&gt;. (Since this is a range table you'll have to handle it accordingly)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

  FIELD-SYMBOLS &amp;lt;ls_tplnr&amp;gt; LIKE LINE OF s_tplnr.

  SET LOCALE LANGUAGE sy-langu.

  LOOP AT s_tplnr ASSIGNING &amp;lt;ls_tplnr&amp;gt;.
    TRANSLATE &amp;lt;ls_tplnr&amp;gt;-low TO UPPER CASE.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you need to use the 'DYNP_VALUES_READ'? What is your actual business requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Jun 17, 2011 5:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2011 12:07:39 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2011-06-17T12:07:39Z</dc:date>
    <item>
      <title>Multiple value read using ' DYNP_VALUES_READ ' Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-value-read-using-dynp-values-read-function-module/m-p/7932583#M1599899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : QMART      FOR    QMEL-QMART NO-DISPLAY.
SELECT-OPTIONS : S_WERKS FOR QMIH-IWERK OBLIGATORY  NO-EXTENSION NO INTERVALS .

SELECT-OPTIONS : S_TPLNR FOR IFLOT-TPLNR  NO  INTERVALS .
SELECT-OPTIONS : S_EQUNR FOR EQUI-EQUNR  NO INTERVALS .
SELECT-OPTIONS : S_INGRP FOR QMIH-INGRP OBLIGATORY .
SELECT-OPTIONS : S_QMDAT FOR QMEL-QMDAT OBLIGATORY NO-EXTENSION.

SELECTION-SCREEN END OF BLOCK B1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this selection screen i want to read multiple value read on the event AT SELECTION SCREEN from the  S_TPLNR selection screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write the below code in the event AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF T_DYNPFIELDS OCCURS 0.
          INCLUDE STRUCTURE DYNPREAD.
  DATA: END OF T_DYNPFIELDS.
  CLEAR : T_DYNPFIELDS[].

  T_DYNPFIELDS-FIELDNAME = 'S_TPLNR-LOW'.
  APPEND T_DYNPFIELDS.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      DYNAME                         = SY-CPROG
      DYNUMB                         = SY-DYNNR
      START_SEARCH_IN_CURRENT_SCREEN = 'X'
    TABLES
      DYNPFIELDS                     = T_DYNPFIELDS
    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.

  IF SY-SUBRC IS INITIAL.
    READ TABLE T_DYNPFIELDS WITH KEY FIELDNAME = S_TPLNR.
    IF T_DYNPFIELDS-FIELDVALUE IS INITIAL.

    ELSE.
      SET LOCALE LANGUAGE SY-LANGU.
      TRANSLATE T_DYNPFIELDS-FIELDVALUE TO UPPER CASE.   "#EC TRANSLANG
      W_S_TPLNR-LOW = T_DYNPFIELDS-FIELDVALUE .
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..........................*************************&lt;STRONG&gt;but when i entered multiple value in field  S_TPLNR only gate 1st one value by this function module..............NOT GATTING multiple value..........&lt;/STRONG&gt;***************************when i give T_DYNPFIELDS-FIELDNAME = 'S_TPLNR'. no value gatting by this function module,,,,,,,,,,,,,,,,,,,,,,,,,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO Please suggest me how can i Gate multiple value frrom S_TPLNR  selection screen field with in the event AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Added  tags&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Jun 17, 2011 5:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 11:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-value-read-using-dynp-values-read-function-module/m-p/7932583#M1599899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-17T11:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple value read using ' DYNP_VALUES_READ ' Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-value-read-using-dynp-values-read-function-module/m-p/7932584#M1599900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Soumen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;but when i entered multiple value in field S_TPLNR only gate 1st one value by this function module.NOT GETTING multiple value.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The FM 'DYNP_VALUES_READ' returns the values of the elements which are &lt;U&gt;available on the screen in case the PAI event is not triggered&lt;/U&gt;. For e.g., this FM in the POV module if we want to populate the F4 values of the screen element based on the values in another element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;when i give T_DYNPFIELDS-FIELDNAME = 'S_TPLNR'. no value gatting by this function module&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There is no element 'S_TPLNR' available in the screen-painter. It is either ''S_TPLNR-LOW' or 'S_TPLNR-HIGH'. Hence the FM is not returning any values!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i have mentioned earlier this FM is required if the PAI module is not triggered yet. In your code snippet i can see you have used this in the AT SELECTION-EVENT(PAI event for seln. scr.), so you can access the values by directly using the variable &lt;EM&gt;S_TPLNR&lt;/EM&gt;. (Since this is a range table you'll have to handle it accordingly)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

  FIELD-SYMBOLS &amp;lt;ls_tplnr&amp;gt; LIKE LINE OF s_tplnr.

  SET LOCALE LANGUAGE sy-langu.

  LOOP AT s_tplnr ASSIGNING &amp;lt;ls_tplnr&amp;gt;.
    TRANSLATE &amp;lt;ls_tplnr&amp;gt;-low TO UPPER CASE.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you need to use the 'DYNP_VALUES_READ'? What is your actual business requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Jun 17, 2011 5:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 12:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-value-read-using-dynp-values-read-function-module/m-p/7932584#M1599900</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-06-17T12:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple value read using ' DYNP_VALUES_READ ' Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-value-read-using-dynp-values-read-function-module/m-p/7932585#M1599901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Thanks ...........for give me the proper soluction...............My business requirment was...................F4 help on onther field depending on the S_TPLNR field............&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 12:44:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-value-read-using-dynp-values-read-function-module/m-p/7932585#M1599901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-17T12:44:58Z</dc:date>
    </item>
  </channel>
</rss>

