Current Position:Home > Combo box in a selection screen

Combo box in a selection screen

Update:10-11Source: network consolidation
Advertisement
Hi,
how can I get a combo box with values into s selection screen field.
Thanks,
Marian

The Best Answer

Advertisement
Hi..
just paste this code..
<b>TYPE-POOLS VRM.
DATA:
  VRM_VALUE TYPE VRM_VALUE.
DATA:
  T_DATA TYPE STANDARD TABLE OF VRM_VALUE.
DATA:
  W_NUM TYPE I.
PARAMETERS:
  P_LIST AS LISTBOX VISIBLE LENGTH 10
         USER-COMMAND RAM. " DEFAULT 'X'.
PARAMETERS:
  P_F1(10) TYPE C MODIF ID GR1.
INITIALIZATION.
  VRM_VALUE-KEY = 'A'.
  VRM_VALUE-TEXT = 'RAM'.
  APPEND VRM_VALUE TO T_DATA.
  VRM_VALUE-KEY = '2'.
  VRM_VALUE-TEXT = 'MOHAN'.
  APPEND VRM_VALUE TO T_DATA.
  VRM_VALUE-KEY = '3'.
  VRM_VALUE-TEXT = 'RAO'.
  APPEND VRM_VALUE TO T_DATA.
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      ID              = 'P_LIST'
      VALUES          = T_DATA
    EXCEPTIONS
      ID_ILLEGAL_NAME = 1
      OTHERS          = 2.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF P_LIST NE 'A'.
      IF SCREEN-GROUP1 = 'GR1'.
        SCREEN-ACTIVE = '0'.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
AT SELECTION-SCREEN.
START-OF-SELECTION.
  WRITE: /  P_LIST.</b>
  • Combo box in a selection screen Update:10-11

    Hi, how can I get a combo box with values into s selection screen field. Thanks, MarianHi.. just paste this code.. <b>TYPE-POOLS VRM. DATA:   VRM_VALUE TYPE VRM_VALUE. DATA:   T_DATA TYPE STANDARD TABLE OF VRM_VALUE. DATA:   W_NUM TYPE I. PARAMETERS

  • Index of Values in the List Boxes on a Selection Screen Update:10-11

    Hi, I have a list box on the selection screen for Month field. It has the values Jan, Feb, Mar....etc in it. These entries, I added thru the VRM_SET_VALUES. Now, I want to default the month to current month SY-DATUM+4(2). Is there any FM to which I c

  • How to Create a DropDown Box in a Selection Screen. Update:10-11

    Hi, I have a question. i.e, How to create a dropdown box in a Selection Screen. Could you please assist me. Thanks & Regards Sathish Kumarhi satish, The following can assist u to create a drop down .... Drop down list box can be created in a dialog s

  • How to create the list box in the selection screen. Update:10-11

    hai friends.. i want to create the list box for the selection screen input boxes. thanks, velu.hi.. 1. There are two important things : a)PARAMETERS : a(10) TYPE c AS LISTBOX VISIBLE LENGTH 10. b) Fm VRM_SET_VALUES 2. just copy paste 3. REPORT abc. T

  • List Boxes on a Selection Screen Update:10-11

    Hi, I have a list box on the selection screen. In the At Selection Screen Output, I filled the List box with 12 Values. Now, I want to default the List box value with one of those values. So, after the CALL FM 'VRM_SET_VALUES', I say p_field = 'Value

  • Check Box On Standrad Selection-screen Update:10-11

    Hi Friends I am working on HR ABAP .I added 4 check boxes On Standrad Selection-screen. Its working on Development but its not working on production.can anyone suggest how its happend.Hello, A few questions. - what exactly is not working in productio

  • Handling Check Boxes in the selection screen Update:10-11

    Hi All, I have defined 3 Check Boxes in the selection screen and one box will be ticked as 'X" by default. I need to put restriction so that only any one should be selected as 'X' whenever user wish to select. Hence any time, when user selects a box,

  • How to create Option Boxes IN A SELECTION SCREEN Update:11-30

    How to create Option Boxes IN A SELECTION SCREEN. Thanks!Hi Rajesh, The following explanation gives clear picture of what is mean of check box and radio button with coding..................... <b>CHECK BOX :</b> AS CHECKBOX [USER-COMMAND fcode

  • Input box on default selection screen Update:10-11

    Hi,    how to create an input box on the default selection screen which will accept only 1275 characters.   Can u please help me? Thanks in Advance, Sreekala.Hi Sreekala, You need to use the  CL_GUI_TEXTEDIT for creating the box, also you need use th

  • VBA Userforms – Getting errors when item from combo box is not selected Update:10-11

    Hi there Thank you in advance for taking the time to check this out. Objective: I have 2 combo boxes, one is dependent on what has been selected in the first combo box (dynamic named range), they work fine except for an irritating error when the user