<?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: transferring data from internal table to table control on screen. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503502#M1258840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;IT TABLE NAME&amp;gt; INTO &amp;lt;WA NAME&amp;gt; WITH CONROL &amp;lt;TABLE CONROL NAME&amp;gt; CURSOR &amp;lt;TABLE CONROL NAME&amp;gt;-CURRENT _LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG: IT_EKKO INTO WA_EKKO WITH CONROL TBC CURSOR TBC-CURRENT_LINE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2011 13:11:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-24T13:11:52Z</dc:date>
    <item>
      <title>transferring data from internal table to table control on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503496#M1258834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to module pool programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to know how do we transfer the data from our internal table to a table control on a screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 11:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503496#M1258834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T11:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: transferring data from internal table to table control on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503497#M1258835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the table control using wizard, there itself you will be asked to give the internal name, database table name etc, so once you populate the table, those will be reflected in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details, kindly viist this site :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/801bdf454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d1/801bdf454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 11:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503497#M1258835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T11:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: transferring data from internal table to table control on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503498#M1258836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer below links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac4435c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac4435c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id29.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id29.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 11:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503498#M1258836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T11:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: transferring data from internal table to table control on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503499#M1258837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please  try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="Code"&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;OPTIONAL: If it_zsd00003 hasn't allready been filled with&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;data, you can do it the first time PBO is called&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;Setting the number of lines of the table control&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;Optional: Place the cursor on line  g_current_line e.g. after a&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;validation error has occured &lt;/LI&gt;&lt;LI level="1" type="ul"&gt;Optional: Protect some of the columns on the&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;table control&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;Modify an existing entry&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;OR&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;Appending a new entry&lt;/LI&gt;&lt;/UL&gt;
Table control  : TC1
Internal table : it_zsd00003

In the attributes of the table control, select w/SelColumn to get a selection
column on the table control, and give a name (In this example IT_ZSD00003-LINESEL).
Remember to include the field IT_ZSD00003-LINESEL in the 
internal table ( linesel(1)       type c, ).

When used with an internal table, remember to program
the update functionality of the database tables. Update and 
validation can be done when leaving the screen or in PAI using controlname-
current_line (E.g. TC1-current_line ) to indentify the entry in the internal table. 


process before output.
  module status_0100.
  loop at it_zsd00003 with control tc1 cursor tc1-
current_line.
    module tc1_set_field_attr.     "Optional
  endloop.

module status_0100 output.
  set pf-status 'SCREEN0100'.



  module read_data.



  describe table it_zsd00003 lines tc1-lines.




  if not ( g_current_line is initial ).
    tc1-top_line =  g_current_line.
    clear g_current_line.
  endif.

endmodule.                 " STATUS_0100  OUTPUT

module read_data.
  if flag is initial.
    perform read_data.
    flag = 1.

  endif.
endmodule.        

module tc1_set_field_attr output.


    loop at screen.
      if screen-group1 = 'X'.
        screen-input = 0.
        modify screen.
      endif.
    endloop.
  endif.
endmodule.                 " tc1_set_field_attr  OUTPUT

 
process after input.
  loop at it_zsd00003.
     module modify_tc1.
  endloop.

  module user_command_0100.



module modify_tc1 input.


  modify it_zsd00003 index tc1-current_line.




  append it_zsd00003.


endmodule.                 " modify_tc1  INPUT



Deleting a single line selected with the selection column: 

form delete_record.

  loop at it_zsd00003.
    if it_zsd00003-linesel = 'X'.
       exit.
    endif.
  endloop.
  
   delete from zsd00003
       where  zdriftscenter     = it_zsd00003-zdriftscenter
              ................................. 
             
endform.                                                 
&lt;/SPAN&gt;&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;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 11:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503499#M1258837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T11:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: transferring data from internal table to table control on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503500#M1258838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define the table control in the Top include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PBO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WITH TABLE CONTOL.&lt;/P&gt;&lt;P&gt;MODULE UPLOAD_DATA.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PAI.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;Module OPERATIONS.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Reference Table Control|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbacac35c111d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 11:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503500#M1258838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T11:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: transferring data from internal table to table control on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503501#M1258839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refer the programs DEMO_DYNPRO_TABLE_CONTROL_1&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2&lt;/P&gt;&lt;P&gt;and RSDEMO_TABLE_CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example :&lt;/P&gt;&lt;P&gt;Give the name of fields as the internal table field like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Itab-F1,Itab-f2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab with control (Table Control Name).&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB:&lt;/P&gt;&lt;P&gt;ENDLOOP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will popularte the data to itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 11:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503501#M1258839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T11:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: transferring data from internal table to table control on screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503502#M1258840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;IT TABLE NAME&amp;gt; INTO &amp;lt;WA NAME&amp;gt; WITH CONROL &amp;lt;TABLE CONROL NAME&amp;gt; CURSOR &amp;lt;TABLE CONROL NAME&amp;gt;-CURRENT _LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG: IT_EKKO INTO WA_EKKO WITH CONROL TBC CURSOR TBC-CURRENT_LINE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 13:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-data-from-internal-table-to-table-control-on-screen/m-p/5503502#M1258840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-24T13:11:52Z</dc:date>
    </item>
  </channel>
</rss>

