Skip to Content
avatar image
Former Member

Restricting entries in select option

Hi,

I have created one webdynpro application with select option for material.

How can I restrict user to enter only up to 100 entries in select option at a time?

Thanks!

Regards,

Puneet


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 18, 2016 at 02:36 PM

    Hi Puneet.

    Try below programmer

    LINE-SIZE 100

    TABLES : mara.

    SELECT-OPTIONS : s_matnr FOR mara-matnr.

    DATA : BEGIN OF itab OCCURS 0.

    INCLUDE STRUCTURE mara.

    DATA: END OF itab.

    DO 100 TIMES.

    s_matnr-sign = 'I'.

    s_matnr-option = 'BT'.

    s_matnr-low = ''.

    s_matnr-high = ''.

    APPEND s_matnr.

    CLEAR s_matnr.

    ENDDO.

    SELECT * FROM mara INTO TABLE itab WHERE matnr IN s_matnr.

    It might help you.

    Regards.

    Srini

    Add comment
    10|10000 characters needed characters exceeded