<?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 Screen Painter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1434978#M207504</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;In the Screen Painter form, I have created two blocks ie., Header for single line and Detail for multiple line items.  The detail block is made using Table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To save the data, I have created a button.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I enter the data both in Header and Detail,  the header part is getting saved, but detail part is not getting saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find a lot of code automatically generated by the system for Detail Block when table control is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u pls guide me how to save the data of the line items (table control) by clicking the save button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2006 07:31:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-23T07:31:02Z</dc:date>
    <item>
      <title>Screen Painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1434978#M207504</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;In the Screen Painter form, I have created two blocks ie., Header for single line and Detail for multiple line items.  The detail block is made using Table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To save the data, I have created a button.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I enter the data both in Header and Detail,  the header part is getting saved, but detail part is not getting saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find a lot of code automatically generated by the system for Detail Block when table control is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u pls guide me how to save the data of the line items (table control) by clicking the save button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 07:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1434978#M207504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T07:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1434979#M207505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving for creating Table Control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Screen tables&lt;/P&gt;&lt;P&gt;A table can be created in transaction. These tables, when designed on the screen are called as SCREEN TABLES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are of two types.&lt;/P&gt;&lt;P&gt;Table Controls and Step loops&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These tables are treated as Loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Features of Table Controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data is displayed in the form of table.&lt;/P&gt;&lt;P&gt;Table control gives user the feeling of an actual table.&lt;/P&gt;&lt;P&gt;You can scroll through the table vertically as well as horizontally.&lt;/P&gt;&lt;P&gt;You can select rows and columns.&lt;/P&gt;&lt;P&gt;You can resize the with of columns.&lt;/P&gt;&lt;P&gt;You can have separator lines between rows and columns.&lt;/P&gt;&lt;P&gt;Automatic resizing of the table when the user resizes the window.&lt;/P&gt;&lt;P&gt;You can update information in the table control and it can be updated in the database table by writing code for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Steps for creating table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaration of table control in module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Designing of table controls on the screen.&lt;/P&gt;&lt;P&gt;Passing data to table control in flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)Declaration of TC in MPP&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;controls &amp;lt;name of table control&amp;gt; type tableview using screen &amp;lt;&amp;#145;screen no.&amp;#146;&amp;gt;.&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;5)Designing Table control on screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on Table in Control bar and place it on the screen. You can adjust the length and width of the Table Control.&lt;/P&gt;&lt;P&gt;Name the table control.(same name as given in data declaration).&lt;/P&gt;&lt;P&gt;From dictionary object OR from program fields select the fields and place them in the table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)Passing data to table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually transfer of data from program to screen is automatic.&lt;/P&gt;&lt;P&gt;In case of TC, you need to explicitly transfer the data to table control.&lt;/P&gt;&lt;P&gt;ABAP/4 provides Loop statement, which is associated with flow logic to transfer the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7)Passing of data contd.&lt;/P&gt;&lt;P&gt;PBO.&lt;/P&gt;&lt;P&gt;Loop at &amp;lt;name of internal table&amp;gt; with control &amp;lt;name of table control&amp;gt; cursor &amp;lt;scroll variable&amp;gt;.&lt;/P&gt;&lt;P&gt;module&amp;#133;&amp;#133;.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;PAI.&lt;/P&gt;&lt;P&gt;Loop at &amp;lt; name of internal table&amp;gt;.Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8)Scroll variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top_line : the row of table where the screen display starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current_line : the row currently being processed inside a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9)Transfer of data from prg to TC.&lt;/P&gt;&lt;P&gt;With &amp;#145;Loop at &amp;#133;&amp;#146; statement, the first row is placed in the header of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any module is specified between Loop and End loop, it will be executed. In this module, generally we will be assigning this internal table fields to table control screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The row in internal table is transferred to the TC as stated in the &amp;#145;Loop at&amp;#133;..&amp;#146; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system encounters the &amp;#145;Endloop&amp;#146; statement and control is passed back to the next line of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same way all the records of the internal table are passed to the TC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 07:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1434979#M207505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T07:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1434980#M207506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through this document if you don't have it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/48bd95e8-facc-4932-b923-465ba59bad24/Table-Control.pdf" target="test_blank"&gt;http://esnips.com/doc/48bd95e8-facc-4932-b923-465ba59bad24/Table-Control.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 07:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1434980#M207506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T07:50:51Z</dc:date>
    </item>
  </channel>
</rss>

