2007 Oct 17 11:05 AM
Hello everyone,
I've got a question concerning selection screen. I want to know, if there is a way to display list/table on selection screen after user input. Specifically, when user enters for example 30 invoice numbers into select-options, I need those 30 numbers displayed on the same selection screen.
Thanks in advance
2007 Oct 17 11:13 AM
hi
good
report zrich_0002 .
tables: sscrfields.
selection-screen begin of line.
selection-screen pushbutton (20) pb1 user-command pb1.
selection-screen end of line.
at selection-screen.
If the user has clicked pushbutton,
force the execute button which will
fire the START-OF-SELECTION
if sscrfields-ucomm = 'PB1'.
sscrfields-ucomm = 'ONLI'.
endif.
start-of-selection.
do 10 times.
write:/ sy-index.
enddo.
reward point if helpful.
thanks
mrutyun^
hi
good
report zrich_0002 .
tables: sscrfields.
selection-screen begin of line.
selection-screen pushbutton (20) pb1 user-command pb1.
selection-screen end of line.
at selection-screen.
If the user has clicked pushbutton,
force the execute button which will
fire the START-OF-SELECTION
if sscrfields-ucomm = 'PB1'.
sscrfields-ucomm = 'ONLI'.
endif.
start-of-selection.
do 10 times.
write:/ sy-index.
enddo.
reward point if helpful.
thanks
mrutyun^
2007 Oct 17 11:11 AM
why on the selection screen ?? I can understand if you want to show it on the output form ?
I don't understand the requirement I guess ?
2007 Oct 17 11:24 AM
Well, our client wants to verify data he puts into the select-options with data he got in documents (normal documents, not e-documents) before its processed into ALV.
2007 Oct 17 11:13 AM
hi
good
report zrich_0002 .
tables: sscrfields.
selection-screen begin of line.
selection-screen pushbutton (20) pb1 user-command pb1.
selection-screen end of line.
at selection-screen.
If the user has clicked pushbutton,
force the execute button which will
fire the START-OF-SELECTION
if sscrfields-ucomm = 'PB1'.
sscrfields-ucomm = 'ONLI'.
endif.
start-of-selection.
do 10 times.
write:/ sy-index.
enddo.
reward point if helpful.
thanks
mrutyun^
2007 Oct 17 11:21 AM
instead u can print selection screen....along with output.....
for this....
You can use given function module to print your
selection screen
RS_REFRESH_FROM_SELECTOPTIONS
>This will get Current contents of selection screen
RS_LIST_SELECTION_TABLE
>This will Generates list according to values in selection table(RSPARAMS)
-
Sample
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = p_repid
TABLES
selection_table = it_int_tab
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc EQ 0.
WRITE:1 'Selection Criteria'(i19),
/1 sy-uline(18),
/1 'Variant Name'(i21),
23 sy-slset.
*-- This function module lists the Selection Screen contents
CALL FUNCTION 'RS_LIST_SELECTION_TABLE'
EXPORTING
report = p_repid
seltext = 'X'
newpage = space
TABLES
sel_tab = it_int_tab
EXCEPTIONS
sel_tab_empty = 1
OTHERS = 2.
2007 Oct 17 11:23 AM
Hi
displaying on the same selection screen is some what dificult
i think that feture we don't have in ABAP
2007 Oct 17 11:25 AM
Dear Tey,
Why do you want the list on the "selection screen"?
What further processing needs to be done?
Regards,
Ravi Bhatnagar
2007 Oct 17 11:33 AM
Dear Ravi,
The request to display this on selection screen was made by client.
And the further processing is just simple ALV display.
Regards,
Tey
2007 Oct 17 11:27 AM
yes, u can do like this.
befor displaying u give
sy-lsind = 0.
then ur list will be displayed on the same screen.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |