<?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: Module pool screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832412#M1471772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micheal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One doubt here is ...gv_vendor_number NE your_input_field&lt;/P&gt;&lt;P&gt;so..gv_vendor_number store the vendor and same as your_input_field...so whenever the vendor number is changed..vendor number will be replicated to both the feilds...how does it will we differinate both these feilds...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Apr 2010 12:31:49 GMT</pubDate>
    <dc:creator>former_member515329</dc:creator>
    <dc:date>2010-04-10T12:31:49Z</dc:date>
    <item>
      <title>Module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832407#M1471767</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 developed a modulepool screen...this screen is used for saving vendor details into databse tables...so,here i m entering the vendor number and its details and then save it by using a pushbuton...My problem here is when i enter a vendor number and its detail values and suddenly if a user changes the vendor number...i need to show a message that u need to save vendor details before changing the vendor number..&lt;/P&gt;&lt;P&gt;How to achieve this..as the user first enters the vendor number and presses ENTER buton..then a event will trigger..but from there how to handle that event and how to know exactly the vendor number has changed....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 10:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832407#M1471767</guid>
      <dc:creator>former_member515329</dc:creator>
      <dc:date>2010-04-10T10:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832408#M1471768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just create a global variable that can hold the vendor number and each time the user hits enter and your event is triggered, check if the vendor number has changed or not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF NOT gv_vendor_number IS INITIAL AND
       gv_vendor_number NE your_input_field.
  message w000(oo) with 'Vendor Number has changed'.            
  gv_vendor_number = your_input_field.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The check for NOT INITIAL is needed because the first time the user enters a value your global variable will be initial but the vendor number hasn't really changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 11:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832408#M1471768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-10T11:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832409#M1471769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Hold the vendor number in new field after user press enter.Then compare it with screen field, if both are different then pass the message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 11:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832409#M1471769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-10T11:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832410#M1471770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oups, logged on under the wrong user. This is the right one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 11:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832410#M1471770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-10T11:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832411#M1471771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;in TOP Include
data tmp_lifnr  type lifnr. " This is a Tested Code

in PAI

process after input.
 module user_command_0100.
 field lfa1-lifnr module chk_vendor on request.
   " LFA1-LIFNR is your Screen Field for Vendor Number

in program

MODULE chk_vendor INPUT.
  IF NOT lfa1-lifnr IS INITIAL.
    IF tmp_lifnr IS NOT INITIAL.
      IF lfa1-lifnr NE tmp_lifnr.
        MESSAGE 'Before you change the Vendor, Please Save the Data'
        TYPE 'E'.
      ENDIF.
    ENDIF.
    tmp_lifnr = lfa1-lifnr.
  ENDIF.

ENDMODULE.                 " CHK_VENDOR  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 10, 2010 3:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 11:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832411#M1471771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-10T11:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832412#M1471772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micheal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One doubt here is ...gv_vendor_number NE your_input_field&lt;/P&gt;&lt;P&gt;so..gv_vendor_number store the vendor and same as your_input_field...so whenever the vendor number is changed..vendor number will be replicated to both the feilds...how does it will we differinate both these feilds...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 12:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832412#M1471772</guid>
      <dc:creator>former_member515329</dc:creator>
      <dc:date>2010-04-10T12:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832413#M1471773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is why you check if the field content is different BEFORE you set the current value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's simulate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction is called and your_input_field is empty (gv_vendor_number is empty as well)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User enters a vendor and hits enter&lt;/P&gt;&lt;P&gt;We check if gv_vendor_number NE your_input_field but because gv_vendor_number is still initial we do not raise the message (because this is the first time the user put something in.&lt;/P&gt;&lt;P&gt;Now we move your_input_field to gv_vendor_number (both have the same value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User now changes the your_input_field value and hits enter&lt;/P&gt;&lt;P&gt;We again check if gv_vendor_number NE your_input_field and because the gv_vendor_number field still has the OLD value in it we can identify it as being changed and raise the message.&lt;/P&gt;&lt;P&gt;Only then we move your_input_field to gv_vendor_number (both have the same value again) to make sure we capture the next change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 12:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832413#M1471773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-10T12:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832414#M1471774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply...&lt;/P&gt;&lt;P&gt;so..my code will be like this....&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;IF NOT gv_vendor_number IS INITIAL AND&lt;/P&gt;&lt;P&gt;       gv_vendor_number NE your_input_field.&lt;/P&gt;&lt;P&gt;  message w000(oo) with 'Vendor Number has changed'.            &lt;/P&gt;&lt;P&gt;  gv_vendor_number = your_input_field.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Move your_input_feild to gv_vendor_number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 12:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-screen/m-p/6832414#M1471774</guid>
      <dc:creator>former_member515329</dc:creator>
      <dc:date>2010-04-10T12:51:49Z</dc:date>
    </item>
  </channel>
</rss>

