Skip to Content
avatar image
Former Member

listbox using select options

hi all,

Can i give a listbox (drop down list) using select options?

thanks

nayan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Aug 16, 2007 at 08:56 AM

    Hello Nayan,

    REPORT ZSSR_DL.

    TYPE-POOLS: VRM.

    DATA: NAME TYPE VRM_ID,

    LIST TYPE VRM_VALUES,

    VALUE LIKE LINE OF LIST.

    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.

    AT SELECTION-SCREEN OUTPUT.

    NAME = 'PS_PARM'.

    VALUE-KEY = '1'.

    VALUE-TEXT = 'JAI'.

    APPEND VALUE TO LIST.

    VALUE-KEY = '2'.

    VALUE-TEXT = 'SRI'.

    APPEND VALUE TO LIST.

    NAME = 'PS_PARM'.

    VALUE-KEY = '3'.

    VALUE-TEXT = 'SAI'.

    APPEND VALUE TO LIST.

    NAME = 'PS_PARM'.

    VALUE-KEY = '4'.

    VALUE-TEXT = 'RAM'.

    APPEND VALUE TO LIST.

    CALL FUNCTION 'VRM_SET_VALUES'

    EXPORTING

    ID = NAME

    VALUES = LIST.

    START-OF-SELECTION.

    WRITE: / 'Parameter:', PS_PARM.

    -


    And also refer....

    drop-down-list-in-selection-screen

    problem-in-select-statementurgent

    Reward If Helpful.

    Regards

    --

    Sasidhar Reddy Matli.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 16, 2007 at 08:53 AM

    Hi,

    REPORT ZLIST.
    
    TYPE-POOLS: VRM.
    
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    
    AT SELECTION-SCREEN OUTPUT.
    
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.
    

    aRs

    Add comment
    10|10000 characters needed characters exceeded

    • I doubt you have been asking for the F4 Drop Down list at select options

      in that case you need to do in this event.

      select-options : so_vbeln type vbak-vbeln.
      at selection-screen on value-request for SO_VBELN-LOW.
      " Write ur code here using the FM 'F4IF_INT_TABLE_VALUE_REQUEST'
      at selection-screen on value-request for SO_VBELN-HIG.
      " Write ur code here using the FM 'F4IF_INT_TABLE_VALUE_REQUEST'

      Regards

      Gopi

  • avatar image
    Former Member
    Aug 16, 2007 at 08:53 AM

    Hi!

    No, you only have to use:

    - checkboxes

    - radiobuttons

    - parameters

    - select options

    Listbox is only available at dynpro programming.

    Hmm, aRs knows something 😊 It seems you can...

    Regards

    Tamás

    Message was edited by:

    Tamás Nyisztor

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2007 at 09:10 AM

    Hi

    I doubt if it is possible.

    What you can do is implement two parameters as listboxes on the same line.

    This will look like select option on selection screen.

    Let me know if you have any issue in implementing above.

    Enjoy SAP.

    Pankaj Singh.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2007 at 09:14 AM

    Hi

    use two parameters one for low and one for high

    TYPE-POOLS: VRM.

    DATA: NAME TYPE VRM_ID,

    LIST TYPE VRM_VALUES,

    VALUE LIKE LINE OF LIST.

    DATA: NAME1 TYPE VRM_ID,

    LIST1 TYPE VRM_VALUES,

    VALUE1 LIKE LINE OF LIST.

    PARAMETERS: PS_LOW(10) TYPE N .

    PARAMETERS: PS_HIGH(10) TYPE N .

    AT SELECTION-SCREEN OUTPUT.

    NAME = 'PS_LOW'.

    VALUE-KEY = '1'.

    VALUE-TEXT = 'JANUARY'.

    APPEND VALUE TO LIST.

    VALUE-KEY = '2'.

    VALUE-TEXT = 'FEBRUARY'.

    APPEND VALUE TO LIST.

    ETC.....

    FOR SECOND ONE

    NAME1 = 'PS_HIGH'.

    VALUE1-KEY = '1'.

    VALUE1-TEXT = 'JANUARY'.

    APPEND VALUE1 TO LIST1.

    VALUE1-KEY = '2'.

    VALUE1-TEXT = 'FEBRUARY'.

    APPEND VALUE1 TO LIST1.

    ETC.....

    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.

    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME1 VALUES = LIST1.

    reward points to all helpful answers

    kiran.M

    Add comment
    10|10000 characters needed characters exceeded