<?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: dynamic field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field/m-p/3248509#M775511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Dynamic field means:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In certain conditions you don't know what is the data&lt;/P&gt;&lt;P&gt;type of input fileds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To catch those values general data variable declaration  will not work .For those you need to declare Fields symbles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STR_DYNAMIC type string.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;FS_DYNAMIC&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STR_DYNAMIC = 'st_vbak-vbeln'.&lt;/P&gt;&lt;P&gt;ASSIGN (STR_DYNAMIC) TO &amp;lt;FS_DYNAMIC&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2008 04:50:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-14T04:50:58Z</dc:date>
    <item>
      <title>dynamic field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field/m-p/3248507#M775509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is a dynamic field and what is its use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 04:42:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field/m-p/3248507#M775509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T04:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field/m-p/3248508#M775510</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 can assign value to the field at runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STR_DYNAMIC type string.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;FS_DYNAMIC&amp;gt; type any.&lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;STR_DYNAMIC = 'st_vbak-vbeln'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the value in STR_DYNAMIC is actually the fieldname whose value you want to read.&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;ASSIGN (STR_DYNAMIC) TO &amp;lt;FS_DYNAMIC&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above step takes the fieldname and then assigns the value stored in that fieldname to the field symbol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally Assign statements can give Short Dumps if the assignment is not possible. So recommended approach is check for sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the below code in If condition.&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;IF sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&amp;lt;FS_DYNAMIC&amp;gt; = field_value. "or your value&lt;/P&gt;&lt;P&gt;UNASSIGN &amp;lt;FS_DYNAMIC&amp;gt;. "This step is required to free up assignment&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 04:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field/m-p/3248508#M775510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T04:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field/m-p/3248509#M775511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Dynamic field means:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In certain conditions you don't know what is the data&lt;/P&gt;&lt;P&gt;type of input fileds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To catch those values general data variable declaration  will not work .For those you need to declare Fields symbles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STR_DYNAMIC type string.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;FS_DYNAMIC&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STR_DYNAMIC = 'st_vbak-vbeln'.&lt;/P&gt;&lt;P&gt;ASSIGN (STR_DYNAMIC) TO &amp;lt;FS_DYNAMIC&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 04:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field/m-p/3248509#M775511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T04:50:58Z</dc:date>
    </item>
  </channel>
</rss>

