<?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: Flow logic for message class in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow-logic-for-message-class-in-table-control/m-p/3350642#M803691</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;Do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
 LOOP AT IT_TC01.
    CHAIN.
      FIELD IT_TC01-WTG002 MODULE TC01_MODIFY.
    ENDCHAIN.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2008 13:34:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-04T13:34:08Z</dc:date>
    <item>
      <title>Flow logic for message class in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow-logic-for-message-class-in-table-control/m-p/3350641#M803690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gt a table control. i need to do some validation check on the field in the table control. I got a problem in enable the field after the message class is shown. I need to know the flow logic so that the field can have input. Any code ?&lt;/P&gt;&lt;P&gt;thank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 13:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow-logic-for-message-class-in-table-control/m-p/3350641#M803690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T13:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Flow logic for message class in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow-logic-for-message-class-in-table-control/m-p/3350642#M803691</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;Do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
 LOOP AT IT_TC01.
    CHAIN.
      FIELD IT_TC01-WTG002 MODULE TC01_MODIFY.
    ENDCHAIN.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 13:34:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow-logic-for-message-class-in-table-control/m-p/3350642#M803691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Flow logic for message class in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow-logic-for-message-class-in-table-control/m-p/3350643#M803692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you giv me a example for the MODULE TC01_MODIFY.&lt;/P&gt;&lt;P&gt;Let say  i need to validate at least a entry in the table control, how to use the message class if no record has been enter. &lt;/P&gt;&lt;P&gt;Do i still need to make any changes to the flow logic u provided. Urgent&amp;gt; Thk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 13:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow-logic-for-message-class-in-table-control/m-p/3350643#M803692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T13:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flow logic for message class in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flow-logic-for-message-class-in-table-control/m-p/3350644#M803693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Table controls indirectly relate to an internal table.&lt;/P&gt;&lt;P&gt;It is only form an internal table in a program that you access the table control.&lt;/P&gt;&lt;P&gt;And when displaying values in a table control, it will be done through an internal table from the program.&lt;/P&gt;&lt;P&gt;Even in the table control,the field names are given in the format &amp;lt;internal_table_name&amp;gt;-&amp;lt;field_name&amp;gt;.&lt;/P&gt;&lt;P&gt;If the value is being retrieved form a standard program,then the values need to be passed into the internal table and thus thye would be displayed on the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format that you need to follow in the PBO and PAI of the screen of the table control is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;LOOP WITH &amp;lt;table_control_name&amp;gt;.&lt;/P&gt;&lt;P&gt;MODULE user_command_0100.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL &amp;lt;table_control_name&amp;gt;.&lt;/P&gt;&lt;P&gt;module read_table_control.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To handle table controls in ABAP programs, you must declare a control in the declaration part of the program for each table control using the following statement:&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;&lt;/P&gt;&lt;P&gt;where &amp;lt;ctrl&amp;gt; is the name of the table control on a screen in the ABAP program. The control allows the ABAP program to read the attributes of the table control and to influence the control. &amp;lt;scr&amp;gt; is the screen number where the initial values of the table are loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using table controls it is necessary to use loops in screen flowlogic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL FLIGHTS.&lt;/P&gt;&lt;P&gt;MODULE FILL_TABLE_CONTROL.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL FLIGHTS.&lt;/P&gt;&lt;P&gt;module read_table_control.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;module user_command_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here: flights is the name of ur table control&lt;/P&gt;&lt;P&gt;Write these modules in your main prog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE FILL_TABLE_CONTROL.&lt;/P&gt;&lt;P&gt;module read_table_control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever using the table control in screen desing, It is mandatory that one should write .. loop.. endloop both in the PBO and PAI. In your case , it seems you have not return loop .. endloop in PAI. Plz check.&lt;/P&gt;&lt;P&gt;hope this helps .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regs,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 13:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flow-logic-for-message-class-in-table-control/m-p/3350644#M803693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T13:44:50Z</dc:date>
    </item>
  </channel>
</rss>

