<?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: Table control error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-error/m-p/3526453#M848400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to that error, you must specify that table control both in PBO and PAI of your flowlogic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the steps given below to resolve the issue you are experiencing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the flowlogic,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside  the PBO write the similar code. :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab with control TC cursor TC-current_line.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the PAI write the following .&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;In the report or Module pool program (SE38) You need to declare the table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax : &lt;/P&gt;&lt;P&gt;Controls : TC type tableview using screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==============================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Controls is the keyword to declare the table control and it should be of type tableview.&lt;/P&gt;&lt;P&gt;2. In my example I have taken TC as the tablecontrol name. and I am passing itab to the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly you take care of the code, it should resolve the issue,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need further help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks-&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 5, 2008 5:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2008 22:58:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-05T22:58:13Z</dc:date>
    <item>
      <title>Table control error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-error/m-p/3526452#M848399</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;I am working with a table control in a dialog program.&lt;/P&gt;&lt;P&gt;I have the below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The field "TITLE" is not assigned to a loop. "LOOP ... ENDLOOP" must appear in "PBO" and "PAI".	"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Title is nothing but the text field which I have on my table as the title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should it be tied up with the table? Called in the program?&lt;/P&gt;&lt;P&gt;Not sure what that error means.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 20:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-error/m-p/3526452#M848399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T20:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table control error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-error/m-p/3526453#M848400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to that error, you must specify that table control both in PBO and PAI of your flowlogic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the steps given below to resolve the issue you are experiencing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the flowlogic,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside  the PBO write the similar code. :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab with control TC cursor TC-current_line.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the PAI write the following .&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;In the report or Module pool program (SE38) You need to declare the table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax : &lt;/P&gt;&lt;P&gt;Controls : TC type tableview using screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==============================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Controls is the keyword to declare the table control and it should be of type tableview.&lt;/P&gt;&lt;P&gt;2. In my example I have taken TC as the tablecontrol name. and I am passing itab to the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly you take care of the code, it should resolve the issue,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need further help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks-&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 5, 2008 5:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 22:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-error/m-p/3526453#M848400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T22:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table control error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-error/m-p/3526454#M848401</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 casse u make use of table contols &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Top Include, define:&lt;/P&gt;&lt;P&gt;	CONTROLS &amp;lt;ctrl&amp;gt; TYPE TABLEVIEW USING SCREEN &amp;lt;scr&amp;gt;.&lt;/P&gt;&lt;P&gt;	(Where &amp;lt;ctrl&amp;gt; is name of table control on screen &amp;lt;scr&amp;gt;)&lt;/P&gt;&lt;P&gt;Cursor Position in Table Controls&lt;/P&gt;&lt;P&gt;At PBO Event&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD &amp;lt;f&amp;gt; LINE &amp;lt;lin&amp;gt; [OFFSET &amp;lt;off&amp;gt;]. &lt;/P&gt;&lt;P&gt;(For setting Cursor Position on Table Control row)&lt;/P&gt;&lt;P&gt;At PAI Event&lt;/P&gt;&lt;P&gt;GET CURSOR FIELD &amp;lt;f&amp;gt; LINE &amp;lt;lin&amp;gt; ...&lt;/P&gt;&lt;P&gt;(For retrieving row of table control where cursor is.)&lt;/P&gt;&lt;P&gt;To just get row of table control on which cursor is there:&lt;/P&gt;&lt;P&gt;GET CURSOR LINE &amp;lt;lin&amp;gt;.&lt;/P&gt;&lt;P&gt;Checking for Cursor Position&lt;/P&gt;&lt;P&gt;SY-SUBRC allows you to check if the cursor is placed in a row of a table control. &lt;/P&gt;&lt;P&gt;REPORT  Z_DB_TABLECONTROL.TABLES: MARA.CONTROLS MATERIAL TYPE TABLEVIEW USING SCREEN 130.TYPES: BEGIN OF ST_MARA,&lt;/P&gt;&lt;P&gt;       MATNR TYPE MARA-MATNR,&lt;/P&gt;&lt;P&gt;       ERSDA TYPE MARA-ERSDA,&lt;/P&gt;&lt;P&gt;       ERNAM TYPE MARA-ERNAM,&lt;/P&gt;&lt;P&gt;       LAEDA TYPE MARA-LAEDA,&lt;/P&gt;&lt;P&gt;       END OF ST_MARA.DATA: IT_ST TYPE TABLE OF ST_MARA,&lt;/P&gt;&lt;P&gt;      WA_ST TYPE ST_MARA,&lt;/P&gt;&lt;P&gt;      IT_MARA TYPE MARA,&lt;/P&gt;&lt;P&gt;      WA_MARA TYPE MARA,&lt;/P&gt;&lt;P&gt;      OK_CODE LIKE SY-UCOMM.CALL SCREEN 130.&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  V1  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&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;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE V1 INPUT.CASE OK_CODE.&lt;/P&gt;&lt;P&gt;WHEN 'SAVE'.WA_ST-MATNR = MARA-MATNR.&lt;/P&gt;&lt;P&gt;WA_ST-ERSDA = MARA-ERSDA.&lt;/P&gt;&lt;P&gt;WA_ST-ERNAM = MARA-ERNAM.&lt;/P&gt;&lt;P&gt;WA_ST-LAEDA = MARA-LAEDA.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING WA_ST TO WA_MARA.&lt;/P&gt;&lt;P&gt;INSERT INTO MARA VALUES WA_MARA.WHEN 'DELETE'.WA_ST-MATNR = MARA-MATNR.&lt;/P&gt;&lt;P&gt;WA_ST-ERSDA = MARA-ERSDA.&lt;/P&gt;&lt;P&gt;WA_ST-ERNAM = MARA-ERNAM.&lt;/P&gt;&lt;P&gt;WA_ST-LAEDA = MARA-LAEDA.MOVE-CORRESPONDING  WA_ST TO WA_MARA.DELETE MARA FROM WA_MARA.WHEN 'MODIFY'.WA_ST-MATNR = MARA-MATNR.&lt;/P&gt;&lt;P&gt;WA_ST-ERSDA = MARA-ERSDA.&lt;/P&gt;&lt;P&gt;WA_ST-ERNAM = MARA-ERNAM.&lt;/P&gt;&lt;P&gt;WA_ST-LAEDA = MARA-LAEDA.MOVE-CORRESPONDING  WA_ST TO WA_MARA.MODIFY MARA FROM WA_MARA.&lt;/P&gt;&lt;P&gt;ENDCASE.ENDMODULE.                 " V1  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  EXIT  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&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;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE EXIT INPUT.&lt;/P&gt;&lt;P&gt;IF OK_CODE = 'EXIT'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDIF.ENDMODULE.                 " EXIT  INPUTCreate a screen by number 130 and provide the following attributes:   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this code would help u solve ur problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-error/m-p/3526454#M848401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:45:37Z</dc:date>
    </item>
  </channel>
</rss>

