<?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 fill table fields dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fill-table-fields-dynamically/m-p/889806#M53199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laurens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use field symbols for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS &amp;lt;field&amp;gt; .

ASSIGN (itab-atnam) TO &amp;lt;field&amp;gt; .
IF sy-subrc = 0 .
  &amp;lt;field&amp;gt; = itab-atwrt .
ENDIF .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2005 18:24:22 GMT</pubDate>
    <dc:creator>ssimsekler</dc:creator>
    <dc:date>2005-05-11T18:24:22Z</dc:date>
    <item>
      <title>How to fill table fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fill-table-fields-dynamically/m-p/889805#M53198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   small question: We take a &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;transparant&lt;/P&gt; table. This table has the following fields:&lt;BR /&gt; &lt;BR /&gt;mandt&lt;BR /&gt;matnr&lt;BR /&gt;text&lt;BR /&gt;batchchar1&lt;BR /&gt;batchchar2&lt;BR /&gt;batchchar3&lt;BR /&gt; &lt;BR /&gt;Now we obtain batchcharacteristics using a function. This function returns the following &lt;B&gt;&lt;P&gt;internal&lt;/P&gt;&lt;/B&gt; table:&lt;BR /&gt; &lt;BR /&gt;&lt;B&gt;&lt;P&gt;matnr - atnam - atwrt&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;1234567 - batchchar1 - 5&lt;BR /&gt;1234567 - batchchar2 - 7&lt;BR /&gt;1234567 - batchchar3 - bla&lt;BR /&gt; &lt;BR /&gt;My question is: is there an easy way to move the values of the characteristics batchchar1, 2 and 3 to there equivalent fields in our transparant table? Please note that 'batchchar1' is a value in our &lt;B&gt;&lt;P&gt;internal&lt;/P&gt;&lt;/B&gt; table of field atnam, &lt;B&gt;&lt;P&gt;ánd&lt;/P&gt;&lt;/B&gt; it is a field  in our transparant table in which we would like to place the value 5.&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The main point is that I'd like to fill the values 5, 7 and bla into the corresponding fieldnames of the batchcharacteristics in our transparant table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers and thanks&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Laurens&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ps: because of the large amount of fields of the batchcharacteristics, a hardcoded definition of the transparant table fields isn't really an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2005 18:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fill-table-fields-dynamically/m-p/889805#M53198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-11T18:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill table fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fill-table-fields-dynamically/m-p/889806#M53199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laurens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use field symbols for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS &amp;lt;field&amp;gt; .

ASSIGN (itab-atnam) TO &amp;lt;field&amp;gt; .
IF sy-subrc = 0 .
  &amp;lt;field&amp;gt; = itab-atwrt .
ENDIF .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2005 18:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fill-table-fields-dynamically/m-p/889806#M53199</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-05-11T18:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill table fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fill-table-fields-dynamically/m-p/889807#M53200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a small piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TABLES: zzzz. "transparent table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_matnr TYPE zzzz OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_values OCCURS 0, "Batch Characteristics&lt;/P&gt;&lt;P&gt;matnr TYPE ausp-objek,&lt;/P&gt;&lt;P&gt;atnam TYPE cabn-atnam,&lt;/P&gt;&lt;P&gt;atwrt TYPE ausp-atwrt,&lt;/P&gt;&lt;P&gt;END OF t_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_field(60) TYPE c.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;tablefield&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Insert logic for populating t_values here&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT t_values BY matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_values.&lt;/P&gt;&lt;P&gt;  AT NEW matnr.&lt;/P&gt;&lt;P&gt;    CLEAR t_matnr.&lt;/P&gt;&lt;P&gt;    t_matnr-matnr = t_values-matnr.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'T_VALUES-' t_values-atnam INTO w_field.&lt;/P&gt;&lt;P&gt;  TRANSLATE w_field TO UPPER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN (w_field) TO &amp;lt;tablefield&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;tablefield&amp;gt; = t_values-atwrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AT END OF matnr.&lt;/P&gt;&lt;P&gt;    APPEND t_matnr.&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;MODIFY zzzz FROM TABLE t_matnr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rishi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace ZZZZ with your transparent table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2005 18:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fill-table-fields-dynamically/m-p/889807#M53200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-11T18:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill table fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fill-table-fields-dynamically/m-p/889808#M53201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used field symbols for this purpose but I think I did a few things wrong. I'll try this first thing in the morning!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers and thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laurens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2005 18:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fill-table-fields-dynamically/m-p/889808#M53201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-11T18:32:44Z</dc:date>
    </item>
  </channel>
</rss>

