<?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: get cursor module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-module-pool/m-p/7259759#M1528699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani Chowdary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write the code in chain module to get the required functionality, i.e, system should throw error message and screen element shouldnot get disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PROCESS AFTER INPUT.

  CHAIN.

    FIELD S_SCRFLD MODULE CHECK_SCRFLD."Give your screen field in place of S_SCRFLD

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code, you are issuing a warning message, replace W with E :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE 'The driver resource already blocked' TYPE 'W'."Remove W and put E in "TYPE 'W'"
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Sep 2010 09:21:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-04T09:21:46Z</dc:date>
    <item>
      <title>get cursor module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-module-pool/m-p/7259758#M1528698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ztpvsigm-drino IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE igmno FROM ztpvsigm&lt;/P&gt;&lt;P&gt;                        INTO v_igmno1&lt;/P&gt;&lt;P&gt;                        WHERE drino = ztpvsigm-drino  AND&lt;/P&gt;&lt;P&gt;                              rdats &amp;gt;= ztpvsigm-rdats AND&lt;/P&gt;&lt;P&gt;                              rdate &amp;lt;= ztpvsigm-rdate.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      set CURSOR field ZTPVSIGM-DRINO LINE 14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MESSAGE 'The driver resource already blocked' TYPE 'W'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CALL SCREEN 9000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code when record exits in the table then it has to give the error message and cursor should be place at the field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but here its giving message but screen get disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can i place the cursor at the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Sep 2010 08:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-module-pool/m-p/7259758#M1528698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-04T08:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: get cursor module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-module-pool/m-p/7259759#M1528699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani Chowdary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write the code in chain module to get the required functionality, i.e, system should throw error message and screen element shouldnot get disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PROCESS AFTER INPUT.

  CHAIN.

    FIELD S_SCRFLD MODULE CHECK_SCRFLD."Give your screen field in place of S_SCRFLD

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code, you are issuing a warning message, replace W with E :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE 'The driver resource already blocked' TYPE 'W'."Remove W and put E in "TYPE 'W'"
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Sep 2010 09:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-module-pool/m-p/7259759#M1528699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-04T09:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: get cursor module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-module-pool/m-p/7259760#M1528700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this to happen you need to declare a module in the PAI of your Screen like as below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FIELD (your field name goes here MODULE (some module name) ON INPUT.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on the module name &amp;amp; it will direct you to the SE38 &amp;amp; there you can right the above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer the bow wiki link for module pool notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Module Pool Notes|http://wiki.sdn.sap.com/wiki/display/Snippets/Module&lt;EM&gt;Pool&lt;/EM&gt;Notes]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Close the thread if this solves your query. &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;=&amp;gt;Please leave that to the OP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kishan P on Sep 4, 2010 6:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Sep 2010 09:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-module-pool/m-p/7259760#M1528700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-04T09:24:40Z</dc:date>
    </item>
  </channel>
</rss>

