<?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: how to select table fields dynamically? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093492#M733884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  You can use case or if statements..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shyja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2007 05:21:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-04T05:21:07Z</dc:date>
    <item>
      <title>how to select table fields dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093491#M733883</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;In a table i have 16 fields like a1,a2,----a16, based on user entry on selection screen, i hvae to fetch field.&lt;/P&gt;&lt;P&gt;Ex. If user enters 2 on selection screen i have to fetch 2nd field of the table,if it is 5 i have to fetch 5th field etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution to get fields without using case and endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnak u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 05:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093491#M733883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T05:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to select table fields dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093492#M733884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  You can use case or if statements..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shyja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 05:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093492#M733884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T05:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to select table fields dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093493#M733885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: L_FLD(30).

CONCATENATE 'FIELD_' P_NO INTO L_FIELD. " &amp;lt; FIELD_5

SELECT (L_FLD)
INTO L_VALUE
FROM ZTAB
WHERE COND = CONDITION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 05:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093493#M733885</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-12-04T05:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to select table fields dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093494#M733886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is select options in your selection screen...just use "IN" in your query....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u r entries r of parameters type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare it as select-options in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-options:&amp;lt;entry&amp;gt; for &amp;lt;reference-field&amp;gt; no-extension no intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 05:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093494#M733886</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-12-04T05:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to select table fields dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093495#M733887</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;Try like this:&lt;/P&gt;&lt;P&gt;DATA: itab TYPE STANDARD TABLE OF spfli, &lt;/P&gt;&lt;P&gt;            wa LIKE LINE OF itab. &lt;/P&gt;&lt;P&gt;DATA: line(72) TYPE c, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;list LIKE TABLE OF line(72). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line = ' CITYFROM CITYTO '. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND line TO list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT (list) &lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE itab &lt;/P&gt;&lt;P&gt;FROM spfli. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa. &lt;/P&gt;&lt;P&gt;WRITE: / wa-cityfrom, wa-cityto. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 06:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-select-table-fields-dynamically/m-p/3093495#M733887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T06:55:53Z</dc:date>
    </item>
  </channel>
</rss>

