‎2007 Jun 18 5:08 AM
hi,
In my report program, when i click the BACK icon in the PAI event, i want the control to go back to the selection sreen. How do i achieve this?
‎2007 Jun 18 5:12 AM
Hi,
Not sure..What are you looking for...But try using LEAVE TO SCREEN 0.
REPORT zreport.
parameters: p_matnr type matnr.
START-OF-SELECTION.
* Call the screen..
CALL SCREEN '0100'.
PROCESS AFTER INPUT.
MODULE USER_COMMAND.
* Modules
MODULE USER_COMMAND INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
* Leave to the selection screen.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE.
Thanks
Naren
‎2007 Jun 18 5:11 AM
Hi
If your program is a Report, then pressing back button on the output (list) will take you back to selection screen. PAI and PBO are for Dialog programs.
Regards,
Raj
‎2007 Jun 18 5:15 AM
Hi,
Use the below code under User_command module for the partiuclar screen no.
E.g If you are using screen 9001, then in PAI.
MODULE user_command_9001 INPUT.
SET SCREEN 0.
LEAVE SCREEN.
ENDMODULE. " USER_COMMAND_9001 INPUT
Then, if you press back button, selection screen will be displayed.
Regards,
Anbalagan
‎2007 Jun 18 5:11 AM
Hi,
While creating the layout give the function code type E for back.
Write appropriate code in CASE stmt.
regards,
RAM.
‎2007 Jun 18 5:11 AM
Hi
You have to check for sy-ucomm.
case sy-ucomm.
when <function code of back>.
leave program.
hope this solves ur query
regards
dinesh
‎2007 Jun 18 5:12 AM
Hi,
Not sure..What are you looking for...But try using LEAVE TO SCREEN 0.
REPORT zreport.
parameters: p_matnr type matnr.
START-OF-SELECTION.
* Call the screen..
CALL SCREEN '0100'.
PROCESS AFTER INPUT.
MODULE USER_COMMAND.
* Modules
MODULE USER_COMMAND INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
* Leave to the selection screen.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE.
Thanks
Naren
‎2007 Jun 18 5:15 AM
hi
jsut try
CALL SELECTION-SCREEN dynnr
[STARTING AT col1 lin1
[ENDING AT col2 lin2]]
[USING SELECTION-SET variant].
regards
ravish
<b>plz dont forget to reward points if helpful</b>
‎2007 Jun 18 5:15 AM
Balaji,
Set the PF status , BACK button and and fuction code.
write code when sy-ucomm eq back. call screen 1000.
Ex :
PAI
module screen_call.
double click on this module ,and write the code.
Pls. reward if useful
‎2007 Jun 18 5:16 AM
Hi,
USE CALL SCREEN INSTEAD OF SET SCREEN WHILE CALLING THE SCREEN.
then for back button if u write SET SCREEN 0.it will goes to the selection screen.
rgds,
bharat.