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

List Box in Module Pool Programming

Hi I am having a screen in module pool programming. One in that screen one input/output element is there and in the attributes i have selected as List box. Now how to populate certain values to the same.

Regards,

Amit

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 24, 2005 at 01:03 PM

    You need this type

    TYPE-POOLS: vrm.

    DATA: name TYPE vrm_id,

    list TYPE vrm_values,

    value LIKE LINE OF list.

    REFRESH list.

    CLEAR list.

    name = name_of_your_field.

    You need to fill the table with pairs of key/value

    value-key = 'key1'.

    value-text = 'value1'.

    APPEND value TO list.

    value-key = 'key2'.

    value-text = 'value2'.

    APPEND value TO list.

    CALL FUNCTION 'VRM_SET_VALUES'

    EXPORTING

    id = name

    values = list.

    Message was edited by: Juan Carlos Delgado

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 24, 2005 at 01:48 PM

    Hello Amit,

    I think this topic is best explained in the SAP Documentation. Here's the link - http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm

    There was also a discussion on this topic sometime back in this forum, which you might find interesting - Drop down list

    Please get back if you have need further help on this one. And please close the thread if you have succeeded with your requirement.

    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.