<?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: 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/4427289#M1051144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;firstly create a GLOBAL variable VAR in the below way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : VAR LIKE smp_dyntxt VALUE 'CONDENSE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PBO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; create a status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; Put the button on the application tool bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; Give the FCT code for the button and press enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; In the pop up choose DYNAMIC TEXT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; you get another pop up select PROGRAM FIELD radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; you will get a list of your fields in the program  and you select the field VAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN THE PAI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if radio butons are R1 and R2  write the code as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

WHEN R1 = 'X'.

VAR = 'CONDENSE'.

WHEN R2 = 'X'.

VAR = 'SHIFT'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and when you change the radio buttons text will change automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : dont forget to give SY-UCOMM for your radio button group in the screen painter&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2008 05:15:40 GMT</pubDate>
    <dc:creator>prasanth_kasturi</dc:creator>
    <dc:date>2008-09-15T05:15:40Z</dc:date>
    <item>
      <title>Loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4427287#M1051142</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; I have two radio buttons  and one push button. I want to perform two operations like condense and shift. I have passed value in i/p field and If i press condense radio button it has to show 'condense' on a push button. If i press that push button, it has to show output in o/p field. when I press shift radio button the text on the push button has to change dynamically as 'shift'. How can i perform this operation. can you plz help me out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Sep 2008 18:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4427287#M1051142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-13T18:19: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/4427288#M1051143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharuk, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I understand your question correctly, you don't need a &lt;STRONG&gt;LOOP AT SCREEN&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;Do simply this at your field output: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE 'X". 
  WHEN &amp;lt;condense period&amp;gt;. 
     write: / 'Condense', &amp;lt;o/field&amp;gt;. 
  WHEN &amp;lt;Shift period&amp;gt;. 
     write: / 'Shift', &amp;lt;o/field&amp;gt;. 
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For LOOP AT SCREEN you have to declare MODIF ID in your parameter list. The MODIF ID can be used in the event AT SELECTION-SCREEN {INPUT|OUTPUT}. Using this technique you can achieve a dynamic &lt;STRONG&gt;Input-Screen&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;Heinz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 07:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4427288#M1051143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T07:11:43Z</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/4427289#M1051144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;firstly create a GLOBAL variable VAR in the below way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : VAR LIKE smp_dyntxt VALUE 'CONDENSE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PBO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; create a status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; Put the button on the application tool bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; Give the FCT code for the button and press enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; In the pop up choose DYNAMIC TEXT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; you get another pop up select PROGRAM FIELD radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; you will get a list of your fields in the program  and you select the field VAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN THE PAI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if radio butons are R1 and R2  write the code as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

WHEN R1 = 'X'.

VAR = 'CONDENSE'.

WHEN R2 = 'X'.

VAR = 'SHIFT'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and when you change the radio buttons text will change automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : dont forget to give SY-UCOMM for your radio button group in the screen painter&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 05:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4427289#M1051144</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-09-15T05:15: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/4427290#M1051145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharuk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to me Loop at screen is not required here.&lt;/P&gt;&lt;P&gt;Your problem can be solved in this manner:&lt;/P&gt;&lt;P&gt;suppose screen number 0100 and two global variable l_buttonname and l_input.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In PAI you have to code like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if R1 EQ 'X'.
 l_buttonname = "Condense".
 l_input = inputfieldvalue.
call screen 0100.
else.
 l_buttonname = "Shift".
 l_input = inputfieldvalue.
call screen 0100.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;In PBO you have to code like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
button-text = l_buttonname.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can code your output conditions in PAI and directly transfer the data as global variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brajvir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Brajvir  Singh on Sep 15, 2008 12:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 10:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4427290#M1051145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T10:53: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/4427291#M1051146</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;When creating application toolbar buttons in SE41 you get a option for text --- static or dynamic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the dynamic text and provide the variable name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare this variable in your mpp main program and set the text of your requirement based on the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will be reflected on your application tool bar buttons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 12:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4427291#M1051146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T12:17:47Z</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/4427292#M1051147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;firstly create a GLOBAL variable VAR in the below way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : VAR LIKE smp_dyntxt VALUE 'CONDENSE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PBO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; create a status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Put the button on the application tool bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; Give the FCT code for the button and press enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; In the pop up choose DYNAMIC TEXT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; you get another pop up select PROGRAM FIELD radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; you will get a list of your fields in the program and you select the field VAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN THE PAI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if radio butons are R1 and R2 write the code as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOTH RADIO BUTTON SHOULD BE DEFIN TOGATHER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROVIDE FUNC CODE TO UR RADIO BUTTON  IT WILL SAME FOR BOTH (TEST2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN&lt;/P&gt;&lt;P&gt;    'TEST2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF R1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VAR = 'CONDENSE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;    VAR = 'SHIFT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&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;ANIL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 11:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4427292#M1051147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T11:24:44Z</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/4427293#M1051148</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 create a  application toolbar buttons in SE41 you get a option for text --- static or dynamic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the dynamic text and provide the variable name.&lt;/P&gt;&lt;P&gt;you give this variable as ZNAME.&lt;/P&gt;&lt;P&gt;you also create a pushbutton in screen ,let its FCODE is ENT.&lt;/P&gt;&lt;P&gt;Declare this variable in your mpp main program as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:zname like smp_dyntxt &lt;/P&gt;&lt;P&gt;and set the text of your requirement based on the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW in PAI.&lt;/P&gt;&lt;P&gt;you write as...&lt;/P&gt;&lt;P&gt; case sy-ucomm.&lt;/P&gt;&lt;P&gt;when  'ENT'.&lt;/P&gt;&lt;P&gt;if RADIO1 = 'X'.&lt;/P&gt;&lt;P&gt;zname-text = 'CONDENSE'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if RADIO2 = 'X'.&lt;/P&gt;&lt;P&gt;zname-text = 'SHIFT'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swati gupta on Sep 23, 2008 6:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 04:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4427293#M1051148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-23T04:19:10Z</dc:date>
    </item>
  </channel>
</rss>

