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

list Box

hi all,

i'm facing a small probs,plz help me out of this,in my selection sceen i have a list box which should have 4 values.all those 4 values are not from any database table.i had created an internal table with those 4values,i want that four to be displayed in the drop downlist box on the selection screen.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on May 16, 2005 at 04:51 AM

    Here is the code sample

    type-pools: vrm.
    data: name type vrm_id, list type vrm_values, value like line of
    list.
    parameters: p_obj(2) as listbox visible length 50 obligatory
                default 'AA' .
    at selection-screen output.
    
    clear list .
        refresh list .
        name = 'P_OBJ'.
        value-key = 'AA'. value-text = 'AA text'.
        append value to list .
    
         value-key = 'BB'. value-text = 'BB text'. append value to
        list .
    
        value-key = 'CC'. value-text =
        'CC text'.
        append value to list .
    
        call function 'VRM_SET_VALUES'
             exporting
                  id     = name
                  values = list.
    

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2005 at 04:53 AM

    Hi Anil,

    This topic ahs been discussed in the past in this form. Please search through the fourm and I'm sure you'll find the answer. One of the topics will be Drop down list

    Regards,

    Anand Mandalika.

    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.