04-15-2010 7:26 AM
Hi Experts,
I am displaying an AVL report using OOPS.
It is an Interactive report where user can select an line item and call some other screen, and from there call the report screen.
I have written CALL SELECTION-SCREEN 1000 to call the selection screen(Screen no 1000) from the Report.
The selection screen gets called. But when I execute again (within the same session) the START-OF-SELECTION does not get execute, hence no data gets populated in internal tables.
I am not sure whether this is because of CALL SELECTION-SCREEN?
Please help.
Thanks in Advance.
Rohan.
04-15-2010 7:41 AM
>
> I have written CALL SELECTION-SCREEN 1000 to call the selection screen(Screen no 1000) from the Report.
> The selection screen gets called. But when I execute again (within the same session) the START-OF-SELECTION does not get execute, hence no data gets populated in internal tables.
>
HI Rohan use
CALL SELECTION-SCREEN 1000 USING SELECTION-SET vari .
This will triger the selection screen events .
Regards,
Rajesh
04-15-2010 7:52 AM
Hi Rajesh,
Thanks for your reply.
But still, Start-of-selection is not getting executed when I execute again after CALL SELECTION-SCREEN 1000.
Do I need to set variant as per your reply?
Thanks.
04-15-2010 7:58 AM
04-15-2010 8:00 AM
04-15-2010 8:10 AM
Rohan,
Refer Link:
[Set Variant|http://help.sap.com/abapdocu_70/en/ABAPCALL_SELECTION_SCREEN.htm]
To create a screen variant, use transaction SHD0. Use menu Goto -> Screen variants
The process to create a screen variant is similar to creating a Transaction variant. The difference between the two types is that a Transaction variant covers the whole transaction and therefore can have more than 1 screen, while a screen variant only can have 1 screen.
04-15-2010 8:14 AM
Hi Manas,
I dont want to create a Screen variant for this report.
I want to display the selction screen from report. That is why I am using CALL SELECTION-SCREEN.But when I use this the START-OF-SELECTION is not executed.
I also tried using SET SCREEN 0.LEAVE SCREEN.
But this gives Blank SCREEN first and then after Pressing BACK, selection screen is displayed.
Thanks.
02-14-2011 8:49 AM
Hi,
why do you call the selection screen 100? It's called automtically for reports of type 1. I never call selection screen 1000 myself.
Give your options via SUBMIT WITH recalling the report interactively ...
Regards,
Klaus
Edited by: Klaus Babl on Feb 14, 2011 10:27 AM
04-15-2010 7:56 AM
Hi Rohan,
The default selection screen has number 1000.
For calling it in to your program use
Call selection screen 1000 USING Selection-set vari
.
02-14-2011 8:39 AM
HI Rohan,
Maybe you can use " CALL TRANSACTION SY-TCODE " to call the program again
instead of using call selection-screen '1000'.
I wish it could help you.
02-06-2023 7:11 PM
I had the same problem Rohan did, and your solution worked for me. Thx 😄
02-16-2023 2:29 PM
02-14-2011 2:38 PM
The CALL SELECTION-SCREEN 1000 does not trigger the START-OF-SELECTION event, but it will trigger the AT SELECTION-SCREEN events (PBO OUTPUT/PAI else), and then resume the next statement (with sy-subrc which indicates if user has executer/cancelled the selection).
You could try something like
* Selection-screen definition
PARAMETERS...
* PBO
AT SELECTION-SCREEN OUTPUT.
" statements
* PAI
AT SELECTION-SCREEN?
" statements
START-OF-SELECTION
DO.
" statements
CALL SELECTION-SCREEN 1000.
IF sy-subrc NE 0. LEAVE PROGRAM. ENDIF.
ENDDO.
But if fear that the screen stack may trigger a dump after some loops. Do nothing and at the end of the START-OF-SELECTION section, the program will display the first SELECTION-SCREEN.
Regards,
Raymond.
02-21-2011 2:43 PM
Hi,
You are using call selection-screen 1000. It is not going in start-of-selection.
In oops, You will use another way
Creating ALV Grid in Report without using screen
Define an empty selection screen in your program dont use screen painter.
ex:
step 1 : selection-screen begin of screen 1001.
selection-screen end of screen 1001.
step 2 :For display, use as reference lvc_s_layo, cl_gui_alv_grid.
step 3: events at selection-screen output for use
at selection-screen output.
at start-of-selection.
step:4 call method w_alv->set_table_for_first_display ( fieldcatalopgue)
step5 : call selection-screen 1001.
I hope, it will helps to you.
Regards,
Sekhar
02-21-2011 10:58 PM
Have you tried "leave to list-processing" ?
You can also try stop but in this cases i use leave to list-processing and all goes ok 😃