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

Display list on selection-screen

Former Member
0 Likes
3,063

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,925

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^

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,925

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 ?

Read only

0 Likes
1,925

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.

Read only

Former Member
0 Likes
1,926

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^

Read only

Former Member
0 Likes
1,925

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.

Read only

Former Member
0 Likes
1,925

Hi

displaying on the same selection screen is some what dificult

i think that feture we don't have in ABAP

Read only

Former Member
0 Likes
1,925

Dear Tey,

Why do you want the list on the "selection screen"?

What further processing needs to be done?

Regards,

Ravi Bhatnagar

Read only

0 Likes
1,925

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

Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,925

yes, u can do like this.

befor displaying u give

sy-lsind = 0.

then ur list will be displayed on the same screen.