<?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: Passing value to Work area Column dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606856#M1862491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;Jörg says&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT W_FIELD OF STRUCTURE W_ITAB TO &amp;lt;FS_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp; MOVE &amp;lt;FS_STRING&amp;gt; TO &amp;lt;FS_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 13:16:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-09-17T13:16:53Z</dc:date>
    <item>
      <title>Passing value to Work area Column dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606851#M1862486</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;I have a requirement to pass value to work area field and field name will be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are details :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Loop at string &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. split values according to offset and length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. now first value for field lifnr is available in w_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Now move w_lifnr to w_itab-lifnr ...........................&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; here&amp;nbsp; field lifnr of w_itab will be dynamic. it will vary in each iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we change fields of work area dynamically and move respective values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like w_itab-(w_field)&amp;nbsp;&amp;nbsp; and w_field will have different value in each iteration like lifnr,vtweg,vkorg etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cannot hardcode these values ,field name of w_itab needs to be passed dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanjana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 11:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606851#M1862486</guid>
      <dc:creator>sanjana_lingras</dc:creator>
      <dc:date>2014-09-17T11:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value to Work area Column dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606852#M1862487</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 need to upload the defination of the strcuture W_ITAB, you can use the class CL_ABAP_STRUCTDESCR, somthing like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;DATA: &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.63636302948px;"&gt;ABAP_STRUCT TYPE REF TO &lt;/SPAN&gt;CL_ABAP_STRUCTDESCR.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ABAP_STRUCT ?= CL_ABAP_STRUCTDESCR=&amp;gt;DESCRIBE_BY_DATA( W_ITAB ).&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in attribute COMPONENTS you'll have the fieldname of W_ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how to assign the fields to a certain value depends on your development&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 12:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606852#M1862487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-17T12:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value to Work area Column dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606853#M1862488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjana,&lt;/P&gt;&lt;P&gt; w_itab-(w_field) will not work.&lt;/P&gt;&lt;P&gt;Basically there are two options available.&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;If w_field had not only the fieldname but tablename as well&lt;/P&gt;&lt;P&gt;like w_field = 'W_ITAB-LIFNR'.&lt;/P&gt;&lt;P&gt;then (w_field) = new_value would work.&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;using a field-symbol&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_field&amp;gt; type any.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT w_field OF STRUCTURE w_itab TO &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;fs_field&amp;gt; = new_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards - Jörg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 12:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606853#M1862488</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2014-09-17T12:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value to Work area Column dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606854#M1862489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use field symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 12:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606854#M1862489</guid>
      <dc:creator>Noorie</dc:creator>
      <dc:date>2014-09-17T12:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value to Work area Column dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606855#M1862490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the field name but values needs to be moved w_itab-(fieldname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_field = 'VKORG'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want move &amp;lt;fs_string&amp;gt; value to w_itab-w_field (*** w_field will change everytime which will have dynamic values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sanjana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 12:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606855#M1862490</guid>
      <dc:creator>sanjana_lingras</dc:creator>
      <dc:date>2014-09-17T12:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value to Work area Column dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606856#M1862491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;Jörg says&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT W_FIELD OF STRUCTURE W_ITAB TO &amp;lt;FS_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp; MOVE &amp;lt;FS_STRING&amp;gt; TO &amp;lt;FS_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-value-to-work-area-column-dynamically/m-p/10606856#M1862491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-17T13:16:53Z</dc:date>
    </item>
  </channel>
</rss>

