‎2008 Nov 01 5:32 AM
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.
‎2008 Nov 01 5:34 AM
Hi Nag,
Try to use call screen and check.
CASE sy-ucomm.
WHEN 'BACK'.
call screen 1000.
ENDCASE.
‎2008 Nov 01 5:37 AM
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.
‎2008 Nov 01 5:41 AM
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
‎2008 Nov 01 5:44 AM
‎2008 Nov 01 5:45 AM
‎2008 Nov 01 5:46 AM
‎2008 Nov 01 5:49 AM
hi! Kesav
s its a report screen with a parameter as an input field.
‎2008 Nov 01 5:50 AM
‎2008 Nov 01 5:56 AM
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) .
‎2008 Nov 01 6:08 AM
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.
‎2008 Nov 01 6:37 AM
SET SCREEN 1000.
SUBMIT ZSDSR032_PACK_LIST_ENTRY VIA SELECTION-SCREEN.
check abap docu
check the pf status....buuto function type
‎2008 Nov 01 6:37 AM
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
‎2008 Nov 01 7:40 AM
I suppose you had not WRITE anything in the list buffer.
Edited by: Xiaonan Hu on Nov 1, 2008 8:40 AM
‎2008 Nov 01 9:11 AM
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
‎2008 Nov 01 9:57 AM
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