<?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: Screen Resolution Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127622#M110790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if this code helps while handling the BDC for table control &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;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="65" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data for controlling paging on screen 0102 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: W_MAXLINES(2) TYPE N, &lt;/P&gt;&lt;P&gt;W_NEXT_LINE(3) TYPE N, &lt;/P&gt;&lt;P&gt;W_PAGE(1), "y = page forward, n otherwise &lt;/P&gt;&lt;P&gt;W_SCRLEN(2) TYPE I, &lt;/P&gt;&lt;P&gt;W_SCRLINE(2) TYPE I. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF W_HDR. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE D020S. &lt;/P&gt;&lt;P&gt;DATA: END OF W_HDR. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF W_FLD OCCURS 100. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE D021S. &lt;/P&gt;&lt;P&gt;DATA: END OF W_FLD. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF W_LOG OCCURS 20. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE D022S. &lt;/P&gt;&lt;P&gt;DATA: END OF W_LOG. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF W_MC OCCURS 20. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE D023S. &lt;/P&gt;&lt;P&gt;DATA: END OF W_MC. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF W_DYNPRONAME, &lt;/P&gt;&lt;P&gt;PROGRAM(8) VALUE 'SAPMM60X', &lt;/P&gt;&lt;P&gt;DYNPRO(4) VALUE '0102', &lt;/P&gt;&lt;P&gt;END OF W_DYNPRONAME. &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;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&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&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;FORM GET_MAX_LINES. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set w_maxlines to the number of var-loop occurrences on the screen so &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;that we know when to page forward on screen 0102 &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;also initialise w_next_line to zero for GET_NEXT_LINE &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this subroutine caters for all cases - including screens without loops &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR: W_MAXLINES, &lt;/P&gt;&lt;P&gt;W_NEXT_LINE. &lt;/P&gt;&lt;P&gt;IMPORT DYNPRO W_HDR &lt;/P&gt;&lt;P&gt;W_FLD &lt;/P&gt;&lt;P&gt;W_LOG &lt;/P&gt;&lt;P&gt;W_MC &lt;/P&gt;&lt;P&gt;ID W_DYNPRONAME. &lt;/P&gt;&lt;P&gt;LOOP AT W_FLD WHERE LTYP EQ 'L'. &lt;/P&gt;&lt;P&gt;MOVE W_FLD-LINE TO W_SCRLINE. "first var-loop line &lt;/P&gt;&lt;P&gt;MOVE W_FLD-LBLK TO W_SCRLEN. "depth of loop block &lt;/P&gt;&lt;P&gt;EXIT. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0 &lt;/P&gt;&lt;P&gt;AND W_SCRLEN NE 0. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sy-srows = total no of lines on screen &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_scrline = actual first line of loop so that &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_scrline - 1 = number of heading lines (before loop) &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;4 = no of lines at top of screen - command line, pushbuttons, 2 ulines &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;3 = no of lines after loop - uline &amp;amp; Page count &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_scrlen = no of lines in loop block &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_maxlines = sy-srows - ( wscrline - 1 ) - 4 - 3 &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and then 1 less but not sure why! &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;W_MAXLINES = SY-SROWS - W_SCRLINE - 1 - 4 - 3. &lt;/P&gt;&lt;P&gt;W_MAXLINES = W_MAXLINES - 1. &lt;/P&gt;&lt;P&gt;W_MAXLINES = W_MAXLINES DIV W_SCRLEN. &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;MOVE 99 TO W_MAXLINES. "this required if no screen loop &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt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t;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;FORM GET_NEXT_LINE. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set w_page if page forward is required &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;W_NEXT_LINE = W_NEXT_LINE + 1. &lt;/P&gt;&lt;P&gt;IF W_NEXT_LINE GT W_MAXLINES. &lt;/P&gt;&lt;P&gt;W_NEXT_LINE = 1. &lt;/P&gt;&lt;P&gt;W_PAGE = 'Y'. &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;W_PAGE = 'N'. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;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/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2006 13:00:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-01T13:00:43Z</dc:date>
    <item>
      <title>Screen Resolution Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127618#M110786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some questions in Module pool and BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. how to handle Table Control in module pool programming as it's displaying lines in a table control differs from one system to other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. How to handle the same situation while uploading the data in table control in BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Ranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 12:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127618#M110786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Resolution Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127619#M110787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Controls are not supported in BDC. If you are dealing with a specific transaction, look for notes with the keywords: [Transaction] Batch Input Table Control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases, SAP offers an alternative transaction or means of input (maybe by BAPI) to allow you to enter the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 12:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127619#M110787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T12:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Resolution Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127620#M110788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are using CALL TRANSACTION use option OPTIONS-DEFSIZE = 'X'. This will always call up the window in default size whatever the screen resolution be. SAP is making use of this in the recording transaction(SHDB).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 12:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127620#M110788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T12:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Resolution Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127621#M110789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The numeber of lines of table control for BDC depend on screen resolution, but It can't be managed by program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the better solution is to create a bdc doesn't depend on resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can do that using always the first two lines of table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you start the simulation, first record has to be placed in first line of tc and the second in second one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before placing the third record, it needs to place the second record to the top and so the third record can be placed in the second line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before placing the next record, it needs to place the third record to the top and so the fourth record can be placed in the second line and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way your BDC'll use alwways the first two lines of tc and your program won't depend on resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the transaction you need to simulate by BDC has to have a scroll functionality to allow to place the last record was elaborated to the top of tc, so the second line of tc can always be used to place the new record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there isn't this functionality, it's better to use a BAPI instead of BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 12:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127621#M110789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T12:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Resolution Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127622#M110790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if this code helps while handling the BDC for table control &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt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t;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data for controlling paging on screen 0102 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: W_MAXLINES(2) TYPE N, &lt;/P&gt;&lt;P&gt;W_NEXT_LINE(3) TYPE N, &lt;/P&gt;&lt;P&gt;W_PAGE(1), "y = page forward, n otherwise &lt;/P&gt;&lt;P&gt;W_SCRLEN(2) TYPE I, &lt;/P&gt;&lt;P&gt;W_SCRLINE(2) TYPE I. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF W_HDR. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE D020S. &lt;/P&gt;&lt;P&gt;DATA: END OF W_HDR. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF W_FLD OCCURS 100. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE D021S. &lt;/P&gt;&lt;P&gt;DATA: END OF W_FLD. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF W_LOG OCCURS 20. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE D022S. &lt;/P&gt;&lt;P&gt;DATA: END OF W_LOG. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF W_MC OC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t;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;FORM GET_MAX_LINES. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set w_maxlines to the number of var-loop occurrences on the screen so &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;that we know when to page forward on screen 0102 &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;also initialise w_next_line to zero for GET_NEXT_LINE &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this subroutine caters for all cases - including screens without loops &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR: W_MAXLINES, &lt;/P&gt;&lt;P&gt;W_NEXT_LINE. &lt;/P&gt;&lt;P&gt;IMPORT DYNPRO W_HDR &lt;/P&gt;&lt;P&gt;W_FLD &lt;/P&gt;&lt;P&gt;W_LOG &lt;/P&gt;&lt;P&gt;W_MC &lt;/P&gt;&lt;P&gt;ID W_DYNPRONAME. &lt;/P&gt;&lt;P&gt;LOOP AT W_FLD WHERE LTYP EQ 'L'. &lt;/P&gt;&lt;P&gt;MOVE W_FLD-LINE TO W_SCRLINE. "first var-loop line &lt;/P&gt;&lt;P&gt;MOVE W_FLD-LBLK TO W_SCRLEN. "depth of loop block &lt;/P&gt;&lt;P&gt;EXIT. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0 &lt;/P&gt;&lt;P&gt;AND W_SCRLEN NE 0. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sy-srows = total no of lines on screen &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_scrline = actual first line of loop so that &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_scrline - 1 = number of heading lines (before loop) &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;4 = no of lines at top of screen - command line, pushbuttons, 2 ulines &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;3 = no of lines after loop - uline &amp;amp; Page count &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_scrlen = no of lines in loop block &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_maxlines = sy-srows - ( wscrline - 1 ) - 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;LI level="65" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 13:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127622#M110790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T13:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Resolution Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127623#M110791</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;For getting knowledge on how to handle table control,refer this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table&lt;/A&gt; control in abap.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting information on BDC with tablecontrol,refer this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 13:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127623#M110791</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-02-01T13:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Resolution Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127624#M110792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your email, but the link that sent is not working, will you please send the link again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 13:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127624#M110792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T13:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Resolution Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127625#M110793</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 and kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap-code-samples/table" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap-code-samples/table&lt;/A&gt; control in abap.pdf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 13:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127625#M110793</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-02-01T13:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Resolution Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127626#M110794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Jayanthi,&lt;/P&gt;&lt;P&gt;Still the link is not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 14:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127626#M110794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T14:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Resolution Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127627#M110795</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;It's opening for me.It is available in SDN download Technical Samples ABAP library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In the flow logic of the screen 9000, write the following code.

PROCESS BEFORE OUTPUT.

  MODULE set_status.

  MODULE get_t_ctrl_lines.
  LOOP AT i_makt WITH CONTROL t_ctrl CURSOR t_ctrl-current_line.
* Dynamic screen modifications
    MODULE set_screen_fields.
  ENDLOOP.

*
PROCESS AFTER INPUT.

  LOOP AT i_makt.
    FIELD i_makt-pick MODULE check.
    FIELD i_makt-zmatnr MODULE zmatnr .
  ENDLOOP.

  MODULE user_command_9000.


In the program, write the following code.

PROGRAM SAPMZTC MESSAGE-ID zz.

***********************************************************************
* Tables Declaration
***********************************************************************
TABLES: zzz_makt.

***********************************************************************
* Internal table Declaration
***********************************************************************
DATA : i_makt TYPE STANDARD TABLE OF zzz_makt WITH HEADER LINE.

***********************************************************************
* Table control Declaration
***********************************************************************
CONTROLS: t_ctrl TYPE TABLEVIEW USING SCREEN '9000'.

***********************************************************************
* Variable Declaration
***********************************************************************
DATA : flg,           "Flag to set the change mode
       ln TYPE i.     "No. of records

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  get_T_CTRL_lines  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*  Populating data
*----------------------------------------------------------------------*
MODULE get_t_ctrl_lines OUTPUT.
  SELECT zmatnr zmaktx
         INTO CORRESPONDING FIELDS OF TABLE i_makt
         FROM zzz_makt.
  DESCRIBE TABLE i_makt LINES ln.
* To make the vertical scroll bar to come on runtime
  t_ctrl-lines = ln + 100.
ENDMODULE.                 " get_T_CTRL_lines  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_9000  INPUT
*&amp;amp;---------------------------------------------------------------------*
* Triggering event according to the user command
*----------------------------------------------------------------------*
MODULE user_command_9000 INPUT.
  DATA :lv_fcode LIKE sy-ucomm,    "Function Code
        lv_answer(1) type c.       "Storing the answer
  lv_fcode = sy-ucomm.
  CASE lv_fcode.
    WHEN 'CHANGE'.
* Setting the flag to make the table control in editable mode[excluding
* primary key].
      flg = 'Y'.
    WHEN 'DELETE'.
* Setting the flag to make the table control in editable mode after
* deleting the selected line
      flg = 'Y'.
* Confirmation of delete
      CALL FUNCTION 'POPUP_TO_CONFIRM'
        EXPORTING
         TITLEBAR       = 'Confirm'
         text_question  = 'Are you sure to delete from database?'
         TEXT_BUTTON_1  = 'Yes'(001)
         TEXT_BUTTON_2  = 'No'(002)
        IMPORTING
         ANSWER         =  lv_answer.
      if lv_answer eq '1'.
* Updating the database table from the internal table
        UPDATE zzz_makt FROM TABLE i_makt.
* Deleting the selected row from the internal table
        DELETE i_makt WHERE pick = 'X'.
* Deleting the selected row from the database table
        DELETE FROM zzz_makt WHERE pick = 'X'.
        MESSAGE s005 WITH 'Deleted Successfully'.
      ENDIF.
    WHEN 'SAVE'.
* Inserting new record or updating existing record in database table
* from the internal table
      MODIFY zzz_makt FROM TABLE i_makt.
      MESSAGE s005 WITH 'Saved Successfully'.
    WHEN 'BACK'.
      SET SCREEN '0'.
    WHEN 'EXIT' OR 'CANCEL'.
* Leaving the program
      LEAVE PROGRAM.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_9000  INPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  set_screen_fields  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
* Setting the screen fields
*----------------------------------------------------------------------*
MODULE set_screen_fields OUTPUT.
  LOOP AT SCREEN.
    IF flg IS INITIAL.
      screen-input = 0.
    ELSEIF ( flg EQ 'Y' ).
      IF ( ( screen-name = 'I_MAKT-ZMAKTX'
             OR screen-name = 'I_MAKT-CHECK1' )
            AND t_ctrl-current_line LE ln ) .
* Making the screen fields as editable
        screen-input = 1.
      ELSEIF ( ( screen-name = 'I_MAKT-ZMATNR' )
                 AND t_ctrl-current_line LE ln ).
* Making the screen field as uneditable
        screen-input = 0.
      ENDIF.
    ENDIF.
* Modifying the screen after making changes
    MODIFY SCREEN.
  ENDLOOP.
ENDMODULE.                 " set_screen_fields  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  zmatnr  INPUT
*&amp;amp;---------------------------------------------------------------------*
* Appending records to the internal table
*----------------------------------------------------------------------*
MODULE zmatnr INPUT.
  MODIFY i_makt INDEX t_ctrl-current_line.
  IF t_ctrl-current_line GT ln.
    READ TABLE i_makt WITH KEY zmatnr = i_makt-zmatnr.
    IF sy-subrc NE 0.
* Inserting record if it does not exist in database
      APPEND i_makt.
    ELSE.
     MESSAGE i005 WITH 'Material Number' i_makt-zmatnr 'already exists'.
    ENDIF.
  ENDIF.
ENDMODULE.                 " zmatnr  INPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  set_status  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
* Setting the GUI status
*----------------------------------------------------------------------*
MODULE set_status OUTPUT.
  SET PF-STATUS 'ZSTATUS'.
  SET TITLEBAR  'ZTITLE'.
ENDMODULE.                 " set_status  OUTPUT

*&amp;amp;---------------------------------------------------------------------
*&amp;amp;      Module  CHECK  INPUT
*&amp;amp;---------------------------------------------------------------------
* Modify the internal table using the current line in table control
*----------------------------------------------------------------------

MODULE check INPUT.
  MODIFY i_makt INDEX t_ctrl-current_line.
ENDMODULE.                 " CHECK  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 14:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-resolution-table-control/m-p/1127627#M110795</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-02-01T14:08:14Z</dc:date>
    </item>
  </channel>
</rss>

