Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Icon_enter_more

Dear All The ABAP Gurus,

I am developing a module pool in which I have displayed a pushbutton for entering more values and having ICON_ENTER_MORE

as icon. Now I want that when user clicks the pushbutton then the Pop up should get open as we get in Select-options or Parameters with no interval in Reports. I dont want to write a report and use call screen. The field in which I want is Profit center so that user can enter multuple values in it. it is not used as from-to .

How to get the pop up and read the entered values in internal table so that data can be brought based on the multiple profit centers entered.

Thanks In Advance,

Bharti Jain

Former Member
replied

Hi,

Why dont you design a screen and call it as a subscreen in your module pool screen. Why are you making things complicated ?

anyways check this

TABLES: sscrfields.

DATA: var TYPE prctr.
RANGES range FOR var.

SELECTION-SCREEN BEGIN OF line.
PARAMETERS:pa TYPE prctr.
SELECTION-SCREEN PUSHBUTTON  15(4) but1 USER-COMMAND but1.
SELECTION-SCREEN end OF line.

AT SELECTION-SCREEN.
  CHECK sscrfields-ucomm EQ 'BUT1'.

  CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
    EXPORTING
      title             = 'Select'
    TABLES
      range             = range
    EXCEPTIONS
      no_range_tab      = 1
      cancelled         = 2
      internal_error    = 3
      invalid_fieldname = 4
      OTHERS            = 5.

  if pa is not initial.
    range-option = 'EQ'.
    range-sign = 'I'.
    range-low = pa.
    append range.
  endif.

Keshav

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question