<?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 Syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3578522#M861448</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;I got syntax error in the following Hide statements.Anyone pls explain what is the purpose of the following hide statements. shall i remove this statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My syntax error is &lt;/P&gt;&lt;P&gt;You cannot use HIDE for a read-only field (constant, literal,...) . . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me out		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  CLEAR ZPLTCOMDAT.&lt;/P&gt;&lt;P&gt;  WRITE: 5(17) 'Company code'.&lt;/P&gt;&lt;P&gt; HIDE: ''.  "AA  &lt;/P&gt;&lt;P&gt;  WRITE: /5    '============'.&lt;/P&gt;&lt;P&gt;HIDE: ''.   "AA&lt;/P&gt;&lt;P&gt;  SELECT * FROM ZPLTCOMDAT ORDER BY ZCOMP_CODE.&lt;/P&gt;&lt;P&gt;    WRITE: /(4) ZPLTCOMDAT-ZCOMP_CODE UNDER 'Company code' COLOR 4.&lt;/P&gt;&lt;P&gt;    HIDE ZPLTCOMDAT.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 03:36:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-25T03:36:32Z</dc:date>
    <item>
      <title>Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3578522#M861448</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;I got syntax error in the following Hide statements.Anyone pls explain what is the purpose of the following hide statements. shall i remove this statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My syntax error is &lt;/P&gt;&lt;P&gt;You cannot use HIDE for a read-only field (constant, literal,...) . . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me out		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  CLEAR ZPLTCOMDAT.&lt;/P&gt;&lt;P&gt;  WRITE: 5(17) 'Company code'.&lt;/P&gt;&lt;P&gt; HIDE: ''.  "AA  &lt;/P&gt;&lt;P&gt;  WRITE: /5    '============'.&lt;/P&gt;&lt;P&gt;HIDE: ''.   "AA&lt;/P&gt;&lt;P&gt;  SELECT * FROM ZPLTCOMDAT ORDER BY ZCOMP_CODE.&lt;/P&gt;&lt;P&gt;    WRITE: /(4) ZPLTCOMDAT-ZCOMP_CODE UNDER 'Company code' COLOR 4.&lt;/P&gt;&lt;P&gt;    HIDE ZPLTCOMDAT.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3578522#M861448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T03:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3578523#M861449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can not use HIDE statement on Constant and readonly fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use it for hiding the dynamic values of a variables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HIDE dobj.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement stores the content of a variable dobj together with the current list line whose line number is contained in sy-linno in the hide area of the current list level. The data type of the variables dobj must be flat and no field symbols can be specified that point to rows of internal tables, and no class attributes can be specified. The stored values can be read as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each user action in a displayed screen list that leads to a list result, all the row values stored using HIDE - that is, the row on which the screen cursor is positioned at the time of the event - are assigned to the respective variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a list row of an arbitrary list level is read or modified using the statements READ LINE or MODIFY LINE, all the values of this row stored using HIDE are assigned to the respective variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The HIDE statement works independently of whether the list cursor was set. In particular, variables for empty list rows can be stored - that is, rows in which the list cursor was positioned using statements like SKIP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The HIDE statement should be executed immediately at the statement that has set the list cursor in the row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outside of classes, prior to release 7.0, for dobj constants and literals could still be specified. However, it was not possible to read them at list events and in the READ LINE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Storing square numbers and cubic numbers for a list of numbers. The example shows that arbitrary variables can be stored independently of row content. In the real situation, one would more likely store only the number and execute the calculation, when required, in the the event block for AT LINE-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: square TYPE i, &lt;/P&gt;&lt;P&gt;cube TYPE i. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;FORMAT HOTSPOT. &lt;/P&gt;&lt;P&gt;DO 10 TIMES. &lt;/P&gt;&lt;P&gt;square = sy-index ** 2. &lt;/P&gt;&lt;P&gt;cube = sy-index ** 3. &lt;/P&gt;&lt;P&gt;WRITE / sy-index. &lt;/P&gt;&lt;P&gt;HIDE: square, cube. &lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION. &lt;/P&gt;&lt;P&gt;WRITE: square, cube.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIDE f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The contents of f related to the current output line are stored. If this line is selected, f is filled automatically with the stored value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection can be made using: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT PFx &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ LINE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not have to output the field with WRITE in order to be able to store its value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The HIDE statement does not support structures that contain tables (deep structures). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields that are particularly useful in interactive reporting are listed in the system fields for lists documentation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot save lines or components of lines of an internal table that is addressed using a field symbol to the HIDE area. (Compare the ASSIGNING addition to the READ and LOOP statements). Assign the contents of the line or component to a global variable and save this instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only write variables to the HIDEarea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP Objects, the following statements acause an error message: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIDE: '...', f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: f1, f2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIDE: f1, f2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interactive list events cause the fields hidden by the HIDE command to be overwritten with values in the HIDE area, which means that they must be changeable.n. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also look at program &lt;STRONG&gt;DEMO_LIST_HIDE&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at below thread as well..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5085930"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3578523#M861449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T03:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3578524#M861450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;HIDE technique&lt;/P&gt;&lt;P&gt;In this case thins are much simpler. Consider the case, wherein you display fields from table sflight in basic list. When user double clicks on any sflight-carrid, you are displaying the detailed information related to that particular carrid on secondary list.  Hence there is a need to store the clicked carrid in some variable.  So that you can access this carrid for next list. ABAP/4 has facility; a statement called HIDE, which provides the above functionality.&lt;/P&gt;&lt;P&gt;HIDE command temporarily stores the content of clicked field in system area.&lt;/P&gt;&lt;P&gt; Syntax:&lt;/P&gt;&lt;P&gt;HIDE &amp;lt;FIELDS&amp;gt;.&lt;/P&gt;&lt;P&gt;This statement stores the contents of variable &amp;lt;f&amp;gt; in relation to the current output line (system field SY-LINNO) internally in the so-called HIDE area. The variable &amp;lt;f&amp;gt; must not necessarily appear on the current line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to place the HIDE statement always directly after the output statement i.e., WRITE for the variable &amp;lt;f&amp;gt;.  As when you hide the variable, control is passed to next record.  While writing, WRITE statement takes that record from header and writes it on to the list, but when writing onto your interactive list you will miss out 1st record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To hide several variables, use chain HIDE statement.&lt;/P&gt;&lt;P&gt;As soon as the user selects a line for which you stored HIDE fields, the system fills the variables in the program with the values stored.  A line can be selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3578524#M861450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T03:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3578525#M861451</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;at first you should create a table work area as like follows:&lt;/P&gt;&lt;P&gt;Then SAP reveals that you should not use the command HIDE following with literals. The HIDE statement should follow with a data object.Please try the following code. It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : ZPLTCOMDAT.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;CLEAR ZPLTCOMDAT.&lt;/P&gt;&lt;P&gt;WRITE: 5(17) 'Company code'.&lt;/P&gt;&lt;P&gt;*HIDE . "AA&lt;/P&gt;&lt;P&gt;WRITE: /5 '============'.&lt;/P&gt;&lt;P&gt;*HIDE: ''. "AA&lt;/P&gt;&lt;P&gt;SELECT * FROM ZPLTCOMDAT.&lt;/P&gt;&lt;P&gt;WRITE: /(4) ZPLTCOMDAT-zcomp_code UNDER 'Company code' COLOR 4.&lt;/P&gt;&lt;P&gt;HIDE ZPLTCOMDAT.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 04:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/3578525#M861451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T04:00:16Z</dc:date>
    </item>
  </channel>
</rss>

