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

Problem in Call Screen

Former Member
0 Likes
1,326

hi! all

I'm having an executable report in which from the given input a screen opens to enter data.

my default selection-screen no. is 1000.

user-defined screen no. is 1001.

when i click back button the following error occurs.

Selection screen ZSDSR032_PACK_LIST_ENTRY 1000 was

not called using CALL SELECTION-SCREEN

i have used the following code,

MODULE user_command_1001 INPUT.

CASE sy-ucomm.

WHEN 'BACK'.

LEAVE TO SCREEN 1000.

ENDCASE.

ENDMODULE. " USER_COMMAND_1001 INPUT

kindly help me to solve it.

Thanks in advance

Regards,

Nagulan.

15 REPLIES 15
Read only

Former Member
0 Likes
1,295

Hi Nag,

Try to use call screen and check.

CASE sy-ucomm.

WHEN 'BACK'.

call screen 1000.

ENDCASE.

Read only

Former Member
0 Likes
1,295

In attributes of screen 1001,under 'Other Attributes' wirte '1000' as Next Screen and in the PAI module write the following :


MODULE user_command_1001 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE SCREEN.
ENDCASE.

Thanks & Regards,

Rock.

Read only

Former Member
0 Likes
1,295

Hi! Gurus

Thanks for your reply

but i too tried both the options the same error occurs.

is it bz of screen no 1000 & 1001.

kindly help me.

Regards,

Nagulan

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,295

Venkat is correct !!!!

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,295

is that a independant selection screen.

Read only

0 Likes
1,295

I mean a report screen ???

Read only

0 Likes
1,295

hi! Kesav

s its a report screen with a parameter as an input field.

Read only

Former Member
0 Likes
1,295

CALL SELECTION-SCREEN 1000

but the behavior is very strange

Read only

0 Likes
1,295

hi! Xiaonan Hu

Thanks for ur minute help,

if i'm using call selection-screen 1000 its calling the needed screen but after that i'm not able to perform other options (ex: re-enter the data and execute it) .

Read only

Former Member
0 Likes
1,295

Hi,

try to this

REPORT ZSDSR032_PACK_LIST_ENTRY

PARAMETERS: rb1 RADIOBUTTON GROUP ab MODIF ID bl2,

rb2 RADIOBUTTON GROUP ab MODIF ID bl2.

SELECTION-SCREEN BEGIN OF SCREEN 1000.

parameter p_val1 type char10.

SELECTION-SCREEN END OF SCREEN 1000.

SELECTION-SCREEN BEGIN OF SCREEN 1001.

parameter p_val2 type char10.

SELECTION-SCREEN END OF SCREEN 1001.

AT SELECTION-SCREEN.

if rb1 = 'X'.

call selection-screen 1000.

else.

call selection-screen 1001.

endif.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,295

SET SCREEN 1000.

SUBMIT ZSDSR032_PACK_LIST_ENTRY VIA SELECTION-SCREEN.

check abap docu

check the pf status....buuto function type

Read only

Former Member
0 Likes
1,295

hi! all

Problem has been solved.

LEAVE TO SCREEN 0.

can anybody explain me y its happing.

earlier i have worked with leave to screen 1000 call screen 1000, but y for this report alone it dnt work?

Thanks and Regards,

Nagulan

Read only

0 Likes
1,295

I suppose you had not WRITE anything in the list buffer.

Edited by: Xiaonan Hu on Nov 1, 2008 8:40 AM

Read only

0 Likes
1,295

Hi Nagula,

Basically when you want the program back to the previous screen no matter what is the screen number then in that case you need to enter the statement.

LEAVE TO SCREEN 0.

Thanks,

Chidanand

Read only

Former Member
0 Likes
1,295

Hi,

When you are caling the standard report you have to change the pf-status of the standard report by coping it into zreport and do it..

Thanks,

Thiru. R