<?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: Help with a module pool snippet in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209686#M1377481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just execute an EXIT and don't set SCREEN to 0, so program will go out of FORM/MODULE and at the end of PAI it will execute the PBO of the screen specified in the current screen definition (usually the same - SE51-attributes-next screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting SCREEN to 0 will send you back to previous screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Sep 2009 09:23:54 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2009-09-21T09:23:54Z</dc:date>
    <item>
      <title>Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209682#M1377477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am provding a small code snippet of my program from module pool .Here my aim is that incase message &lt;/P&gt;&lt;P&gt; 'No pending gatenentry found by this no.Plz check details.' is displayed .Program should go back to screen.&lt;/P&gt;&lt;P&gt;However, it moves to next statement after displaying information message. What to do ?.I&lt;/P&gt;&lt;P&gt;dont wat to use type 'E' as it doesnot let me do anything further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if t_zrgpno[] is initial.
clear: t_rec,t_rec[].  "Incase something was entered previously
message 'No pending gatenentry found by this no.Plz check details.' type 'I'.
leave list-processing.
endif.
endif.

*********** Check if grn attached to this process has a blank store loc
*********** if yes then direct user to old system flow in order to finish ok.
data: genmes type string.

select mblnr zeile matnr lgort from mseg into table check_542 where smbln = p_grn
and bwart = '542' and shkzg = 'S' and werks = p_werks.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209682#M1377477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T08:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209683#M1377478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;SET SCREEN 0.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Preeti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209683#M1377478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T08:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209684#M1377479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;There are two special key words for &lt;STRONG&gt;Flow Logic&lt;/STRONG&gt; &lt;STRONG&gt;ON INPUT&lt;/STRONG&gt; and &lt;STRONG&gt;ON REQUEST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;issue an &lt;STRONG&gt;Error Message&lt;/STRONG&gt; instead of Type &lt;STRONG&gt;S&lt;/STRONG&gt; message by using above key words.&lt;/P&gt;&lt;P&gt;for further info please take the help of Key word documentation of help of Tcode &lt;STRONG&gt;ABAPDOCU&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209684#M1377479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T08:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209685#M1377480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This snippet is on user_command module in case to button click.&lt;/P&gt;&lt;P&gt;Preeti, are you sure i will stay on same screen by doing set screen 0 and exit.If no then this is&lt;/P&gt;&lt;P&gt;not my choice.&lt;/P&gt;&lt;P&gt;I will also try through nabapdocu as told by you sir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 09:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209685#M1377480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T09:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209686#M1377481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just execute an EXIT and don't set SCREEN to 0, so program will go out of FORM/MODULE and at the end of PAI it will execute the PBO of the screen specified in the current screen definition (usually the same - SE51-attributes-next screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting SCREEN to 0 will send you back to previous screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 09:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209686#M1377481</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-09-21T09:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209687#M1377482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use : message 'asdasd' type 'S' display like 'E'.&lt;/P&gt;&lt;P&gt;and the next statement  : call screen 0. take you  back to the screen executing the PBO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 09:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209687#M1377482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T09:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209688#M1377483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx soumya ,that solves my purpose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 10:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209688#M1377483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T10:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209689#M1377484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But i will be glad incase i can print the same message in form of information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 10:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209689#M1377484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T10:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209690#M1377485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the type to 'I'. same code remains&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 10:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209690#M1377485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T10:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209691#M1377486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...display like 'I'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 10:14:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209691#M1377486</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-09-21T10:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a module pool snippet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209692#M1377487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you put it in FIELD statement in module pool program, it will allow to edit the same field, but with error message in message bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, you can directly use MESSAGE ...   TYPE 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: FIELD zrgpno MODULE check_zrgpno.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 09:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-a-module-pool-snippet/m-p/6209692#M1377487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T09:24:18Z</dc:date>
    </item>
  </channel>
</rss>

