<?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: Trigger Events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547563#M248835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.  All you need to do is build this in the PBO of the screen.  Here is some sample code.  Here P_BNAME is the field on the screen.  We want to build a listbox with all of the user names in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0001.

&amp;lt;b&amp;gt;type-pools: vrm.&amp;lt;/b&amp;gt;

data: p_BNAME type usr01-bname.

call screen 100.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module STATUS_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.


&amp;lt;b&amp;gt;data: name type vrm_id,
        list type vrm_values,
        value like line of list.

  data: iusr01 type usr01 occurs 0 with header line.

  clear list. refresh list.
  name = 'P_BNAME'.

  select * into corresponding fields of table iusr01
             from usr01.

  sort iusr01 ascending by bname.

  loop at iusr01.
    clear value.
    value-key = iusr01-bname.
    value-text = iusr01-bname.
    append value to list.
  endloop.

* Set the values
  call function 'VRM_SET_VALUES'
       exporting
            id     = name
            values = list.&amp;lt;/b&amp;gt;


endmodule.                 " STATUS_0100  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module USER_COMMAND_0100 input.

check sy-subrc = 0.



endmodule.                 " USER_COMMAND_0100  INPUT


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Sep 2006 22:02:23 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-09-03T22:02:23Z</dc:date>
    <item>
      <title>Trigger Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547558#M248830</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;  &lt;/P&gt;&lt;P&gt;  I need some help on module pool program. I need to recalculate and change the existing values of screen field( in a module pool ) when user enters data in one of the screen fields.( he is not supposed to press enter or a push button) it just needs to be done as soon as data is entered in a screen field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know how this can be done.!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2006 21:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547558#M248830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-03T21:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547559#M248831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THis sort of thing is not supported.  The frontend(sapgui) does not trigger any event to the backend when enter data in a input field, this can be done using a listbox, but not a regular input field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2006 21:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547559#M248831</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-03T21:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547560#M248832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please tell me how can we do that with list box.&lt;/P&gt;&lt;P&gt;Thanks for ur reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2006 21:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547560#M248832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-03T21:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547561#M248833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All you need to do is assign an FCODE to the input field in screen painter, then when you select a value, the PAI is triggered.  Double click on the field in the screen painter,  in the dialog, there is a field for FCODE, enter a value here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you need to specify that the input field is a listbox too, in that same dialog after double clicking on the input field,  select Listbox from the "Dropdown" field.&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;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2006 21:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547561#M248833</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-03T21:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547562#M248834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur time. ALso i need to fill values for drop down dynamically . I mean its value range depends on one of the above fields in the screen if i make it a drop down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest how can i fill values for drop down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2006 21:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547562#M248834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-03T21:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547563#M248835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.  All you need to do is build this in the PBO of the screen.  Here is some sample code.  Here P_BNAME is the field on the screen.  We want to build a listbox with all of the user names in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0001.

&amp;lt;b&amp;gt;type-pools: vrm.&amp;lt;/b&amp;gt;

data: p_BNAME type usr01-bname.

call screen 100.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module STATUS_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.


&amp;lt;b&amp;gt;data: name type vrm_id,
        list type vrm_values,
        value like line of list.

  data: iusr01 type usr01 occurs 0 with header line.

  clear list. refresh list.
  name = 'P_BNAME'.

  select * into corresponding fields of table iusr01
             from usr01.

  sort iusr01 ascending by bname.

  loop at iusr01.
    clear value.
    value-key = iusr01-bname.
    value-text = iusr01-bname.
    append value to list.
  endloop.

* Set the values
  call function 'VRM_SET_VALUES'
       exporting
            id     = name
            values = list.&amp;lt;/b&amp;gt;


endmodule.                 " STATUS_0100  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module USER_COMMAND_0100 input.

check sy-subrc = 0.



endmodule.                 " USER_COMMAND_0100  INPUT


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2006 22:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547563#M248835</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-03T22:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547564#M248836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks got the response I got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2006 22:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-events/m-p/1547564#M248836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-03T22:29:41Z</dc:date>
    </item>
  </channel>
</rss>

