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: 

ALV LIST

Former Member
0 Kudos

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

10 REPLIES 10

Former Member
0 Kudos

I think U need to write an Interactive ALV for this.

Former Member
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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

0 Kudos

Hi,

I want to use Leave To screen 100..Is there any other alternative other than Call screen 100?..

0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.