2011 May 18 12:55 PM
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
2011 May 19 5:03 AM
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
2011 May 18 1:11 PM
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.
2011 May 19 5:03 AM
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
2011 May 19 9:08 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |