<?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: Disable Specific Cell in Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715385#M2019402</link>
    <description>&lt;P&gt;Yes, the code is in PBO, module. but it disables full field , not just one cell.&lt;/P&gt;&lt;P&gt;I've also updated the question with PBO code.&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 06:45:32 GMT</pubDate>
    <dc:creator>dukejib5</dc:creator>
    <dc:date>2023-05-24T06:45:32Z</dc:date>
    <item>
      <title>Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715382#M2019399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;EDIT: Thanks all for the code correction. Actual problem was , i was modifying Screen after LOOP AT ITAB in PBO as well. Commenting it out solved the problem.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;I am trying to disable a specific cell in one row only of a table control.&lt;/P&gt;
  &lt;P&gt;I've tried using table-cols and specific cell, but it disables all cells in the field.&lt;/P&gt;
  &lt;P&gt;Can someone please guide me for the same.&lt;/P&gt;
  &lt;P&gt;Tried following code:&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;PBO&lt;/STRONG&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt; LOOP AT   IT_LINEITEM
       INTO WA_LINEITEM
       WITH CONTROL TCNR
       CURSOR TCNR-CURRENT_LINE.
    MODULE TCNR_GET_LINES.
    MODULE DISABLE_DOCUMENT_QUANTITY.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;MODULE - CORRECTED CODE&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;MODULE DISABLE_DOCUMENT_QUANTITY OUTPUT. 
* CORRECTED CODE  
IF WA_LINEITEM-DCNUMBER NE ''.
    LOOP AT SCREEN.
      IF SCREEN-NAME = 'WA_LINEITEM-QUANTITY' .
        SCREEN-INPUT = '0'.
        SCREEN-INTENSIFIED = '1'.
        MODIFY-SCREEN.
      ENDIF.
    ENDLOOP.
ENDIF.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Please note that this is a dynamically populated table control.&lt;/P&gt;
  &lt;P&gt;Only possibility, i think of is dynamically giving a name to specific cell and then disable it.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2170195-issue.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 04:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715382#M2019399</guid>
      <dc:creator>dukejib5</dc:creator>
      <dc:date>2023-05-24T04:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715383#M2019400</link>
      <description>&lt;P&gt;in your PBO logic code, you must have a LOOP, WITH CONTROL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In this loop&lt;/STRONG&gt; call some module&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If required,  not with AT ITAB, read the corresponding internal table record and map values to abap and dynpro fields&lt;/LI&gt;&lt;LI&gt;Then execute a LOOP AT SCREEN for this record, here you can modify attributes of cells of this displayed record&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 24 May 2023 05:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715383#M2019400</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-05-24T05:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715384#M2019401</link>
      <description>&lt;P&gt;LOOP AT SCREEN. MODIFY SCREEN. ENDLOOP outside of LOOP WITH CONTROL modifies the entire column, inside - modifies the cell in the current row.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 06:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715384#M2019401</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2023-05-24T06:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715385#M2019402</link>
      <description>&lt;P&gt;Yes, the code is in PBO, module. but it disables full field , not just one cell.&lt;/P&gt;&lt;P&gt;I've also updated the question with PBO code.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 06:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715385#M2019402</guid>
      <dc:creator>dukejib5</dc:creator>
      <dc:date>2023-05-24T06:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715386#M2019403</link>
      <description>&lt;P&gt;As stated in the answers, make sure that the 'loop at screen' syntax is called in PBO inside the 'loop ... with table control'. &lt;BR /&gt;If you change the screen property outside of the table control loop, it will modify all of the row of specified column / fieldname.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 06:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715386#M2019403</guid>
      <dc:creator>xiswanto</dc:creator>
      <dc:date>2023-05-24T06:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715387#M2019404</link>
      <description>&lt;SPAN class="mention-scrubbed"&gt;xiswanto&lt;/SPAN&gt;&lt;P&gt;Is this what you are saying?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab
  into wtab
  with tablecontrol.

  loop at screen.
    moduel modify-row.
  endloop.
endloop.
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}.L0S31 {
font-style: italic;
color: #808080;
}.L0S52 {
color: #0000FF;
}.L0S55 {
color: #800080;
}.L0S70 {
color: #8080&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But this is raising error of "invalid nesting of loop"&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 07:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715387#M2019404</guid>
      <dc:creator>dukejib5</dc:creator>
      <dc:date>2023-05-24T07:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715388#M2019405</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;dukejib5&lt;/SPAN&gt; In SCREEN-NAME, don't indicate the temporary ABAP variable, indicate the&lt;STRONG&gt; field name from your DYNPRO.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Wrong:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF SCREEN-NAME = WA_LINEITEM-QUANTITY .&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Correct:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF SCREEN-NAME = 'XXXXXXX-XXXXXX' . " &amp;lt;=== must be the SCREEN FIELD NAME&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 May 2023 07:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715388#M2019405</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-24T07:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715389#M2019406</link>
      <description>&lt;P&gt;Upon taking a closer look on your original code, the issue is because you wrote the syntax incorrectly hence the TRUE condition will never occur.&lt;/P&gt;&lt;P&gt;should be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF SCREEN-NAME = 'WA_LINEITEM-QUANTITY'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;logically speaking, if you use the workarea without quote, it will check the value INSIDE the variable, not the variable name itself.&lt;/P&gt;&lt;P&gt;And, if you only need to disable certain rows instead of all rows, do add some additional logic along with the fieldname check.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 09:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715389#M2019406</guid>
      <dc:creator>xiswanto</dc:creator>
      <dc:date>2023-05-24T09:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715390#M2019407</link>
      <description>&lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt;&lt;P&gt; temporary variable is working fine. however i changed it to your corrected version.&lt;/P&gt;&lt;P&gt;Still, unable to disable the specific cell in row.&lt;/P&gt;&lt;P&gt;as  &lt;SPAN class="mention-scrubbed"&gt;raymond.giuseppi&lt;/SPAN&gt; suggested, i tried to add the below code, but it is raising error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab
  into wtab
  with tablecontrol.

  loop at screen.
    moduel modify-row.
  endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 May 2023 10:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715390#M2019407</guid>
      <dc:creator>dukejib5</dc:creator>
      <dc:date>2023-05-24T10:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715391#M2019408</link>
      <description>&lt;P&gt;Replace 'moduel modify-row.' with 'module modify_row.' &lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715391#M2019408</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-05-24T11:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Specific Cell in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715392#M2019409</link>
      <description>&lt;P&gt;Thanks for the resolution feedback (in the head of your question). You may close your question now (Actions &amp;gt; Close).&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 17:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-specific-cell-in-table-control/m-p/12715392#M2019409</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-24T17:10:18Z</dc:date>
    </item>
  </channel>
</rss>

