<?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: fields on screen. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746653#M1302501</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;ABAP is event driven progarmming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The case u explained is not possible in ABAP without pressing ENTER button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2009 08:55:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-15T08:55:52Z</dc:date>
    <item>
      <title>fields on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746652#M1302500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I have a screen 0100, on this screen ,there are 2 fields field1, field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I choose field1, can I display field2 without any command, even without pressing 'ENTER'? The field2 can be selected from a tabel using field1. It means that once selected field1, field2 should be diplayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to achieve this requirement? If it's possible, how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 08:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746652#M1302500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T08:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: fields on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746653#M1302501</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;ABAP is event driven progarmming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The case u explained is not possible in ABAP without pressing ENTER button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 08:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746653#M1302501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T08:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: fields on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746654#M1302502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this logic in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT Z_TEST.

tables tcurt.
DATA DYFIELDS LIKE DYNPREAD OCCURS 1 WITH HEADER LINE.
PARAMETERS: P_WAERS LIKE TCURT-WAERS, "Currency
P_LTEXT LIKE TCURT-LTEXT, "Long Text
P_KTEXT LIKE TCURT-KTEXT. "Short Text

*Example of updating value of another field on the screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WAERS.
CLEAR: DYFIELDS[], DYFIELDS.
*select currency
CALL FUNCTION 'HELP_VALUES_GET'
EXPORTING
fieldname = 'WAERS'
tabname = 'TCURT'
IMPORTING
SELECT_VALUE = P_WAERS.

*get long text for the selected currency
SELECT SINGLE LTEXT FROM TCURT
INTO DYFIELDS-FIELDVALUE
WHERE SPRAS = SY-LANGU
AND WAERS = P_WAERS.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
CLEAR DYFIELDS-FIELDVALUE.
ENDIF.

*update another field
DYFIELDS-FIELDNAME = 'P_LTEXT'.
APPEND DYFIELDS.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
tables
dynpfields = DYFIELDS .

*Example of reading value of another field
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_KTEXT.
*read another field
CLEAR: DYFIELDS[], DYFIELDS.
DYFIELDS-FIELDNAME = 'P_WAERS'.
APPEND DYFIELDS.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = DYFIELDS .
READ TABLE DYFIELDS INDEX 1.

*get short text and update current field
SELECT SINGLE KTEXT FROM TCURT
INTO P_KTEXT
WHERE SPRAS EQ SY-LANGU
AND WAERS EQ DYFIELDS-FIELDVALUE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 08:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746654#M1302502</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-06-15T08:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: fields on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746655#M1302503</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;I am not fully clear with ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try Using logical databases.U can select the fields during runtime and they can be displayed dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;lakshman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 09:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746655#M1302503</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2009-06-15T09:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: fields on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746656#M1302504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he is saying without presssing (any Button)F1 button also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the logic you mentioned is right when if you press any command. right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the Yu is asking if he enters in data in field1, he wnats to display automatically field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 09:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746656#M1302504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T09:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: fields on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746657#M1302505</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;This is not possible... You have to atleast use the 'ENTER' button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 09:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-on-screen/m-p/5746657#M1302505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T09:16:17Z</dc:date>
    </item>
  </channel>
</rss>

