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

How to get the values in the dropdown listbox for screen field

hi friends !

I have selected dropdown listbox for a field in the screeen. Now, how to pass the possible values into the list. Please give the kind help.

Regards,

-Prasad.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Mar 02, 2005 at 07:28 AM

    You need to use VRM_SET_VALUES FM.

    type-pools: vrm.

    data: name type vrm_id, list type vrm_values, value like line of

    list.

    clear list .

    refresh list .

    name = 'P_OBJ'. "this is the name of the screen field

    value-key = 'A'. value-text = 'Description A'.

    append value to list .

    value-key = 'B'. value-text = 'Description B'. append value to

    list .

    call function 'VRM_SET_VALUES'

    exporting

    id = name

    values = list.

    Hope this helps.

    Regards

    Raja

    PS: This has been discussed many times here in SDN forum. Please search the forum before posting a new thread.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2005 at 07:39 AM

    Hi Prasad,

    As Raja had mentioned, this topic has been discussed many times in this forum in the past. Please make sure that you first search the forum for related topics before you post new ones. that would avoid a lot of redundancy. Anyays, here are some of the topics you can refer to:

    Drop down list

    DROP DOWN BOX

    http://help.sap.com/saphelp_46c/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm

    Regards,

    Anand Mandalika.

    P.S: Please don't forget to reward points and close the thread once your problem is resolved.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 02, 2005 at 08:00 AM

    Hi Prasad,

    Have a look at demo program DEMO_DYNPRO_DROPDOWN_LISTBOX.

    Thanks

    Lakshman

    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.