<?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: Table control logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839242#M1472811</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;  Karan &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check  what this logic does is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have  quantity fields  if in internal table it_qty-qty1 have value 0 then it will be editable else it will be in display mode &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do like this  in PBO module   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call module and put this logic in it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at screen.&lt;/P&gt;&lt;P&gt;    if ( screen-name = 'IT_QTY-QTY1' and it_qty-qty1 = 0 ) or ( screen-name = 'IT_QTY-QTY2' and it_qty-qty2 = 0 )&lt;/P&gt;&lt;P&gt;      or ( screen-name = 'IT_QTY-QTY3' and it_qty-qty3 = 0 )  or ( screen-name = 'IT_QTY-QTY4' and it_qty-qty4 = 0 )&lt;/P&gt;&lt;P&gt;      or ( screen-name = 'IT_QTY-QTY5' and it_qty-qty5 = 0 )  or  ( screen-name = 'IT_QTY-QTY6' and it_qty-qty6 = 0 )&lt;/P&gt;&lt;P&gt;      or ( screen-name = 'IT_QTY-QTY7' and it_qty-qty7 = 0 ) or ( screen-name = 'IT_QTY-QTY8' and it_qty-qty8 = 0 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      screen-input = 1.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepak .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Apr 2010 11:08:00 GMT</pubDate>
    <dc:creator>deepak_dhamat</dc:creator>
    <dc:date>2010-04-05T11:08:00Z</dc:date>
    <item>
      <title>Table control logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839238#M1472807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table control in which if some values are already displayed (exist In the internal table) then those rows need to be in display mode only and rest rows in edit mode to add more values, how to do it , I am usig below logic but it is doing for all fields as there is no check for existing values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( screen-name = 'GI_PMPB_BCHID-SEL' ).&lt;/P&gt;&lt;P&gt;     screen-input = 1.&lt;/P&gt;&lt;P&gt;    ELSEIF ( screen-name = 'GI_PMPB_BCHID-PMPB'&lt;/P&gt;&lt;P&gt;            OR screen-name = 'GI_PMPB_BCHID-BATCHID' ).&lt;/P&gt;&lt;P&gt;      screen-input = 0.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here first col is enables and rest two disabled but i want forst col in eit mode thru out and rest two disabled for filled values only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 08:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839238#M1472807</guid>
      <dc:creator>Karan_Chopra_</dc:creator>
      <dc:date>2010-04-05T08:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table control logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839239#M1472808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Karan,&lt;/P&gt;&lt;P&gt;For more info Check the below thread and feel free to come back if needed&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="8583450"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"To continue with your code_
IF ( screen-name = 'GI_PMPB_BCHID-SEL' ).
screen-input = 1.
modify screen " This needs to be added
ELSEIF ( screen-name = 'GI_PMPB_BCHID-PMPB'
OR screen-name = 'GI_PMPB_BCHID-BATCHID' ).
screen-input = 0.
modify screen " This needs to be added
ENDIF.
Otherwise 

in PBO


module status_100.

in program.
describte table itab lines tc-lines. " this makes all the filled Filled Rows greyed out

if tc-lines &amp;gt; 0.
tc-lines = tc-lines + 10. " You can increase this based on your requirement
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 08:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839239#M1472808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-05T08:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table control logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839240#M1472809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still not able to solve entries with values are enbled and blank fields are disbled &lt;/P&gt;&lt;P&gt;i want opposite , just wanna know how to catch table fields with values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 10:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839240#M1472809</guid>
      <dc:creator>Karan_Chopra_</dc:creator>
      <dc:date>2010-04-05T10:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table control logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839241#M1472810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 10:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839241#M1472810</guid>
      <dc:creator>Karan_Chopra_</dc:creator>
      <dc:date>2010-04-05T10:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table control logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839242#M1472811</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;  Karan &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check  what this logic does is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have  quantity fields  if in internal table it_qty-qty1 have value 0 then it will be editable else it will be in display mode &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do like this  in PBO module   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call module and put this logic in it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at screen.&lt;/P&gt;&lt;P&gt;    if ( screen-name = 'IT_QTY-QTY1' and it_qty-qty1 = 0 ) or ( screen-name = 'IT_QTY-QTY2' and it_qty-qty2 = 0 )&lt;/P&gt;&lt;P&gt;      or ( screen-name = 'IT_QTY-QTY3' and it_qty-qty3 = 0 )  or ( screen-name = 'IT_QTY-QTY4' and it_qty-qty4 = 0 )&lt;/P&gt;&lt;P&gt;      or ( screen-name = 'IT_QTY-QTY5' and it_qty-qty5 = 0 )  or  ( screen-name = 'IT_QTY-QTY6' and it_qty-qty6 = 0 )&lt;/P&gt;&lt;P&gt;      or ( screen-name = 'IT_QTY-QTY7' and it_qty-qty7 = 0 ) or ( screen-name = 'IT_QTY-QTY8' and it_qty-qty8 = 0 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      screen-input = 1.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepak .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 11:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-logic/m-p/6839242#M1472811</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2010-04-05T11:08:00Z</dc:date>
    </item>
  </channel>
</rss>

