<?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: regarding messages display in module pool programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-messages-display-in-module-pool-programming/m-p/1337596#M171205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to show the records in display mode once it is saved, then you can show with screen groups and loop at screen logic, but am not clear why you have raised E/w messages here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raising of messages of E or W is making you to click BACK button twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt; PLEASE DON'T POST DUPLICATE POSTINGS&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manohar Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 May 2006 10:21:37 GMT</pubDate>
    <dc:creator>Manohar2u</dc:creator>
    <dc:date>2006-05-27T10:21:37Z</dc:date>
    <item>
      <title>regarding messages display in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-messages-display-in-module-pool-programming/m-p/1337595#M171204</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 have screen 100 in which i save button .Once i click save the empty rows should get deactivated i.e i should not be able enter any values.Iam getting that by using message type E OR W ,but the problem is when i use back button instead of going to PAI(where i have written code for back button) it is continuing from the  next line  i.e the line after error or warning message line  so its going to PBO and displaying the data .After pressing back button once again its going to previous screen i.e i need to press back button twice. Is there any other to go about this thing.I tried to give I message type but it doesn,t inactivate the empty rows and columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module x (display code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module a (back button code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module b (save button code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice week end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your replies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nandini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 May 2006 02:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-messages-display-in-module-pool-programming/m-p/1337595#M171204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-27T02:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: regarding messages display in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-messages-display-in-module-pool-programming/m-p/1337596#M171205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to show the records in display mode once it is saved, then you can show with screen groups and loop at screen logic, but am not clear why you have raised E/w messages here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raising of messages of E or W is making you to click BACK button twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt; PLEASE DON'T POST DUPLICATE POSTINGS&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manohar Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 May 2006 10:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-messages-display-in-module-pool-programming/m-p/1337596#M171205</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-05-27T10:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: regarding messages display in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-messages-display-in-module-pool-programming/m-p/1337597#M171206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandini&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to modify the display of the screen, you can do it only by looping the screen in the PBO module and not in PAI, so when you click the SAVE button, the fcode is stored in sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANALYSIS OF YOUR PROBLEM:&lt;/P&gt;&lt;P&gt;On the SAVE button, if you give an Error or a Warning message, the process will be interrupted and system returns to the screen display deactivating all the fields outside the CHAIN. FIELD: &amp;lt;fieldname&amp;gt; ENDCHAIN.(as you noticed) without triggering the event PBO. If no change is made in the fields that are ready for input, the PAI process is continued with the FIELD statement and all the previous statements are not processed. This is the reason, why you need to press the Back button twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOLUTION:&lt;/P&gt;&lt;P&gt;You need to set the group1 field of all the coloumns in table control, say G1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In user-command module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt;message 'Records Saved' TYPE S.&lt;/P&gt;&lt;P&gt;when ...&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO, you can have the module modify_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE modify_screen output.&lt;/P&gt;&lt;P&gt;if sy-ucomm = 'SAVE'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;case screen-group1.&lt;/P&gt;&lt;P&gt;when 'G1'.&lt;/P&gt;&lt;P&gt;screen-input = '0'. "it is zero and not O&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the table control will be in display mode and when you click the back button once, you will reach the previous screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your objective for displaying the message for Storing the data and returning to screen 100 will be accomplished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Navneet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please award points and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Navneeth Saraogi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2006 16:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-messages-display-in-module-pool-programming/m-p/1337597#M171206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-28T16:49:38Z</dc:date>
    </item>
  </channel>
</rss>

