<?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: Handle  text  using list box in dialog program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115827#M1362997</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;  Lets say field1 is your list box and field2 is the text field do like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PAI
chain.
 field field1.
 field field2 module get_value.
endchain.

module get_value input.
 select field2 from....&amp;lt;&amp;lt;&amp;lt;&amp;lt;Get field2 value based on field1 value entered on the screen and assign it to field2 here
endmodule.
&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;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2009 20:26:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-09T20:26:53Z</dc:date>
    <item>
      <title>Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115826#M1362996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  I am  working  on  dialog program  , Created  two fileds , one is list  box type  I/O field and another is  i/O  field  which displays  text  based  on  value  selected in list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please  provide  any  inf  how  to Handle  text  using list box value in dialog program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 20:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115826#M1362996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T20:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115827#M1362997</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;  Lets say field1 is your list box and field2 is the text field do like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PAI
chain.
 field field1.
 field field2 module get_value.
endchain.

module get_value input.
 select field2 from....&amp;lt;&amp;lt;&amp;lt;&amp;lt;Get field2 value based on field1 value entered on the screen and assign it to field2 here
endmodule.
&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;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 20:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115827#M1362997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T20:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115828#M1362998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himansu,&lt;/P&gt;&lt;P&gt;    I tried  as per logic  which  you given, its  not  triggering&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  is  anywhere i want to wirtie in POV  event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here My  requirement is   under  list box i am  getting  values,   and beside creted one  field type i/o   where  it   displays  text of  vlaue  selected in listbox.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 21:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115828#M1362998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T21:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115829#M1362999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Himanshu,&lt;/P&gt;&lt;P&gt;   I  kept this  code in POV, then  i am not  getting list box  values.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 21:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115829#M1362999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T21:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115830#M1363000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi,
&amp;lt;li&amp;gt;Check the screen to know how to set I/O field to set as listbox.[ dropdown box picture|http://2.bp.blogspot.com/_O5f8iAlgdNQ/Sm7RBrqfjcI/AAAAAAAAFaU/RateViiVqrU/s1600-h/drop_down-754481.JPG]
&amp;lt;li&amp;gt;in the above screen we need to set &lt;STRONG&gt;FctCode&lt;/STRONG&gt;  for the dropdown box field so that when you select value from the dropdown box PAI event is triggered.
&amp;lt;li&amp;gt;screen flow logic like below
&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
 MODULE values_into_dropdown.
 FIELD g_bukrs.
FIELD g_text.

PROCESS AFTER INPUT.
 FIELD g_bukrs.
FIELD g_text MODULE get_bukrs_txt.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Logic to fill Dropdown field with values.
  &lt;PRE&gt;&lt;CODE&gt;PROGRAM  sapmztest_dropdown.
DATA: g_bukrs TYPE t001-bukrs.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  VALUES_INTO_DROPDOWN  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE values_into_dropdown OUTPUT.
 TYPE-POOLS:vrm.
 DATA:
       field     TYPE  vrm_id,
       it_values TYPE  vrm_values,
       wa_values LIKE LINE OF it_values.
 DATA: t001 TYPE t001 OCCURS 0 WITH HEADER LINE.
 IF it_values[] Is INITIAL.
   SELECT * FROM t001 INTO TABLE t001 UP TO 10 ROWS.
   LOOP AT t001.
     wa_values-key  = t001-bukrs.
     wa_values-text = t001-butxt.
     APPEND wa_values TO it_values.
     CLEAR  wa_values.
   ENDLOOP.
 ENDIF.
 field = 'G_BUKRS'.
 CALL FUNCTION 'VRM_SET_VALUES'
   EXPORTING
     ID     = FIELD
     values = it_values.

ENDMODULE.                 " VALUES_INTO_DROPDOWN  OUTPUT&lt;/CODE&gt;&lt;/PRE&gt;  
&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  get_bukrs_txt  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE get_bukrs_txt INPUT.
read table it_t100 into wa_t100 with key bukrs = g_bukrs.
g_text = t001-butxt.
ENDMODULE.                 " VALUES_INTO_DROPDOWN  INPUT&lt;/CODE&gt;&lt;/PRE&gt;  

I hope that it helps you.
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 22:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115830#M1363000</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-09-09T22:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115831#M1363001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Venkat,&lt;/P&gt;&lt;P&gt;     fctcode  field  is  disable  for I/O  field ( Listbox).&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 13:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115831#M1363001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T13:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115832#M1363002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  Venkat,&lt;/P&gt;&lt;P&gt; I tried  with  Fct code , no  use. &lt;/P&gt;&lt;P&gt;any  other  method.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 13:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115832#M1363002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115833#M1363003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I am  already  getting  list  of  values   under  this  field,  but  i am  whne I am  selecting  value  from  list box,  i am  unable  to  print  text  in  beside  field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 14:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115833#M1363003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T14:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115834#M1363004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;field EDEVICED-Textfield module get_value.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE GET_VALUE INPUT.&lt;/P&gt;&lt;P&gt; select single ezwg_info into EDEVICED-Textfield table it_ezwg&lt;/P&gt;&lt;P&gt;     from h_ezwg where ZWGRUPPE = EDEVICED-ZWGRUPPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 14:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115834#M1363004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T14:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115835#M1363005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;field EDEVICED-Textfield module get_value.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE GET_VALUE INPUT.&lt;/P&gt;&lt;P&gt; select single ezwg_info into EDEVICED-Textfield  &lt;/P&gt;&lt;P&gt;     from h_ezwg where ZWGRUPPE = EDEVICED-ZWGRUPPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 14:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115835#M1363005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T14:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115836#M1363006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;once I create a field on the screen, it  showing list of values  under listbox ,  Here my requirement is added one more field beside listbox field where it shows  text  corresponding  value of listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 02:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115836#M1363006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-11T02:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Handle  text  using list box in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115837#M1363007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Anyways you are getting the values in the list box. Once the user selects the listbox value, get the corresponding text and move that text to the screen filed which is next to your list box field. You can incorporate this code in the POV of the screen.(where the list box is)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Smart Varghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 06:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-text-using-list-box-in-dialog-program/m-p/6115837#M1363007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-11T06:43:30Z</dc:date>
    </item>
  </channel>
</rss>

