Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

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 comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    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 comment
    10|10000 characters needed characters exceeded

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

    Hi Prasad,

    Have a look at demo program DEMO_DYNPRO_DROPDOWN_LISTBOX.

    Thanks

    Lakshman

    Add comment
    10|10000 characters needed characters exceeded