<?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: listbox dropdown value added as 0 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022997#M1348011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys, Actually for my combobox I am simply reading values from the table and setting the values by &lt;/P&gt;&lt;P&gt;function. &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Domain is a custom one and has no values in its value range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2009 04:54:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-24T04:54:27Z</dc:date>
    <item>
      <title>listbox dropdown value added as 0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022992#M1348006</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;I have a few entries and a blank entry at the end of the listbox. The blank entry comes as a default. But when I choose the blank entry and save the record. Then in the display another entry with '0' is added to the listbox option to choose from. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise why it is adding the '0' entry for the blank selection and how to remove it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;FS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 04:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022992#M1348006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T04:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: listbox dropdown value added as 0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022993#M1348007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure the field for which this list box has been created is of character type and not numeric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 04:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022993#M1348007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T04:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: listbox dropdown value added as 0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022994#M1348008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the hint. Actually it is CHAR type but still the value is getting added. Maybe check table is causing the issue. Please advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 04:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022994#M1348008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T04:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: listbox dropdown value added as 0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022995#M1348009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After capturing the value pass the value into temporary variable which is of char  type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code:&lt;/P&gt;&lt;P&gt;Layout code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;htmlb:dropdownListBox id="estatus"&amp;gt;
            &amp;lt;htmlb:listBoxItem key   = "select"
                               value = "Select" /&amp;gt;        
                                 &amp;lt;htmlb:listBoxItem key   = "Active"
                               value = "Active" /&amp;gt;
                                 &amp;lt;htmlb:listBoxItem key   = "Inactive"
                               value = "Inactive" /&amp;gt;
                             
            &amp;lt;htmlb:listBoxItem key   = " "
                               value = " " /&amp;gt;
          &amp;lt;/htmlb:dropdownListBox&amp;gt;

          &amp;lt;htmlb:button id      = "clear"
                        tooltip = "Save the entries"
                        text    = "Save"
                        width   = "35%"
                        on Click = "OnI nputP rocessing()" /&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;OnInputProcessing Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
  w_event TYPE REF TO cl_htmlb_event,
  w_object TYPE REF TO object,
  w_eventid TYPE string,
  w_obj TYPE REF TO object,
 w_listbox TYPE REF TO cl_htmlb_dropdownlistbox.


CALL METHOD cl_htmlb_manager=&amp;gt;get_event
  EXPORTING
    request = runtime-&amp;gt;server-&amp;gt;request
  RECEIVING
    event   = w_event.

w_eventid = w_event-&amp;gt;id.

CASE w_eventid.
  WHEN 'clear'.

 CALL METHOD cl_htmlb_manager=&amp;gt;get_data
          EXPORTING
            request = runtime-&amp;gt;server-&amp;gt;request
            name    = 'dropdownListBox'
            id      = 'estatus'
          RECEIVING
            data    = w_obj.
        w_listbox ?= w_obj.
        w_empvalue = w_listbox-&amp;gt;selection.
w_value = w_empstatus.(W_value is a type of char)
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps you,Let me know if any queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 04:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022995#M1348009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T04:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: listbox dropdown value added as 0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022996#M1348010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is domain of field is  standard or custom ?   Also, can you chek the value range tab of the domain. &lt;/P&gt;&lt;P&gt;Please let us know name of  domain of the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 04:38:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022996#M1348010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T04:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: listbox dropdown value added as 0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022997#M1348011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys, Actually for my combobox I am simply reading values from the table and setting the values by &lt;/P&gt;&lt;P&gt;function. &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Domain is a custom one and has no values in its value range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 04:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-dropdown-value-added-as-0/m-p/6022997#M1348011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T04:54:27Z</dc:date>
    </item>
  </channel>
</rss>

