<?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: Display selected values . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-selected-values/m-p/1189816#M128201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Claes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please see the below sample code, is this the &lt;/P&gt;&lt;P&gt;  requirement you are looking for? if nor can u please &lt;/P&gt;&lt;P&gt;  explain it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZSRILATHA .

tables : mara.

data : begin of tab occurs 0,
         matnr like mara-matnr,
         maktx like makt-maktx, 
       end of tab.

select-options : matnr for mara-matnr.


if not matnr[] is initial.
  select matnr
         maktx
    into table tab
    from makt
    where matnr in matnr.
 if sy-subrc = 0.
   loop at tab.
     write : / tab-maktx.
   endloop.
 endif.
else.
  write : 'All'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Siri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srilatha T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2006 09:43:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-24T09:43:16Z</dc:date>
    <item>
      <title>Display selected values .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-selected-values/m-p/1189815#M128200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code displays the values that has been selected in the selection screen. As it is now. If nothing is selected the value 'all' is displayed otherwise the value in shortform for example '01' is shown. The thing i want to do is to dispay this value '01' in plain text instead. I have made a try here but it doesn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone who knows how to do?   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;define value_fill.
  lv_pos = 0.
  clear &amp;amp;2.
  if &amp;amp;1 is initial.
    write : 'All' to &amp;amp;2.
  else.
    describe field &amp;amp;1-low length lv_len in character mode.
    loop at &amp;amp;1.

&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;*    if not S_TRFGB-LOW is initial.
*    select single tartx into &amp;amp;1 from t510a
*                   where molga eq '23' and
*                   trfar eq p0008-trfar." Pay Scale Type
*    endif.&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;

      if sy-tabix &amp;gt; 1.
        write ','     to &amp;amp;2+lv_pos(1).
        lv_pos = lv_pos + 1.
      endif.

      write &amp;amp;1-low to &amp;amp;2+lv_pos(lv_len).
      lv_pos = lv_pos + lv_len.
      if not  &amp;amp;1-high is initial.
        write '-'     to &amp;amp;2+lv_pos(1).
        lv_pos = lv_pos + 1.
        write &amp;amp;1-high to &amp;amp;2+lv_pos(lv_len).
        lv_pos = lv_pos + lv_len.
      endif.
      if lv_pos &amp;gt; 60.
        exit.
      endif.
    endloop.
  endif.
end-of-definition.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Claes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2006 09:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-selected-values/m-p/1189815#M128200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-24T09:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Display selected values .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-selected-values/m-p/1189816#M128201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Claes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please see the below sample code, is this the &lt;/P&gt;&lt;P&gt;  requirement you are looking for? if nor can u please &lt;/P&gt;&lt;P&gt;  explain it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZSRILATHA .

tables : mara.

data : begin of tab occurs 0,
         matnr like mara-matnr,
         maktx like makt-maktx, 
       end of tab.

select-options : matnr for mara-matnr.


if not matnr[] is initial.
  select matnr
         maktx
    into table tab
    from makt
    where matnr in matnr.
 if sy-subrc = 0.
   loop at tab.
     write : / tab-maktx.
   endloop.
 endif.
else.
  write : 'All'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Siri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srilatha T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2006 09:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-selected-values/m-p/1189816#M128201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-24T09:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Display selected values .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-selected-values/m-p/1189817#M128202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u be a bit clear abt ur requirement,&lt;/P&gt;&lt;P&gt;u want in plain text means ??????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2006 09:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-selected-values/m-p/1189817#M128202</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-01-24T09:45:21Z</dc:date>
    </item>
  </channel>
</rss>

