<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317647#M508450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  try to get the rowcount of internal table using  DESCRIBE TABLE IntTab LINES lin and then use loop at screen to enable the empty rows.&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;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2007 05:03:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-30T05:03:31Z</dc:date>
    <item>
      <title>table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317643#M508446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a table control ,there is Serial no and verson no Columns. The serial no is generated as soon as it press ADD button on screen.Corressponding one generated Serial no , i need to generate version nos when i press ADD button again. and next time when i logon again in CHANGE or CREATE mode. The serail no is generated again say 2 and agin new version nos like 1,2,3,4,5 are generated could anyone help me in this..if someone could send me a sample code, then it would be really nice . I am using following code to generated Serial no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;P&gt;DATA l_zvig_pack_dates LIKE wa_zvig_pack_dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Get the Max S.No from the internal table and add 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_zvig_pack_dates.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;reading the last line in wa&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  READ TABLE it_zvig_pack_dates&lt;/P&gt;&lt;P&gt;        INTO l_zvig_pack_dates&lt;/P&gt;&lt;P&gt;       INDEX tbc_actions-lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_zvig_pack_dates-sno = l_zvig_pack_dates-sno + 1.&lt;/P&gt;&lt;P&gt;  wa_zvig_pack_dates-mark = ' '.&lt;/P&gt;&lt;P&gt;  APPEND wa_zvig_pack_dates TO it_zvig_pack_dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***getting the last line of table control to get the SNO&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE it_zvig_pack_dates&lt;/P&gt;&lt;P&gt;           LINES tbc_actions-lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************************************&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;sandeep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SANDEEP SINGH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 03:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317643#M508446</guid>
      <dc:creator>SandySingh</dc:creator>
      <dc:date>2007-05-30T03:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317644#M508447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Refer to these related threads&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="423709"&gt;&lt;/A&gt;&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="2970876"&gt;&lt;/A&gt;&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="2166526"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 03:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317644#M508447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T03:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317645#M508448</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;1) Have a field FLAG in the table control internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) User-command in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE SY-UCOMM.
  WHEN 'ADD'.    " When ADD button is pressed.
    CLEAR WA.
    WA-FLAG = 'I'.
    APPEND WA TO ITAB.

ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Module in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT ITAB WITH CONTROL TC.
  MODULE enable.
ENDLOOP.

MODULE ENABLE.

* Process the screen internal table.
  LOOP AT SCREN. 

  IF WA-FLAG = 'I'.
    SCREEN-INPUT = 1.    " Enable for input.
  ELSE.
    SCREEN-INPUT = 0.    " Disable for input.
  ENDIF. 

ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 03:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317645#M508448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T03:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317646#M508449</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;     Try doing like this: in the PAI of your flow logic,add this logic , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case sy-ucomm.&lt;/P&gt;&lt;P&gt;      when 'ADD'.&lt;/P&gt;&lt;P&gt;       loop at screen.       &lt;/P&gt;&lt;P&gt;         screen-input = 1. &lt;/P&gt;&lt;P&gt;         modify screen.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;     Write a logic for adding a line into your code . ( u may append a blank line to your table control  ) .&lt;/P&gt;&lt;P&gt;    endcase .&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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 04:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317646#M508449</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-05-30T04:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317647#M508450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  try to get the rowcount of internal table using  DESCRIBE TABLE IntTab LINES lin and then use loop at screen to enable the empty rows.&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;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 05:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2317647#M508450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T05:03:31Z</dc:date>
    </item>
  </channel>
</rss>

