<?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 loop at screen... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716716#M1454692</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 am working on module pool. My requirement is&lt;/P&gt;&lt;P&gt;In the first screen i have plant as input , Below that i have a table control... &lt;/P&gt;&lt;P&gt;If the plant is valid then only i have to display the table control or else i have to make the table control as invisible...I am trying this using loop at screen method..but it is not working..could u please help me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example code:&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF SCREEN-NAME = 'TC1'.&lt;/P&gt;&lt;P&gt;      SCREEN-INVISIBLE = '1'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Mar 2010 08:25:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-12T08:25:14Z</dc:date>
    <item>
      <title>loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716716#M1454692</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 am working on module pool. My requirement is&lt;/P&gt;&lt;P&gt;In the first screen i have plant as input , Below that i have a table control... &lt;/P&gt;&lt;P&gt;If the plant is valid then only i have to display the table control or else i have to make the table control as invisible...I am trying this using loop at screen method..but it is not working..could u please help me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example code:&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF SCREEN-NAME = 'TC1'.&lt;/P&gt;&lt;P&gt;      SCREEN-INVISIBLE = '1'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 08:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716716#M1454692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T08:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716717#M1454693</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;Is your scenario something like this?&lt;/P&gt;&lt;P&gt;When your screen is displayed, you dont want your table control to be displayed, but just the input for plant.&lt;/P&gt;&lt;P&gt;Now if your entered plant is valid, an event (say a button click or a Enter) is going to make your table control visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, then you can use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"Write this in your PBO which will make your table control invisible on your first screen display
    LOOP AT tabcontrol1-cols[] INTO wa_control1.
      wa_control1-invisible = '1'.    
      MODIFY tabcontrol1-cols[] FROM wa_control1 INDEX sy-tabix.
    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly code appropriately to make the table control visible on the occurrence of some event by changing the wa_control1-invisible parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 08:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716717#M1454693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T08:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716718#M1454694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 08:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716718#M1454694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T08:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716719#M1454695</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;Small change to your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF Plant check fails.
LOOP AT SCREEN.
IF SCREEN-NAME CS 'TC1'.
SCREEN-ACTIVE = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF SCREEN-NAME CS 'TC1'.
SCREEN-ACTIVE = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming TC1 is the table control name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 08:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716719#M1454695</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-12T08:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716720#M1454696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried as you said...but no use...while debugging screen-name i am able to see all the screen elements except table control...&lt;/P&gt;&lt;P&gt;..is there any alternate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 09:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716720#M1454696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T09:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716721#M1454697</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;Is your table control and plant field both are in same screen or different screens? If it is in same screen it should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If different screen then, call table control screen based on plany check if passed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 09:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716721#M1454697</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-12T09:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716722#M1454698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both are in same screen...even i am able to find the table columns in the debugging as screen elements but table control  is not...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 09:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716722#M1454698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T09:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716723#M1454699</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;You gotto use the code that I gave you &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Only then, the table control disappears.&lt;/P&gt;&lt;P&gt;Use it outside the LOOP...ENDLOOP in the PBO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 09:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716723#M1454699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716724#M1454700</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;Can you try with below sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONTROLS tc1 TYPE TABLEVIEW USING SCREEN 0100. 
LOOP WITH CONTROL tc1.
    LOOP AT SCREEN.
          IF screen-name CS 'TC1-'.
              screen-active = 0.
              MODIFY SCREEN.
         ENDIF.
        ENDLOOP.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 09:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716724#M1454700</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-12T09:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716725#M1454701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Buddula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;in TOP include

data : repid type sy-repid value sy-repid,
          dynnr type sy-dynnr value '200'. " This is a dummy subscreen.


in PBO of main Screen.

call subscreen sub including repid dynnr.


in PAI.

module validate_plant

in Program.

module u validate_plant
" validate plant here and pass X to a Flag as below.
if valid_plant = 'X'
dynnr = '101' " This must be subscreen which contains your Table control.
else.
dynnr = '100' " Dummy Subscreen.
endmodule&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 09:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716725#M1454701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T09:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716726#M1454702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this scenario i should not use sub screens .... is there any alternate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 10:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716726#M1454702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T10:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716727#M1454703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 10:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/6716727#M1454703</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-03-12T10:56:33Z</dc:date>
    </item>
  </channel>
</rss>

