Application Development 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: 

Selection Screen & result on the one screen only.

Former Member
0 Kudos

Hi All,

I am having one requirement where I have to display selection screen & the result on the same screen only. I mean that both the screen should be visible to the user and if the user enters the values in the selection screen relative changes should be displayed in the 2nd screen. Can any body tells me how to do this type of report.

Thanks

Vinayak

9 REPLIES 9

Former Member
0 Kudos

Hi

Not Sure if this can happen in a report, but in a module-pool program this is possible.

You can create a module program, have fields for input and the TABLE-CONTROL for output, in the same screen.

Whenever user changes the inputs, PAI gets fired, and data (output in Table control) changes accordingly.

Regards,

Raj

0 Kudos

One option could be to use a CONTAINER to dispaly the output..

~Suresh

0 Kudos

Hi Suresh,

Thanks for your sugestion.

could you please guide me how to dispaly a tree structured output inside the container.

Thanks,

Vinayak

0 Kudos

First off, I haven't done it myself.. but came across a similar approach in a standard program.. its a combination of a Module Pool & Report Program. The Basic report will call a screen. This screen will have the select options in a subscreen & the report output in a HTML Container.. pl take a look at screen 0100 of the Program SAPLHRESS00_REP using Tcode SE51.

~Suresh

former_member181962
Active Contributor
0 Kudos

Refer the demo exapmples:

demo_sel_screen_with_subscreen.

demo_sel_screen_as_subscreen.

demo_sel_screen_in_tabstrip.

demo_sel_screen_with_tabstrip.

Regards,

Ravi

Former Member
0 Kudos

hi,

Module pool programming is the best option.

btw, try putting code in at selection screen event.

BR,

Preema

*Award points if it helps

Former Member
0 Kudos

hi,

What does your resultant screen have? Does it contain simple modifications similar to the program below?


selection-screen begin of block b1.
selection-screen begin of line.
parameters: p_matnr like mara-matnr.
selection-screen comment  30(10) v_maktx.
selection-screen end of line.
selection-screen end of block b1.
at selection-screen output.

select single maktx from makt into v_maktx
         where matnr = p_matnr and spras = 'E'.
if sy-subrc <> 0.
 clear v_maktx.
endif.

Regards,

Sailaja.

Former Member
0 Kudos

Hi Vinayak,

Write the code for getting the result in

AT SELECTION-SCREEN OUTPUT..and try...

Regards,

Ajith

Former Member
0 Kudos

hi vinayak,

This what I under stood from your requirement.

You want to display an alv report on the selection screen itself.

Eg. selection screen have select options for

Material number

Material type

and the report has

Material number material desc ……..other field of report

.

Now if user enters selection values an press enter (or any other action like pressing function key defined by us etc..) Then the report should be displayed immediately below depending on the above selection.

If the above specified is your requirement then

There are two ways of doing the above.

1) Using Docking container on selection screen. Class cl_gui_docking_container

2) Using Selection screen as sub screen

The second solution is not the excct what you require but i will certainly fulfill the functionality.

regards

alfred

reward points if it is helpful.