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

drop down list in Selection Screen

How to create a dropdown list in selection screen for praameter. can anybody provide logic.

Regards,

Naseer.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 01:45 PM

    Hi,

    Parameters: p_field TYPE ztest-field AS LISTBOX VISIBLE LENGTH 15    DEFAULT 'TEST'.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 01:41 PM

    hi Naseer,

    something like:

    PARAMETERS : p_druck TYPE zdruc-druck OBLIGATORY

    DEFAULT '01' USER-COMMAND lb01

    <b>AS LISTBOX</b> VISIBLE LENGTH 40.

    ec

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 01:44 PM
    TYPE-POOLS: vrm.
    
    DATA: name TYPE vrm_id,
          list TYPE vrm_values,
          value LIKE LINE OF list.
    PARAMETERS: p_frwd(10) AS LISTBOX VISIBLE LENGTH 10.
    
    AT SELECTION-SCREEN OUTPUT.
      name = 'P_FRWD'.
      value-key = '07'.
      value-text = '7 weeks'.
      APPEND value TO list.
      value-key = '06'.
      value-text = '6 weeks'.
      APPEND value TO list.
      value-key = '05'.
      value-text = '5 weeks'.
      APPEND value TO list.
      value-key = '04'.
      value-text = '4 weeks'.
      APPEND value TO list.
      value-key = '03'.
      value-text = '3 weeks'.
      APPEND value TO list.
      value-key = '02'.
      value-text = '2 weeks'.
      APPEND value TO list.
      value-key = '01'.
      value-text = '1 week'.
      APPEND value TO list.
    
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID     = name
          VALUES = list.
    
    
    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.