<?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: To select the field dynamically while fetching th e data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233431#M1525129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simpler way would be to select the twelve fields and then decide which one to use while processing the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Aug 2010 13:52:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-20T13:52:29Z</dc:date>
    <item>
      <title>To select the field dynamically while fetching th e data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233427#M1525125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have fields like TKG001, TKG002, TKG003 etc in COST table...&lt;/P&gt;&lt;P&gt;My requirement is that we want the value present in the field TKG0** where ** is the month of system data.&lt;/P&gt;&lt;P&gt;Do we have any method to extract the field dynamically from the table.&lt;/P&gt;&lt;P&gt;Please suggest me how can i achieve the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 12:50:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233427#M1525125</guid>
      <dc:creator>kavya_2017</dc:creator>
      <dc:date>2010-08-20T12:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: To select the field dynamically while fetching th e data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233428#M1525126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kavya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please elaborate your query ? If you want to extract data through any programme you can always define some variable according to the no. of a particular month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, please elaborate on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 12:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233428#M1525126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-20T12:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: To select the field dynamically while fetching th e data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233429#M1525127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use dynamic field specification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT x.

DATA :

      BEGIN OF lw_field,
        field(20),
      END OF lw_field,
      lt_field LIKE STANDARD TABLE OF lw_field.

START-OF-SELECTION.

  lw_field-field = 'BUKRS'.
  APPEND lw_field TO lt_field.

  lw_field-field = 'GJAHR'.
  APPEND lw_field TO lt_field.


  SELECT (lt_field)   "&amp;lt;-- Internal table contains your dynamically specified in parenthesis 
  FROM bkpf
  INTO TABLE itab.

  BREAK-POINT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 13:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233429#M1525127</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-20T13:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: To select the field dynamically while fetching th e data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233430#M1525128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes [SELECT|http://help.sap.com/abapdocu_70/en/ABAPSELECT.htm] statement allow a dynamic [SELECT - columns|http://help.sap.com/abapdocu_70/en/ABAPSELECT_CLAUSE_COLS.htm#&amp;amp;ABAP_ALTERNATIVE_3@3@] syntax - Check the sample at the bottom of the last link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 13:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233430#M1525128</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-20T13:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: To select the field dynamically while fetching th e data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233431#M1525129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simpler way would be to select the twelve fields and then decide which one to use while processing the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 13:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233431#M1525129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-20T13:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: To select the field dynamically while fetching th e data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233432#M1525130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bulent and Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer solved my problem,&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 12:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-select-the-field-dynamically-while-fetching-th-e-data/m-p/7233432#M1525130</guid>
      <dc:creator>kavya_2017</dc:creator>
      <dc:date>2010-08-24T12:37:14Z</dc:date>
    </item>
  </channel>
</rss>

