<?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 can i modify  dynamic table ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636059#M283614</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;Is your problem solved ?&lt;/P&gt;&lt;P&gt;Is yes, please reward points and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2006 09:19:12 GMT</pubDate>
    <dc:creator>guillaume-hrc</dc:creator>
    <dc:date>2006-10-16T09:19:12Z</dc:date>
    <item>
      <title>how can i modify  dynamic table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636054#M283609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i sow here exmple of working with dynamic table &lt;/P&gt;&lt;P&gt;but i didnt find any example of modify .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;most of the example is like :&lt;/P&gt;&lt;P&gt;select * into table &amp;lt;dyn_table&amp;gt; &lt;/P&gt;&lt;P&gt;from (p_table). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need to do like (example):&lt;/P&gt;&lt;P&gt;SELECT  SINGLE BUDAT USNAM FROM  MKPF&lt;/P&gt;&lt;P&gt;        INTO (&amp;lt;dyn_table&amp;gt;-BUDAT , &amp;lt;dyn_table&amp;gt;-USNAM )&lt;/P&gt;&lt;P&gt;        WHERE  MBLNR  =  IT_YMM_ST_TNUOT_MLY-MBLNR&lt;/P&gt;&lt;P&gt;        AND    MJAHR  =  IT_YMM_ST_TNUOT_MLY-MJAHR&lt;/P&gt;&lt;P&gt;        AND    BUDAT  IN SL_BUDAT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get message that i cant do it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do it  ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 10:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636054#M283609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T10:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: how can i modify  dynamic table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636055#M283610</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;You cannot do this because the fields of the dynamic table varies.You are trying to specify fields along with a dynamic table which is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 10:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636055#M283610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T10:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: how can i modify  dynamic table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636056#M283611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u cant do like that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to do it by using assign component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: mkpf.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs&amp;gt; type any, &amp;lt;fs1&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single budat usnam from mkpf where mjahr = ....&lt;/P&gt;&lt;P&gt;and budat in sl_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign component budat of structure &amp;lt;dyn_table&amp;gt; to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;fs&amp;gt; = mkpf-budat.&lt;/P&gt;&lt;P&gt;assign component usnam of structure &amp;lt;dyn_table&amp;gt; to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;fs1&amp;gt; = mkpf-usnam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 10:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636056#M283611</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-10-11T10:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: how can i modify  dynamic table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636057#M283612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so what i can do  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to pull unknown number of kostl from ekkn&lt;/P&gt;&lt;P&gt;into dynamic table and to alv list  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks any way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 10:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636057#M283612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T10:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: how can i modify  dynamic table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636058#M283613</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;As you only need 1 record (SELECT SINGLE), I would suggest the following syntax&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS: &amp;lt;fs_data&amp;gt;  TYPE ANY.

SELECT SINGLE ... INTO CORRESPONDING FIELDS OF &amp;lt;fs_data&amp;gt; ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: w_ref_data TYPE REF TO data.

FIELD-SYMBOLS: &amp;lt;fs_data&amp;gt;  TYPE ANY.

CREATE DATA w_ref_data TYPE usr02.
ASSIGN w_ref_data-&amp;gt;* TO &amp;lt;fs_data&amp;gt;.

SELECT SINGLE bname FROM usr02 INTO CORRESPONDING FIELDS OF &amp;lt;fs_data&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Guillaume Garcia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 12:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636058#M283613</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2006-10-11T12:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: how can i modify  dynamic table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636059#M283614</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;Is your problem solved ?&lt;/P&gt;&lt;P&gt;Is yes, please reward points and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 09:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-modify-dynamic-table/m-p/1636059#M283614</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2006-10-16T09:19:12Z</dc:date>
    </item>
  </channel>
</rss>

