Skip to Content
author's profile photo Former Member
Former Member

Dropdown listbox

Hi frnds,

I want to fill all sales documents(i.e.,vbeln) in a dropdown listbox when a page is loaded.Iam new to BSP.Can anyone please help me in this regard.Iam giving the code here.

Layout:

<htmlb:dataContainer name = "myDataContainer1"

table = "<%=it_sales%>"

nameOfKeyColumn = "NAME"

nameOfValueColumn = "VALUE" />

<htmlb:dropdownListBox id = "d1" >

dataContainerName = "myDataContainer1"

</htmlb:dropdownListBox>

Event Handler :

for OnInitialization and Oncreate i have tried the given query.The internal table is getting filled.But iam not getting any values in Dropdown listbox.

Select vbeln from vbak

into corresponding fields of table it_sales

with regards

sireesha.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2006 at 07:08 AM

    Hi,

    You can simply use,

    <htmlb:dropdownListBox id = "d1" >
    table =  "<%=it_sales%>"
    nameOfKeyColumn = "NAME"
    nameOfValueColumn = "VALUE"
    </htmlb:dropdownListBox>
    

    regards,

    Rohit

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 08, 2006 at 08:25 AM

    Hi Sireesha,

    Check the syntax in the below code.

    <htmlb:dropdownListBox id="DL1"
              nameOfKeyColumn="MATNR"
            nameOfValueColumn="MATNR"  
                        table="<%=MODEL->IT_MATNR%>">
            </htmlb:dropdownListBox>
    

    You can also check the application <i>SBSPEXT_HTMLB</i>for reference.

    Do not forget to reward points. 😊

    Thanks,

    G.S.K

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2007 at 12:11 PM

    Hi ,

    make sure that the nameofKeyColumn, nameOfValueColumn is their in the field of the table you are passing to the dropdown.

    That means

    <htmlb:dataContainer name = "myDataContainer1"

    table = "<%=it_sales%>"

    nameOfKeyColumn = "NAME"

    nameOfValueColumn = "VALUE" />

    <htmlb:dropdownListBox id = "d1" >

    dataContainerName = "myDataContainer1"

    </htmlb:dropdownListBox>

    in this code the fields "NAME" and "VALUE" should be in the Internal table "it_sales"

    Please rewards the points if this is helpfull

    Kuldeep Verma

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.