2006 Oct 04 10:44 AM
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
2006 Oct 04 10:46 AM
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
2006 Oct 04 10:49 AM
One option could be to use a CONTAINER to dispaly the output..
~Suresh
2006 Oct 04 11:15 AM
Hi Suresh,
Thanks for your sugestion.
could you please guide me how to dispaly a tree structured output inside the container.
Thanks,
Vinayak
2006 Oct 04 9:01 PM
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
2006 Oct 04 10:48 AM
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
2006 Oct 04 10:56 AM
hi,
Module pool programming is the best option.
btw, try putting code in at selection screen event.
BR,
Preema
*Award points if it helps
2006 Oct 04 10:58 AM
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.
2006 Oct 04 11:00 AM
Hi Vinayak,
Write the code for getting the result in
AT SELECTION-SCREEN OUTPUT..and try...
Regards,
Ajith
2006 Oct 05 5:51 AM
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.