04-18-2006 12:28 PM
Hi,
I have one selection screen in which i display ALV list.
From ALV list i want to leave to a Dialog Screen say 100.
Can I use 'Leave to screen 100'
Pls Help
04-18-2006 12:31 PM
04-18-2006 12:33 PM
Hi
When do you want to go to screen 100?
If you need to do that after user've pressed BACK, you can place the statament after calling the ALV fm, otherwise you should implement a USER_COMMAND routine.
Max
04-18-2006 12:33 PM
You need to use call screen 100. not leave to screen 100.
in your user-command of alv you need to write that under BACK or CANCEL or EXIT
Regards
vijay
04-18-2006 12:35 PM
Hi,
I want to use Leave To screen 100..Is there any other alternative other than Call screen 100?..
04-18-2006 12:39 PM
Hi
I don't believe, because if you use LEAVE TO SCREEN in a report you can lose the point where the screen was called.
Max
04-18-2006 12:34 PM
No, you can;t say leave to screen scrno.
the syntax for leave to screen scrno. is only leave to screen 0 which takes back u to the previous screen.
u can
set screen 100.
Leave to list processing and return to screen 0 is used to go into another screen from one executable program to another.
04-18-2006 12:34 PM
Hi Suganya,
yes you can call a screen from an ALV..
just use set screen '0100'
handle it in in the PAI event
regards
satesh
04-18-2006 12:35 PM
Hi Suganya,
You will have to capture the 'Double-Click' event for the ALV List/Grid. On this you will have to use the statement 'CALL SCREEN 100'.
Please reward points if the answer was helpful.
Regards,
Kunal
04-18-2006 1:10 PM
Hi Suganya
To go to any screen from ALV list you need to write the code for the alv list in a little different way. check the following code part.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-repid
I_CALLBACK_PF_STATUS_SET = 'STANDARD'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IT_FIELDCAT = I_FCAT
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = T_TABLES
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
now you will have to define the user_command subroutine as
FORM USER_COMMAND USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
leave to screen 100.
ENDFORM.
Thanks.
Note: If this code is useful then pls give points
04-18-2006 1:24 PM
FORM USER_COMMAND USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
leave to screen 100.
ENDFORM.
If i use this code i am getting short dump error.