<?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: Make Input the Row (Line) in Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157866#M994027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do something like the following in the PAI USER_COMMAND module to copy an existing table control line (which may or may not be what you want to do).  GT_SPLITS is the internal table that underlies the table control. SELECT is the table control column that I told the table control wizard I wanted to use to record a selected line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR gs_splits.
   READ TABLE gt_splits INTO gs_splits
   WITH KEY select = 'X'.
   IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE 'Please select a line to copy.' TYPE 'I'.
   ELSE.
      CLEAR: gs_splits-spltbuzei, gs_splits-select.
      APPEND gs_splits TO gt_splits.
   ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 10:17:11 GMT</pubDate>
    <dc:creator>christine_evans</dc:creator>
    <dc:date>2008-07-21T10:17:11Z</dc:date>
    <item>
      <title>Make Input the Row (Line) in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157862#M994023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i want to make input  a row (line) in table control when a pushbutton click. I maked input a column in table control with loop at screen but i want to make input a row dinamically. Can somebody help me please ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 08:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157862#M994023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T08:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Make Input the Row (Line) in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157863#M994024</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;In case of giving the input to row in a table control,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. first capture it in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: get_entry_lines  LIKE sy-loopc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;Loop at &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;              with control &amp;lt;table control name&amp;gt;&lt;/P&gt;&lt;P&gt;             cursor &amp;lt;table control name&amp;gt;-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module &amp;lt;any name ex: get_lines&amp;gt;&lt;/P&gt;&lt;P&gt;u2026u2026u2026u2026u2026u2026..&lt;/P&gt;&lt;P&gt;u2026u2026u2026u2026u2026u2026u2026u2026&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module &amp;lt;get_lines&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get_entry_lines  sy-loopc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then change the internal table, which uses the structure of the table control with the given input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;Give this code in the push button, whose click event enables u to give a row input to the table control.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;      INDEX &amp;lt;table control name&amp;gt;-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the above logic.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 09:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157863#M994024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T09:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Make Input the Row (Line) in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157864#M994025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the GET CURSOR  LINE lin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lin of type i.  you will get the row number , use that and code accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 09:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157864#M994025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T09:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Make Input the Row (Line) in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157865#M994026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Sharin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;PBO&amp;gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;Loop at it_finf&lt;/P&gt;&lt;P&gt;  with control FAMILY_TABLEC&lt;/P&gt;&lt;P&gt;  cursor FAMILY_TABLEC-current_line.&lt;/P&gt;&lt;P&gt;Module get_lines.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a syntax error that " "LOOP" cannot be assigned to any field.  " is returned here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and at PAI , you wrote "Give this code ....."  it doesn't seem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 09:52:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157865#M994026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T09:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Make Input the Row (Line) in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157866#M994027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do something like the following in the PAI USER_COMMAND module to copy an existing table control line (which may or may not be what you want to do).  GT_SPLITS is the internal table that underlies the table control. SELECT is the table control column that I told the table control wizard I wanted to use to record a selected line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR gs_splits.
   READ TABLE gt_splits INTO gs_splits
   WITH KEY select = 'X'.
   IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE 'Please select a line to copy.' TYPE 'I'.
   ELSE.
      CLEAR: gs_splits-spltbuzei, gs_splits-select.
      APPEND gs_splits TO gt_splits.
   ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157866#M994027</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2008-07-21T10:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Make Input the Row (Line) in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157867#M994028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Christine, i m trying to add new row with input (enabled) to table control.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157867#M994028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Make Input the Row (Line) in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157868#M994029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; i m trying to add new row with input (enabled) to table control.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That is something that you get for free if you use the table control wizard; it generates the code and the button for you. I don't use it in my current screen since I prefer to have a complete screen of open lines available, which you can do by changing the setting of the table control LINES parameter.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to use the wizard to create the table control in your current program (thought I don't see why anyone would not want to use it), you could always use it to create a table control in a test program and copy the insert new line code from that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157868#M994029</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2008-07-21T12:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Make Input the Row (Line) in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157869#M994030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks to everybody ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE FAMILY_TC_CHANGE_FIELD_ATTR OUTPUT.&lt;/P&gt;&lt;P&gt;  CLEAR xfinf.&lt;/P&gt;&lt;P&gt;  APPEND xfinf TO it_finf.&lt;/P&gt;&lt;P&gt;  CLEAR it_finf.&lt;/P&gt;&lt;P&gt;  data index like sy-STEPL.&lt;/P&gt;&lt;P&gt;  index = FAMILY_TABLEC-lines.&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    when 'ADDROW_F'.&lt;/P&gt;&lt;P&gt;      LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;        if screen-name = 'IT_FINF-PERSNUM' and index  = sy-STEPL .&lt;/P&gt;&lt;P&gt;          screen-input = '1'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;    WHEN 'DELROW_F'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " FAMILY_TC_CHANGE_FIELD_ATTR  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's my problem's solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope to see you when a problem borned &lt;SPAN __jive_emoticon_name="grin"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-input-the-row-line-in-table-control/m-p/4157869#M994030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T12:16:38Z</dc:date>
    </item>
  </channel>
</rss>

