<?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 FCODE_TC_MARK_LINES  - Tablecontrol in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fcode-tc-mark-lines-tablecontrol/m-p/1938524#M387914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this part of standard code on a TableControl:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;FORM FCODE_TC_MARK_LINES USING P_TC_NAME&lt;/P&gt;&lt;P&gt;                               P_TABLE_NAME&lt;/P&gt;&lt;P&gt;                               P_MARK_NAME.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;SPWIZARD: EGIN OF LOCAL DATA----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA L_TABLE_NAME       LIKE FELD-NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;TC&amp;gt;         TYPE cxtab_control.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;TABLE&amp;gt;      TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;MARK_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;SPWIZARD: END OF LOCAL DATA----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN (P_TC_NAME) TO &amp;lt;TC&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: get the table, which belongs to the tc                     *&lt;/P&gt;&lt;P&gt;   CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body&lt;/P&gt;&lt;P&gt;   ASSIGN (L_TABLE_NAME) TO &amp;lt;TABLE&amp;gt;.                "not headerline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: mark all filled lines                                      *&lt;/P&gt;&lt;P&gt;  LOOP AT &amp;lt;TABLE&amp;gt; ASSIGNING &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: access to the component 'FLAG' of the table header         *&lt;/P&gt;&lt;P&gt;     ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE &amp;lt;WA&amp;gt; TO &amp;lt;MARK_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;MARK_FIELD&amp;gt; = 'X'.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I execute , I m position in the second register of the tablecontrol and i press the button ():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;i&amp;gt;WHEN 'MARK'.                      "mark all filled lines&lt;/P&gt;&lt;P&gt;       PERFORM FCODE_TC_MARK_LINES USING P_TC_NAME&lt;/P&gt;&lt;P&gt;                                         P_TABLE_NAME&lt;/P&gt;&lt;P&gt;                                         P_MARK_NAME   .&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;and error appears:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program tried to assign a new value to a field even though&lt;/P&gt;&lt;P&gt;it is protected against changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following objects are protected:&lt;/P&gt;&lt;P&gt;- Character or numeric literals,&lt;/P&gt;&lt;P&gt;- Constants (CONSTANTS),&lt;/P&gt;&lt;P&gt;- Function module and method parameters with the type IMPORTING&lt;/P&gt;&lt;P&gt;  REFERENCE,&lt;/P&gt;&lt;P&gt;- Untyped field symbols to which a field has not yet been assigned&lt;/P&gt;&lt;P&gt;  using ASSIGN,&lt;/P&gt;&lt;P&gt;- TABLES parameters, if the corresponding actual parameter is protected&lt;/P&gt;&lt;P&gt;  against changes,&lt;/P&gt;&lt;P&gt;- USING reference parameters and CHANGING parameters in subroutines, if&lt;/P&gt;&lt;P&gt;the&lt;/P&gt;&lt;P&gt;  actual parameter is protected against changes,&lt;/P&gt;&lt;P&gt;- Field symbols, if the field assigned using ASSIGN is protected against&lt;/P&gt;&lt;P&gt;  changes,&lt;/P&gt;&lt;P&gt;- External write access to attributes with the READ-ONLY property,&lt;/P&gt;&lt;P&gt;- Key components of lines of internal tables with the type HASHED or&lt;/P&gt;&lt;P&gt;  SORTED TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notas para corregir errores&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field you want to overwrite is a parameter or a field symbol:&lt;/P&gt;&lt;P&gt;Declare the parameter as a VALUE parameter or pass an auxiliary field&lt;/P&gt;&lt;P&gt;to which you assigned the value from the constant before the call.&lt;/P&gt;&lt;P&gt;Alternatively, you can assign the auxiliary field to the field symbol&lt;/P&gt;&lt;P&gt;instead of the constant.&lt;/P&gt;&lt;P&gt;If the error occurred in one of your own programs or in an SAP program&lt;/P&gt;&lt;P&gt;that you modified, try to correct it yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may able to find an interim solution to the problem&lt;/P&gt;&lt;P&gt;in the SAP note system. If you have access to the note system yourself,&lt;/P&gt;&lt;P&gt;use the following search criteria:&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;somebody knows what happends? is standard!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2007 17:40:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-20T17:40:02Z</dc:date>
    <item>
      <title>FCODE_TC_MARK_LINES  - Tablecontrol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fcode-tc-mark-lines-tablecontrol/m-p/1938524#M387914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this part of standard code on a TableControl:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;FORM FCODE_TC_MARK_LINES USING P_TC_NAME&lt;/P&gt;&lt;P&gt;                               P_TABLE_NAME&lt;/P&gt;&lt;P&gt;                               P_MARK_NAME.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;SPWIZARD: EGIN OF LOCAL DATA----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA L_TABLE_NAME       LIKE FELD-NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;TC&amp;gt;         TYPE cxtab_control.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;TABLE&amp;gt;      TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;MARK_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;SPWIZARD: END OF LOCAL DATA----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN (P_TC_NAME) TO &amp;lt;TC&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: get the table, which belongs to the tc                     *&lt;/P&gt;&lt;P&gt;   CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body&lt;/P&gt;&lt;P&gt;   ASSIGN (L_TABLE_NAME) TO &amp;lt;TABLE&amp;gt;.                "not headerline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: mark all filled lines                                      *&lt;/P&gt;&lt;P&gt;  LOOP AT &amp;lt;TABLE&amp;gt; ASSIGNING &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: access to the component 'FLAG' of the table header         *&lt;/P&gt;&lt;P&gt;     ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE &amp;lt;WA&amp;gt; TO &amp;lt;MARK_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;MARK_FIELD&amp;gt; = 'X'.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I execute , I m position in the second register of the tablecontrol and i press the button ():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;i&amp;gt;WHEN 'MARK'.                      "mark all filled lines&lt;/P&gt;&lt;P&gt;       PERFORM FCODE_TC_MARK_LINES USING P_TC_NAME&lt;/P&gt;&lt;P&gt;                                         P_TABLE_NAME&lt;/P&gt;&lt;P&gt;                                         P_MARK_NAME   .&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;and error appears:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program tried to assign a new value to a field even though&lt;/P&gt;&lt;P&gt;it is protected against changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following objects are protected:&lt;/P&gt;&lt;P&gt;- Character or numeric literals,&lt;/P&gt;&lt;P&gt;- Constants (CONSTANTS),&lt;/P&gt;&lt;P&gt;- Function module and method parameters with the type IMPORTING&lt;/P&gt;&lt;P&gt;  REFERENCE,&lt;/P&gt;&lt;P&gt;- Untyped field symbols to which a field has not yet been assigned&lt;/P&gt;&lt;P&gt;  using ASSIGN,&lt;/P&gt;&lt;P&gt;- TABLES parameters, if the corresponding actual parameter is protected&lt;/P&gt;&lt;P&gt;  against changes,&lt;/P&gt;&lt;P&gt;- USING reference parameters and CHANGING parameters in subroutines, if&lt;/P&gt;&lt;P&gt;the&lt;/P&gt;&lt;P&gt;  actual parameter is protected against changes,&lt;/P&gt;&lt;P&gt;- Field symbols, if the field assigned using ASSIGN is protected against&lt;/P&gt;&lt;P&gt;  changes,&lt;/P&gt;&lt;P&gt;- External write access to attributes with the READ-ONLY property,&lt;/P&gt;&lt;P&gt;- Key components of lines of internal tables with the type HASHED or&lt;/P&gt;&lt;P&gt;  SORTED TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notas para corregir errores&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field you want to overwrite is a parameter or a field symbol:&lt;/P&gt;&lt;P&gt;Declare the parameter as a VALUE parameter or pass an auxiliary field&lt;/P&gt;&lt;P&gt;to which you assigned the value from the constant before the call.&lt;/P&gt;&lt;P&gt;Alternatively, you can assign the auxiliary field to the field symbol&lt;/P&gt;&lt;P&gt;instead of the constant.&lt;/P&gt;&lt;P&gt;If the error occurred in one of your own programs or in an SAP program&lt;/P&gt;&lt;P&gt;that you modified, try to correct it yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may able to find an interim solution to the problem&lt;/P&gt;&lt;P&gt;in the SAP note system. If you have access to the note system yourself,&lt;/P&gt;&lt;P&gt;use the following search criteria:&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;somebody knows what happends? is standard!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 17:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fcode-tc-mark-lines-tablecontrol/m-p/1938524#M387914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T17:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: FCODE_TC_MARK_LINES  - Tablecontrol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fcode-tc-mark-lines-tablecontrol/m-p/1938525#M387915</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;It is a SAP System bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better to raise an Customer message with SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward suitable points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Atul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 17:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fcode-tc-mark-lines-tablecontrol/m-p/1938525#M387915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T17:51:00Z</dc:date>
    </item>
  </channel>
</rss>

