<?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 Copy values from subscreen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-values-from-subscreen/m-p/4997325#M1163874</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;My requirement is to copy the values of a field from one subscreen to the other when changing the tabs. &lt;/P&gt;&lt;P&gt;For example, in PO transaction, when one switches from a tab to another, value from a particular field should be copied into a specified filed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with using get parameter in the PBO of the second subscreen, but that parameter id is not set in the PAI of the first subscreen. &lt;/P&gt;&lt;P&gt;It is not possible to modify the first subscreen logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest a relevant solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jan 2009 07:28:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-02T07:28:05Z</dc:date>
    <item>
      <title>Copy values from subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-values-from-subscreen/m-p/4997325#M1163874</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;My requirement is to copy the values of a field from one subscreen to the other when changing the tabs. &lt;/P&gt;&lt;P&gt;For example, in PO transaction, when one switches from a tab to another, value from a particular field should be copied into a specified filed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with using get parameter in the PBO of the second subscreen, but that parameter id is not set in the PAI of the first subscreen. &lt;/P&gt;&lt;P&gt;It is not possible to modify the first subscreen logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest a relevant solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 07:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-values-from-subscreen/m-p/4997325#M1163874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T07:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Copy values from subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-values-from-subscreen/m-p/4997326#M1163875</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;Use the Fm DYNP_VALUES_READ to get the screen values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'DYNP_VALUES_READ'
       exporting
            dyname               = d020s-prog
            dynumb               = d020s-dnum
            translate_to_upper   = 'X'
*           REQUEST              = ' '
       tables
            dynpfields           = t_dynpread.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: avinash kodarapu on Jan 2, 2009 1:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 07:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-values-from-subscreen/m-p/4997326#M1163875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T07:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Copy values from subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-values-from-subscreen/m-p/4997327#M1163876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read the value from a screen field, use code, its working:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA : tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE, "for reading screen value
         spey TYPE yapn-spey. "variable to store screen field value

  CLEAR:   tb_dynpfields.
  REFRESH: tb_dynpfields.

  MOVE 'YAPN-SPEY' TO tb_dynpfields-fieldname. "YAPN-SPEY is screen field name
  APPEND tb_dynpfields.

  CALL FUNCTION 'DYNP_VALUES_READ' "to read screen field values
    EXPORTING
      dyname                               = 'Z_F1F4' "program name
      dynumb                               = '1010' "screen id
*   TRANSLATE_TO_UPPER                   = ' '
*   REQUEST                              = ' '
*   PERFORM_CONVERSION_EXITS             = ' '
*   PERFORM_INPUT_CONVERSION             = ' '
*   DETERMINE_LOOP_INDEX                 = ' '
*   START_SEARCH_IN_CURRENT_SCREEN       = ' '
*   START_SEARCH_IN_MAIN_SCREEN          = ' '
*   START_SEARCH_IN_STACKED_SCREEN       = ' '
*   START_SEARCH_ON_SCR_STACKPOS         = ' '
*   SEARCH_OWN_SUBSCREENS_FIRST          = ' '
*   SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
    TABLES
      dynpfields                           = tb_dynpfields "internal table with screen field value
 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 &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.

  READ TABLE tb_dynpfields INDEX 1.
  IF sy-subrc EQ 0.
    spey = tb_dynpfields-fieldvalue. "assign screen field value to a variable
  ELSE.
    spey = ' '.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 10:10:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-values-from-subscreen/m-p/4997327#M1163876</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-01-02T10:10:44Z</dc:date>
    </item>
  </channel>
</rss>

