<?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 runtime error for assign in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-for-assign/m-p/6518536#M1424787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ahve following snippet of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF lt_temp, &lt;/P&gt;&lt;P&gt;                    buffer(30000), &lt;/P&gt;&lt;P&gt;            END OF lt_temp.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;l_wa&amp;gt; TYPE ANY, &lt;/P&gt;&lt;P&gt;                                &amp;lt;l_comp&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;  ASSIGN lt_temp TO &amp;lt;l_wa&amp;gt; CASTING TYPE (p_table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i give p_table value such as AUSP (which contains FLTP fields), i am getting a runtime error at ASSIGN statement as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(((((((In the current program "SAPLY_TEST", an error occurred when setting the&lt;/P&gt;&lt;P&gt;field symbol "&amp;lt;WA&amp;gt;" with ASSIGN or ASSIGNING (maybe in the combination with&lt;/P&gt;&lt;P&gt; the CASTING addition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When converting the base entry of the field symbol "&amp;lt;WA&amp;gt;" (number in base&lt;/P&gt;&lt;P&gt;table: 33986), it was found that the target type requests a memory&lt;/P&gt;&lt;P&gt;alignment of 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the source data object has an invalid memory alignment, that is&lt;/P&gt;&lt;P&gt; an alignment not divisible by 8.))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for other tables its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i rectify the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2010 13:18:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-12T13:18:12Z</dc:date>
    <item>
      <title>runtime error for assign</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-for-assign/m-p/6518536#M1424787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ahve following snippet of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF lt_temp, &lt;/P&gt;&lt;P&gt;                    buffer(30000), &lt;/P&gt;&lt;P&gt;            END OF lt_temp.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;l_wa&amp;gt; TYPE ANY, &lt;/P&gt;&lt;P&gt;                                &amp;lt;l_comp&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;  ASSIGN lt_temp TO &amp;lt;l_wa&amp;gt; CASTING TYPE (p_table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i give p_table value such as AUSP (which contains FLTP fields), i am getting a runtime error at ASSIGN statement as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(((((((In the current program "SAPLY_TEST", an error occurred when setting the&lt;/P&gt;&lt;P&gt;field symbol "&amp;lt;WA&amp;gt;" with ASSIGN or ASSIGNING (maybe in the combination with&lt;/P&gt;&lt;P&gt; the CASTING addition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When converting the base entry of the field symbol "&amp;lt;WA&amp;gt;" (number in base&lt;/P&gt;&lt;P&gt;table: 33986), it was found that the target type requests a memory&lt;/P&gt;&lt;P&gt;alignment of 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the source data object has an invalid memory alignment, that is&lt;/P&gt;&lt;P&gt; an alignment not divisible by 8.))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for other tables its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i rectify the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 13:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-for-assign/m-p/6518536#M1424787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T13:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: runtime error for assign</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-for-assign/m-p/6518537#M1424788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you keep it simple as this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: TEST_DATA TYPE REF TO DATA,
      P_TABLE TYPE STRING.

FIELD-SYMBOLS: &amp;lt;FS&amp;gt; TYPE ANY.

P_TABLE = 'SPFLI'.

CREATE DATA TEST_DATA TYPE (P_TABLE).
ASSIGN TEST_DATA-&amp;gt;* TO &amp;lt;FS&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 16:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-for-assign/m-p/6518537#M1424788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T16:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: runtime error for assign</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-for-assign/m-p/6518538#M1424789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Blag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i cant keep that simple, because, this is a RFC FM, which gives records from table(p_table). in this case, i cant have FM interface a generic type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 04:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-for-assign/m-p/6518538#M1424789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-13T04:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: runtime error for assign</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-for-assign/m-p/6518539#M1424790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to interface a generic type...I would do it like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAB_NAME TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would you would pass the name of the required table and use it to generate the field-symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 14:22:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-for-assign/m-p/6518539#M1424790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-13T14:22:54Z</dc:date>
    </item>
  </channel>
</rss>

