<?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: Assign Statement not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784488#M2023995</link>
    <description>&lt;P&gt;What error message?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 12:48:33 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-06-29T12:48:33Z</dc:date>
    <item>
      <title>Assign Statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784486#M2023993</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;
  &lt;P&gt;Kindly find the attached code. I have tried the assign statement. all the statement gives an error.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;LOOP AT t_t682z INTO DATA(lwa_varkey) WHERE qufna CS lv_qufna.
              lv_fieldname    = lwa_varkey-qustr.
              lv_fieldname+31 = '-'.
              lv_fieldname+32 = lwa_varkey-qufna.
              CONDENSE lv_fieldname NO-GAPS.
              CONCATENATE '''' lv_fieldname '''' INTO w_field.
              lv_fld = w_field.
              ASSIGN (w_field) TO &amp;lt;fs_qunfa&amp;gt;.
              ASSIGN (w_field) TO &amp;lt;f&amp;gt;.
              ASSIGN (lv_fld) TO &amp;lt;fs_qunfa&amp;gt;.
              ASSIGN (lv_fld) TO &amp;lt;f&amp;gt;.
              IF sy-subrc = 0.
                &amp;lt;fs_qunfa&amp;gt; = &amp;lt;fs_field&amp;gt;.
              ENDIF.
          ENDLOOP.&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Thanks with regards,&lt;BR /&gt;Vallamuthu M&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 11:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784486#M2023993</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2023-06-29T11:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784487#M2023994</link>
      <description>&lt;P&gt;I can't see the ASSIGN for &amp;lt;fs_field&amp;gt;???&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 12:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784487#M2023994</guid>
      <dc:creator>jens_michaelsen</dc:creator>
      <dc:date>2023-06-29T12:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784488#M2023995</link>
      <description>&lt;P&gt;What error message?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 12:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784488#M2023995</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-06-29T12:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784489#M2023996</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF line,
        col1 TYPE i VALUE 11,
        col2 TYPE i VALUE 22,
        col3 TYPE i VALUE 33,
      END OF line.

DATA comp(5) TYPE c VALUE 'COL3'.

FIELD-SYMBOLS: &amp;lt;f1&amp;gt; TYPE ANY, &amp;lt;f2&amp;gt; TYPE ANY, &amp;lt;f3&amp;gt; TYPE ANY.

ASSIGN line TO &amp;lt;f1&amp;gt;.
ASSIGN comp TO &amp;lt;f2&amp;gt;.

  DO 3 TIMES.
  ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;f1&amp;gt; TO &amp;lt;f3&amp;gt;.
  WRITE &amp;lt;f3&amp;gt;.
  ENDDO.

ASSIGN COMPONENT &amp;lt;f2&amp;gt; OF STRUCTURE &amp;lt;f1&amp;gt; TO &amp;lt;f3&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2023 17:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784489#M2023996</guid>
      <dc:creator>Eduardo-CE</dc:creator>
      <dc:date>2023-06-29T17:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784490#M2023997</link>
      <description>&lt;P&gt;Hi Sandra Rossi,&lt;/P&gt;&lt;P&gt;Thanks for your update.&lt;/P&gt;&lt;P&gt; sy-subrc = 4. &lt;/P&gt;&lt;P&gt;Thanks with regards,&lt;/P&gt;&lt;P&gt;Vallamuthu M.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 06:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784490#M2023997</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2023-06-30T06:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784491#M2023998</link>
      <description>&lt;P&gt;I have assign the field to KOMK and KOMP field.&lt;/P&gt;&lt;P&gt;Thanks with regards,&lt;/P&gt;&lt;P&gt;Vallamuthu M.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 06:23:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784491#M2023998</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2023-06-30T06:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784492#M2023999</link>
      <description>&lt;P&gt;If you do that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN (w_field) TO &amp;lt;fs_qunfa&amp;gt;.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the variable W_FIELD must contain a variable name WITHOUT QUOTES, so, instead of doing this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE '''' lv_fieldname '''' INTO w_field.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you should just do that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;w_field = lv_fieldname.

ASSIGN (w_field) TO &amp;lt;fs_qunfa&amp;gt;.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Jun 2023 18:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784492#M2023999</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-06-30T18:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784493#M2024000</link>
      <description>&lt;P&gt;Love it. Prefixing field-symbols with FS. As though &amp;lt; &amp;gt; wasn't sufficient identifier!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 19:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement-not-working/m-p/12784493#M2024000</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-06-30T19:20:29Z</dc:date>
    </item>
  </channel>
</rss>

