<?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: syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595293#M1436498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;lrf_message_handler TYPE REF TO if_hrpa_message_handler,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lt_text_tab TYPE hrpad_text_tab ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;lv_string TYPE string .&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;hrpad_text&amp;gt; LIKE LINE OF lt_text_tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change to &amp;lt;hrpad_text&amp;gt; type hrpad_text_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your internal table and your field symbol use the same TYPE....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2010 14:14:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-19T14:14:48Z</dc:date>
    <item>
      <title>syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595291#M1436496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i've used the code below to output text from a HR infotype text field in adhoc query. However, i'm getting a syntax error,&lt;/P&gt;&lt;P&gt; "LIKE" expected, not "LINE", when i run a code check for this, can anyone assist? thanks, Code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;lrf_message_handler TYPE REF TO if_hrpa_message_handler,&lt;/P&gt;&lt;P&gt;lt_text_tab TYPE hrpad_text_tab ,&lt;/P&gt;&lt;P&gt;lv_string TYPE string .&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;&amp;lt;hrpad_text&amp;gt; LIKE LINE OF lt_text_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P0016-ITXEX IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_ECM_READ_TEXT_INFOTYPE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;pernr = pernr-pernr&lt;/P&gt;&lt;P&gt;infty = '0102'&lt;/P&gt;&lt;P&gt;begda = p0102-begda&lt;/P&gt;&lt;P&gt;endda = p0102-endda&lt;/P&gt;&lt;P&gt;message_handler = lrf_message_handler&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;text_tab = lt_text_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_text_tab ASSIGNING &amp;lt;hrpad_text&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE lv_string &amp;lt;hrpad_text&amp;gt; INTO lv_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zhr_infotype_text = lv_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CLEAR zhr_infotype_text.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 13:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595291#M1436496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T13:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595292#M1436497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If hrpad_text_tab is a table type then your code seems to be correct. Perhaps save and activate it? What line does the syntax error occur?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 14:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595292#M1436497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T14:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595293#M1436498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;lrf_message_handler TYPE REF TO if_hrpa_message_handler,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lt_text_tab TYPE hrpad_text_tab ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;lv_string TYPE string .&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;hrpad_text&amp;gt; LIKE LINE OF lt_text_tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change to &amp;lt;hrpad_text&amp;gt; type hrpad_text_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your internal table and your field symbol use the same TYPE....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 14:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595293#M1436498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T14:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595294#M1436499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi dave,&lt;/P&gt;&lt;P&gt;thanks for that. getting another error message now:&lt;/P&gt;&lt;P&gt;Statement concluding with "...ASSIGNING" ended unexpectedly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code now as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;lrf_message_handler TYPE REF TO if_hrpa_message_handler, &lt;/P&gt;&lt;P&gt;lt_text_tab TYPE hrpad_text_tab , &lt;/P&gt;&lt;P&gt;lv_string TYPE string .&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;&amp;lt;hrpad_text&amp;gt; type hrpad_text_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF P0102-ITXEX IS NOT INITIAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_ECM_READ_TEXT_INFOTYPE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;pernr = pernr-pernr&lt;/P&gt;&lt;P&gt;infty = '0102'&lt;/P&gt;&lt;P&gt;begda = p0102-begda&lt;/P&gt;&lt;P&gt;endda = p0102-endda&lt;/P&gt;&lt;P&gt;message_handler = lrf_message_handler&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;text_tab = lt_text_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_text_tab ASSIGNING .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE lv_string  INTO lv_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ELSE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;CLEAR zhr_infotype_text.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zhr_infotype_text = lv_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CLEAR zhr_infotype_text.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 14:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595294#M1436499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T14:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595295#M1436500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't make sense because he obviously wants to use the field-symbol as a workarea for lt_text_tab. If they have the same type this doesn't work. hrpad_text_tab is a table type for HRPAD_TEXT. So the field-symbol should be TYPE HRPAD_TEXT or how he already did it by using the LIKE LINE OF-statement. The error message is either old or generated elsewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 14:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595295#M1436500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T14:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595296#M1436501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just goto se11 and check the line type of hrpad_text_tab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols:&amp;lt;fs&amp;gt; type &amp;lt;line type of hrpad_text_tab&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 14:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595296#M1436501</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-02-19T14:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595297#M1436502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that's because you didn't specify the field-symbol after ASSIGNING.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 14:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595297#M1436502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T14:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595298#M1436503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi roel/keshav&lt;/P&gt;&lt;P&gt;thanks for your updates. unfortunately, i understand precisely no abap at all!.. how should i amend the code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 14:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595298#M1436503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595299#M1436504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your initial code was correct. The last code you wrote here is not. Revert it back to LIKE LINE OF lt_text_tab and activate your sourcecode (CTRL+F3). See if it still gives an error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 14:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/6595299#M1436504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T14:38:48Z</dc:date>
    </item>
  </channel>
</rss>

