Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Icon_enter_more

Former Member
0 Likes
941

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
798

Thanks for your help.

It is working but how to capture all the values in an internal table. eg i have entered 1101 in text field then I clicked on Push button and from the F4 help i have selected another value say 1102.

Now I want that all the 2 selected values should cone in an internal table like this:-

I EQ 1101

I EQ 1102

etc.

Can it come directlr or else I have to write some logic . In which event the code for Push button should work?

Thanks In advance,

Bharti Jain

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

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
798

Please use a descriptive subject

You have to check the function COMPLEX_SELECTIONS_DIALOG & SELECT_OPTIONS_RESTRICT.

Using SELECT_OPTIONS_RESTRICT you can restrict the multipel,range values etc options.


DATA: var type PRCTR.
RANGES range FOR var.

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.

Read only

Former Member
0 Likes
799

Thanks for your help.

It is working but how to capture all the values in an internal table. eg i have entered 1101 in text field then I clicked on Push button and from the F4 help i have selected another value say 1102.

Now I want that all the 2 selected values should cone in an internal table like this:-

I EQ 1101

I EQ 1102

etc.

Can it come directlr or else I have to write some logic . In which event the code for Push button should work?

Thanks In advance,

Bharti Jain

Read only

0 Likes
798

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