<?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 Dynamic Fieldcatlog in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldcatlog/m-p/6301512#M1391160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN final internal table we have the data as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YEAR/MONTH   BUKRS BELNR  GJAHR WRBTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JAN/2008     0005   10001   2008  101&lt;/P&gt;&lt;P&gt;FEB/2008     0005   10001   2008  102&lt;/P&gt;&lt;P&gt;MAR/2008     0005   10001   2008  210&lt;/P&gt;&lt;P&gt;APR/2008     0005   10001   2008  310&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the output as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUKRS   BELNR    GJAHR    JAN/2008    FEB/2008   MAR/2008    APR/2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0005    10001    2008      101           102        210         310&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get as above i am using dynamic fieldcatlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_index = sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT l_index OF STRUCTURE &amp;lt;f_line&amp;gt; TO &amp;lt;f_field&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;f_field&amp;gt; = lt_final-wrbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT 'BUKRS' OF STRUCTURE &amp;lt;f_line&amp;gt; TO &amp;lt;f_field&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;f_field&amp;gt; = lt_final-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT 'BELNR' OF STRUCTURE &amp;lt;f_line&amp;gt; TO &amp;lt;f_field&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;f_field&amp;gt; = lt_final-belnr.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT LAST.&lt;/P&gt;&lt;P&gt;       INSERT &amp;lt;f_line&amp;gt; INTO  TABLE &amp;lt;f_tab&amp;gt;.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;i am not getting amount value in the output. if i remove the assign component for bukrs and belnr &lt;/P&gt;&lt;P&gt;in the above then we are able to see amount values in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know what to do to get bukrs and belnr data along with amount data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2009 10:05:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-16T10:05:50Z</dc:date>
    <item>
      <title>Dynamic Fieldcatlog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldcatlog/m-p/6301512#M1391160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN final internal table we have the data as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YEAR/MONTH   BUKRS BELNR  GJAHR WRBTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JAN/2008     0005   10001   2008  101&lt;/P&gt;&lt;P&gt;FEB/2008     0005   10001   2008  102&lt;/P&gt;&lt;P&gt;MAR/2008     0005   10001   2008  210&lt;/P&gt;&lt;P&gt;APR/2008     0005   10001   2008  310&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the output as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUKRS   BELNR    GJAHR    JAN/2008    FEB/2008   MAR/2008    APR/2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0005    10001    2008      101           102        210         310&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get as above i am using dynamic fieldcatlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_index = sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT l_index OF STRUCTURE &amp;lt;f_line&amp;gt; TO &amp;lt;f_field&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;f_field&amp;gt; = lt_final-wrbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT 'BUKRS' OF STRUCTURE &amp;lt;f_line&amp;gt; TO &amp;lt;f_field&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;f_field&amp;gt; = lt_final-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT 'BELNR' OF STRUCTURE &amp;lt;f_line&amp;gt; TO &amp;lt;f_field&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;f_field&amp;gt; = lt_final-belnr.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT LAST.&lt;/P&gt;&lt;P&gt;       INSERT &amp;lt;f_line&amp;gt; INTO  TABLE &amp;lt;f_tab&amp;gt;.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;i am not getting amount value in the output. if i remove the assign component for bukrs and belnr &lt;/P&gt;&lt;P&gt;in the above then we are able to see amount values in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know what to do to get bukrs and belnr data along with amount data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 10:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldcatlog/m-p/6301512#M1391160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T10:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Fieldcatlog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldcatlog/m-p/6301513#M1391161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prepare an new internal table with fields for the BUKRS, BELNR and year(JAN/2008) and amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUKRS BELNR GJAHR JAN/2008 FEB/2008 MAR/2008 APR/2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you loop your final internal table, you have the value(JAN/2008 or FEB/2008) right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the value as a where condition for the new internal table and move the amount value while using the Assign statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 10:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldcatlog/m-p/6301513#M1391161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Fieldcatlog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldcatlog/m-p/6301514#M1391162</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;&lt;/P&gt;&lt;P&gt;In the below statement u have use the 'WRBTR' Instead of I_index . If u know the position of the coloumn then u can take it into varible and assign it. otherwise use the field name to assign..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wrong case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_index  contains which record is looping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT l_index OF STRUCTURE &amp;lt;f_line&amp;gt; TO &amp;lt;f_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;f_field&amp;gt; = lt_final-wrbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correct one: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT OF 'WRBTR' STRUCTURE &amp;lt;f_line&amp;gt; TO &amp;lt;f_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;f_field&amp;gt; = lt_final-wrbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 10:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldcatlog/m-p/6301514#M1391162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T10:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Fieldcatlog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldcatlog/m-p/6301515#M1391163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dynamic creation is ok.. but i have one question...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are sure that for each month you are going to have only one value... then why go for dynamic field catalog here?&lt;/P&gt;&lt;P&gt;you can just prepare the catalog and keep the names(seltext_l) changing with the value in the first field.. if you have value there.. make that field catalog table entry.. else.. dont..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this makes the process easy.. wont it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 10:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldcatlog/m-p/6301515#M1391163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T10:34:53Z</dc:date>
    </item>
  </channel>
</rss>

