<?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 Set Default Values in Listbox with Dialog Programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-default-values-in-listbox-with-dialog-programming/m-p/8353303#M1640278</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 am stuck with a problem i.e  I am working with Dialog Programming Screen &lt;/P&gt;&lt;P&gt;where i have to set default values in some n numbers of Listbox which i have created on Screen.&lt;/P&gt;&lt;P&gt;This default value is needed to be fetched from database table.&lt;/P&gt;&lt;P&gt;I am using single table. Hence no confusion that i have to first fetch data from 1st listbox then corresponding data is fetched into second &amp;amp; so on ..NO NO This is not required.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Simple one screen which will update a table in database, where  some fields on the screen needs to be default set as per tables domain default values set while table creation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sandhya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2011 07:14:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-06T07:14:21Z</dc:date>
    <item>
      <title>Set Default Values in Listbox with Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-default-values-in-listbox-with-dialog-programming/m-p/8353303#M1640278</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 am stuck with a problem i.e  I am working with Dialog Programming Screen &lt;/P&gt;&lt;P&gt;where i have to set default values in some n numbers of Listbox which i have created on Screen.&lt;/P&gt;&lt;P&gt;This default value is needed to be fetched from database table.&lt;/P&gt;&lt;P&gt;I am using single table. Hence no confusion that i have to first fetch data from 1st listbox then corresponding data is fetched into second &amp;amp; so on ..NO NO This is not required.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Simple one screen which will update a table in database, where  some fields on the screen needs to be default set as per tables domain default values set while table creation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sandhya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 07:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-default-values-in-listbox-with-dialog-programming/m-p/8353303#M1640278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-06T07:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default Values in Listbox with Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-default-values-in-listbox-with-dialog-programming/m-p/8353304#M1640279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please search SDN, before you post a new forum from next time... any ways just follow the below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; u need to use the FM 'VRM_SET_VALUES' to implement list box in module pool. Check the below code. u have to write this code in PBO..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if c = 0.&lt;/P&gt;&lt;P&gt;select land1 landx from t005t into table wi_country.&lt;/P&gt;&lt;P&gt;sort wi_country by land1.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from wi_country comparing all fields.&lt;/P&gt;&lt;P&gt;loop at wi_country.&lt;/P&gt;&lt;P&gt;wa_ctry-key = wi_country-land1.&lt;/P&gt;&lt;P&gt;wa_ctry-text = wi_country-landx .&lt;/P&gt;&lt;P&gt;append wa_ctry to wi_ctry.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;id = 'ZCUST_MASTER1-COUNTRY'&lt;/P&gt;&lt;P&gt;values = wi_ctry&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;id_illegal_name = 1&lt;/P&gt;&lt;P&gt;others = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c = 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Hope this helps u,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 07:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-default-values-in-listbox-with-dialog-programming/m-p/8353304#M1640279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-06T07:26:07Z</dc:date>
    </item>
  </channel>
</rss>

