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

Module-pool: List-Box


I am customizing a Z- module pool transaction.

Below is my requirement.

I am displaying shipment numbet in I/O field.

If LoadID exists for more than one shipment, display other shipments as drop-down.

When the transaction is executed for the first time, I should be able to enter the shipment no., then based on LOAD ID, I should display multiple shipments in the same I/O field.

I am using the FM : vrm_set_values.

But, m not able to achieve this.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Apr 17, 2011 at 01:05 PM


    The function module VRM_SET_VALUES is used to fill the value list associated with a List Box .This FM uses types which are declared in type group VRM. So

    we should declare TYPE-POOLS VRM before using this FM.

    Some important types declared in the VRM type group are


    It refers to the name of the input/output field associated with list box


    It refers to the internal table consisting of two fields TEXT(80C) and KEY(40)C

    that will be used to create the list values.



    ID = name of screen element ,it is of TYPE VRM_ID

    VALUES = internal table containing values,of TYPE VRM_VALUES



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,


      DATA : field_id TYPE VRM_ID ,

      values TYPE VRM_VALUES,

      value LIKE LINE OF values.


      MODULE list_fill_100

      MODULE list_fill_100 OUTPUT

      SELECT f1 f2 f3 FROM tab WHERE condition.

      value-KEY = f1.

      value-TEXT = f2

      APPEND value TO VALUES



      id = 'i/o screen field'

      values = values.


      May be this sample help you.



  • author's profile photo Former Member
    Former Member
    Posted on Apr 18, 2011 at 05:43 AM

    Thanks for your help.

    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.