<?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: line Items in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/line-items/m-p/1415528#M199946</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;   YOu can do it using table controls in screens.&lt;/P&gt;&lt;P&gt;Look at the programs  DEMO_DYNPRO_TABLE_CONTROL_1 &lt;/P&gt;&lt;P&gt; DEMO_DYNPRO_TABLE_CONTROL_2 &lt;/P&gt;&lt;P&gt;RSDEMO_TABLE_CONTROL for some idea.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2006 10:34:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-22T10:34:38Z</dc:date>
    <item>
      <title>line Items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/line-items/m-p/1415527#M199945</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;How to create Header and Line items Form in Screen painter. ie.  Header block with single line item and Line Item block with multiple lines. (Both in a single form).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This requirement is similar to Purchase Order or Sales Order screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the Header block and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls guide me to create a multiple line items block in the screen painter (se51).&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;Mark K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 10:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/line-items/m-p/1415527#M199945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T10:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: line Items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/line-items/m-p/1415528#M199946</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;   YOu can do it using table controls in screens.&lt;/P&gt;&lt;P&gt;Look at the programs  DEMO_DYNPRO_TABLE_CONTROL_1 &lt;/P&gt;&lt;P&gt; DEMO_DYNPRO_TABLE_CONTROL_2 &lt;/P&gt;&lt;P&gt;RSDEMO_TABLE_CONTROL for some idea.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 10:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/line-items/m-p/1415528#M199946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T10:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: line Items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/line-items/m-p/1415529#M199947</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;Place text fields for your header block in the screen and a table control for your line items of that header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now your header fields will be displayed in text fields and their corresponding line items in a table control below it.&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;&lt;/P&gt;&lt;P&gt;Wasim ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 10:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/line-items/m-p/1415529#M199947</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-06-22T10:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: line Items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/line-items/m-p/1415530#M199948</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;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;Thansk &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 10:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/line-items/m-p/1415530#M199948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T10:40:47Z</dc:date>
    </item>
  </channel>
</rss>

