Application Development and Automation 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: 
Read only

Reg: calling selection screen from the second list

Former Member
0 Likes
1,792

Hi all,

How can we call the selection screen from the second screen.

Can any one help me to solve this problem.

Hi all,

How can we call the selection screen from the second screen.

Can any one help me to solve this problem.

15 REPLIES 15
Read only

Former Member
0 Likes
1,765

you can use Leave to screen 0.

OR

Leave to screen Screen_no.

Read only

0 Likes
1,765

when i am using leave to screen 0 then it goes to first list not for the selection screen

Read only

satsrockford
Active Participant
0 Likes
1,765

hi

use

LEAVE LIST-PROCESSING.

or

CALL SELECTION-SCREEN dynnr.

regards

Satish

Read only

0 Likes
1,765

it is not working is there any other way

Read only

0 Likes
1,765

Hi RJ,

use.....

case sy-ucomm.

WHEN '&F03'.

LEAVE TO SCREEN '0'.

endcase.

in ur code for second screen..

&F03 is f.code for BACK Button.....

Thnx

Rohit

Read only

0 Likes
1,765

Hi RJ,

is it working or not..

if yes then close the thread..

Thnx

Rohit

Read only

0 Likes
1,765

Hai

It is not working.It is also going to first list not for selection screen

Read only

Former Member
0 Likes
1,765

Hi

try this one...

CALL SELECTION-SCREEN dynnr

[STARTING AT col1 lin1

[ENDING AT col2 lin2]]

[USING SELECTION-SET variant].

Here

... STARTING AT col1 lin1 [ENDING AT col2 lin2] means

With the addition STARTING AT, you create a modal dialog box and the selection screen is displayed in it. The upper left corner of the dialog box is determined by the values in col1 and lin1 for column and row. These values refer to the window with the Pop-up-Level 0. The lower right corner is either set automatically or can be specified in col2 and lin2 after ENDING AT. For col1, lin1, col2 and lin2, data objects of the type i are expected. The values of col1, lin1 should be smaller than col2, lin2; Otherwise the behavior will be undefined.

... USING SELECTION-SET variant means

With the addition USING SELECTION-SET, you populate the parameters and selection criteria of the selection screen with the Variant, specified in variant . The transfer of the values to the respective data objects of the program take place immediately before the event ATSELECTION-SCREEN OUTPUT. For variant, you have to specify a character-type data object which at the execution of the statement contains the name of a variant of the main program in capital letters that was stored for the selection screen. If you specify a non-existing variant or a variant of another selection screen of the main program, then the addition is ignored.

Arunima

Read only

Former Member
0 Likes
1,765

hi radhika

there are two type of selection screen

1)single standard selection screen

2)user-defined selection screens

You can use a single standard selection screen and as many user-defined selection screens as you wish. The standard selection screen is called automatically when you start the program.

User-defined selection screens, on the other hand, are called using the CALL SELECTION-SCREEN statement in a program.

hope it may help you

thanks

Sachin

Read only

Former Member
0 Likes
1,765

Hi,

Try...

LEAVE TO SCREEN 1000.

Thanks

Naren

Read only

0 Likes
1,765

Hi,

This is also not working .Please help me.

Read only

0 Likes
1,765

is it a normal report..?

Read only

0 Likes
1,765

Hi,

Yes it is normal Alv. After Grid display screen is called. when u press back button it goes to selection screen but it is not coming .

Read only

0 Likes
1,765

HI RJ,

Try .....

case sy-ucomm.

WHEN '&F03'.

LEAVE TO SCREEN '0'.

endcase.

after the FM for grid-display

i m using the same .....

i hav selection-screen..then alv grid screen 1 then again another screen with alv grid display..

bt in my code for first alv grid ...i m using REUSE_ALV_GRID_DISPLAY_LVC

as

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'

EXPORTING

i_callback_program = sy-repid

i_callback_pf_status_set = 'SET_PF_STATUS'(303)

i_callback_user_command = 'USER_COMMAND'(304)

i_grid_title = 'Reconcilation Report'(305)

is_layout_lvc = it_layout

it_fieldcat_lvc = gt_fieldcat3[]

TABLES

t_outtab = gt_msg[].

here i musing set_pf_status to add one pushbutton to the screen. in ur case u can avoid that...

after that

&----


*& Form set_pf_status

&----


  • text

----


  • -->EXTAB text

----


FORM set_pf_status USING extab TYPE slis_t_extab. "#EC NEEDED

SET PF-STATUS 'STANDARD_FULLSCREEN'.

*get back to Selection Screen

case sy-ucomm.

WHEN '&F03'(328).

LEAVE TO SCREEN '0'.

endcase.

ENDFORM. "set_pf_status

its working for me..

Thnx

Rohit...

Edited by: Rohit Kumar on Oct 29, 2008 3:20 PM

Read only

0 Likes
1,765

any update???????????