<?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: List display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-display/m-p/1665233#M294544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, take this example program.  Enter a value and hit enter, the field next to the input field will change,  enter another number into the intput field, the number next to it will change again.  You will need to create the PF-status called MAIN.  Enter the word "ENTER" in the green check mark,  also put BACK, EXIT, and CANCEL for the other top teir buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: field1(10) type c.
data: field2(10) type c.

start-of-selection.

  set pf-status 'MAIN'.

  write: ' Input',  field1 input on no-gap, field2 .


at user-command.
  case sy-ucomm.
    when 'ENTER'.
      data: tmp_field1(10) type c.
      data: tmp_field2(10) type c.
      read current line field value field1 into tmp_field1.
      read current line field value field2 into tmp_field2.
      tmp_field2 = tmp_field2 + tmp_field1.
      modify current line field value field2 from tmp_field2.
  endcase.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Oct 2006 13:41:21 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-10-26T13:41:21Z</dc:date>
    <item>
      <title>List display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-display/m-p/1665232#M294543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a classical report, after getting the display, i want to enter the value of a particular field. This is done with write statement,write:/ field1 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, with respect to the given input, the adjacent field has to display by adding the given value with another field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do the above...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting reply...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 12:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-display/m-p/1665232#M294543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T12:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: List display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-display/m-p/1665233#M294544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, take this example program.  Enter a value and hit enter, the field next to the input field will change,  enter another number into the intput field, the number next to it will change again.  You will need to create the PF-status called MAIN.  Enter the word "ENTER" in the green check mark,  also put BACK, EXIT, and CANCEL for the other top teir buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: field1(10) type c.
data: field2(10) type c.

start-of-selection.

  set pf-status 'MAIN'.

  write: ' Input',  field1 input on no-gap, field2 .


at user-command.
  case sy-ucomm.
    when 'ENTER'.
      data: tmp_field1(10) type c.
      data: tmp_field2(10) type c.
      read current line field value field1 into tmp_field1.
      read current line field value field2 into tmp_field2.
      tmp_field2 = tmp_field2 + tmp_field1.
      modify current line field value field2 from tmp_field2.
  endcase.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 13:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-display/m-p/1665233#M294544</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-26T13:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: List display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-display/m-p/1665234#M294545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Obuli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code in the at line-selection event or at user-command event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can read the current value from the list using either &lt;/P&gt;&lt;P&gt;GET CURSOR FIELD &amp;lt;FIELD&amp;gt; VLAUE &amp;lt;VARIABLE&amp;gt; &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;using system field SY-LISEL, and then reading the value with offset.&lt;/P&gt;&lt;P&gt;after necessary calculation, modify the line using command &lt;/P&gt;&lt;P&gt;MODIFY CURRENT LINE FIELD VALUE &amp;lt;FILED&amp;gt; FROM &amp;lt;VARIABLE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 13:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-display/m-p/1665234#M294545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T13:59:44Z</dc:date>
    </item>
  </channel>
</rss>

