<?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: Insert lines in Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622942#M1440689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radhika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my business logic it should be in output mod only,inserting  lines only for manually entering data or may be from &lt;/P&gt;&lt;P&gt;table control depending upon the business requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2010 10:43:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-28T10:43:16Z</dc:date>
    <item>
      <title>Insert lines in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622940#M1440687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have set my table control fields as out put mod only,when i am selecting some records from other table control it is coming&lt;/P&gt;&lt;P&gt; and sit in the first table control,but as i set the fields of first table control in an output mod so empty fields are in gray mod,as &lt;/P&gt;&lt;P&gt;per my business logic i want to insert some lines  so that i can insert some records how can i do this,i am using one &lt;/P&gt;&lt;P&gt;module insert_lines in PBO and under that i am using this code given below but it is not working can you help how can i proceed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         MODULE insert_lines OUTPUT.&lt;/P&gt;&lt;P&gt;          DESCRIBE TABLE x_po1_slip LINES tabcon-lines.&lt;/P&gt;&lt;P&gt;            IF sy-ucomm = 'INSE'.&lt;/P&gt;&lt;P&gt;              tabcon-lines = tabcon-lines + 3.&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;       ENDMODULE.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622940#M1440687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert lines in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622941#M1440688</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 this&lt;/P&gt;&lt;P&gt;INSERT INITIAL LINE INTO IT_TAB INDEX tabctrl-currentline where it_tab is the internal table for table control&lt;/P&gt;&lt;P&gt;then loop at screen and make the fields as editable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Radhika Parag Rajopadhye on Jan 28, 2010 11:29 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622941#M1440688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Insert lines in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622942#M1440689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radhika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my business logic it should be in output mod only,inserting  lines only for manually entering data or may be from &lt;/P&gt;&lt;P&gt;table control depending upon the business requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622942#M1440689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Insert lines in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622943#M1440690</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 have the following logic in the PBO and it works fine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: tab_fill TYPE i,&lt;/P&gt;&lt;P&gt;calc_fill TYPE i,&lt;/P&gt;&lt;P&gt;add_fill type i,&lt;/P&gt;&lt;P&gt;no_lines_add type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: tab_fill, calc_fill, add_fill, no_lines_add.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*check the current line number and the data filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE g_tc_rate_card_itab LINES tab_fill. &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;"g_tc_rate_card_itab----&amp;gt; internal table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  IF tab_fill GE 7.&lt;/P&gt;&lt;P&gt;    calc_fill = tab_fill MOD 7. &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt; " Initial 7 rows are available in the table for input u can change this as per you requirement or the no. of rows initially available in your screen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    IF calc_fill = 0.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     add_fill = tab_fill / 7.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     add_fill = add_fill + 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     no_lines_add = 7 * add_fill.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      tc_rate_card-lines  =  no_lines_add.  &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;" tc_rate_card -&lt;/SPAN&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;&amp;gt; Table control name&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By this way you can get rid of the ADD button since as soon as the 7th row is filled with data it adds up more 7 rows in the table control which are read for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijit G. Borakr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622943#M1440690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Insert lines in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622944#M1440691</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;If you have all the fields in the table control in the output mode, then after pressing for adding new record,&lt;/P&gt;&lt;P&gt;the new lines added to the table control will also be in the output mode i.e. you cannot enter any value manually there.&lt;/P&gt;&lt;P&gt;So you have to make these lines editable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 11:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-lines-in-table-control/m-p/6622944#M1440691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T11:58:53Z</dc:date>
    </item>
  </channel>
</rss>

