<?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 want a solution for abap problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/want-a-solution-for-abap-problem/m-p/1128668#M111119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Mr.Rich i want to display the 2nd field on the same page after the first field.not in secondary list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and vijay ur program is isplaying both the fields. but the 2nd filed should be displayed only when we click the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i have internal table with 5 fields like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-field1   itab-field2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;101&lt;/P&gt;&lt;P&gt;102&lt;/P&gt;&lt;P&gt;103&lt;/P&gt;&lt;P&gt;104&lt;/P&gt;&lt;P&gt;105&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we click on 101 it should display the corresponding field 2 value and so on for 102...105.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2006 14:06:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-25T14:06:52Z</dc:date>
    <item>
      <title>want a solution for abap problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/want-a-solution-for-abap-problem/m-p/1128668#M111119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Mr.Rich i want to display the 2nd field on the same page after the first field.not in secondary list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and vijay ur program is isplaying both the fields. but the 2nd filed should be displayed only when we click the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i have internal table with 5 fields like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-field1   itab-field2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;101&lt;/P&gt;&lt;P&gt;102&lt;/P&gt;&lt;P&gt;103&lt;/P&gt;&lt;P&gt;104&lt;/P&gt;&lt;P&gt;105&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we click on 101 it should display the corresponding field 2 value and so on for 102...105.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/want-a-solution-for-abap-problem/m-p/1128668#M111119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: want a solution for abap problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/want-a-solution-for-abap-problem/m-p/1128669#M111120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did post this example on the other post.  Please mark one of these post as closed, as you have now duplicated your question.  Thanks.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 no standard page heading.

data: begin of it001 occurs 0,
      bukrs type t001-bukrs,
      butxt type t001-butxt,
      check type c,
      end of it001.

start-of-selection.

  select * into corresponding fields of table it001 from t001.
  perform write_list.


at line-selection.

  read table it001 with key bukrs = it001-bukrs.
  if sy-subrc  = 0.
    it001-check = 'X'.
    modify it001 index sy-tabix.
  endif.

  sy-lsind = sy-lsind - 1.
  perform write_list.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  write_list
*&amp;amp;---------------------------------------------------------------------*
form write_list.

  loop at it001.
    format hotspot on.
    write:/ it001-bukrs.
    hide: it001-bukrs, it001-butxt.
    format hotspot off.
    if it001-check = 'X'.
      write: it001-butxt.
    endif.
  endloop.

endform.

&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>Wed, 25 Jan 2006 14:14:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/want-a-solution-for-abap-problem/m-p/1128669#M111120</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-25T14:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: want a solution for abap problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/want-a-solution-for-abap-problem/m-p/1128670#M111121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZTEST_REPORT
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

report  ztest_report.


data: begin of itab occurs 0,
      field1(10),
      field2(5),
      end of itab.
data: field(20) type c,
      value(5).
data: click(1) .
itab-field1 = 'test1'.
itab-field2 = 'abc1'.
append itab.

itab-field1 = 'test2'.
itab-field2 = 'abc2'.
append itab.
itab-field1 = 'test3'.
itab-field2 = 'abc3'.
append itab.

itab-field1 = 'test4'.
itab-field2 = 'abc4'.
append itab.

itab-field1 = 'test5'.
itab-field2 = 'abc5'.
append itab.

data: itab1 like itab occurs 0 with header line.
loop at itab .
clear itab-field2.
move-corresponding itab to itab1.
append itab1.
clear itab1.
endloop.
perform popualate_data.


at line-selection.
click = 'X'.

  get cursor field field value value.

  if field = 'ITAB1-FIELD1' and not value is initial .
    read table itab with key field1 = value.
    if sy-subrc = 0.
    read table itab1 with key field1 = value.
     itab1-field2 = itab-field2.
     modify itab1 index sy-tabix.
     sy-lsind = 0.
     perform popualate_data.
    endif.
  endif.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  popualate_data
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
form popualate_data .
loop at itab1.

  write:/ itab1-field1,
          itab1-field2.

endloop.
endform.                    " popualate_data&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/want-a-solution-for-abap-problem/m-p/1128670#M111121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: want a solution for abap problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/want-a-solution-for-abap-problem/m-p/1128671#M111122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Rich..That was slick indeed!!!!!!!:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@prashant : please close the thread if it solves your problem.(Assign points to Rich's post)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/want-a-solution-for-abap-problem/m-p/1128671#M111122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:29:00Z</dc:date>
    </item>
  </channel>
</rss>

