2009 Jun 02 5:47 AM
Hi,
in a report i am calling a module pool screen call screen 500. Now inside this there is a back button.I want to go to my report selection screen when pressing BACK.
There are report displays called when diff buttons are pressed inside this module pool screen.
i tried using set screen 0/ set screen 1000/ leave screen/leave screen 0(it goes back report display)...
When i used call selection screen 1000(i want to show user the same variant ) the variant is not there.
Help needed urgently.
2009 Jun 02 6:06 AM
Hello,
Try this piece of code.
CASE ok_code.
WHEN 'BACK'.
SUBMIT <'report name'>.
ENDCASE.
If variant is assigned then press F1 keeping the cursor in submit statement it has got some options for submit statement.
Hope this solves your issue.
Cheers,
Suvendu
Hi,
in a report i am calling a module pool screen call screen 500. Now inside this there is a back button.I want to go to my report selection screen when pressing BACK.
There are report displays called when diff buttons are pressed inside this module pool screen.
i tried using set screen 0/ set screen 1000/ leave screen/leave screen 0(it goes back report display)...
When i used call selection screen 1000(i want to show user the same variant ) the variant is not there.
Help needed urgently.
2009 Jun 02 5:56 AM
2009 Jun 02 6:08 AM
It is not module pool program..
start-of-selection.
call screen 500.
module m_user_command_500.
*{
case sy-ucomm.
when 'BACK'.
*" CODE REQD
when 'EXP'.
leave to list processing.
set pf-status 'JJS'.
write 'asbb'.
*}
at user-command.
case sy-ucomm.
when 'BACK2'
call screen 500.
endcase.
so from report back i will go to modulepool screen and from there if i press BACK i want to go to selection screen .
2009 Jun 02 6:02 AM
while calling screen, u have to specify return statement to return back to ur report.
like the below statement.
call screen '500' and return via selection screen
rgds
Kiran
2009 Jun 02 6:02 AM
Hi... try this
SET PF-STATUS 'ASDF'. " dbl click on ASDF and define it
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN XXX. " give ur required screen no. in place of XXX
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
ENDCASE.
2009 Jun 02 6:06 AM
Hello,
Try this piece of code.
CASE ok_code.
WHEN 'BACK'.
SUBMIT <'report name'>.
ENDCASE.
If variant is assigned then press F1 keeping the cursor in submit statement it has got some options for submit statement.
Hope this solves your issue.
Cheers,
Suvendu
2009 Jun 02 6:09 AM
2009 Jun 02 6:26 AM
hi
try this
while creating the PF-STATUS in the PBO of the screen
u will go to tcode : SE41 to create menu entries in that
on the application tool bar for BACK button assign the Function Code Type = E.
in PAI
Module <Modulename> at EXIT-COMMAND.
in se38
Module <Modulename> input.
case sy-ucomm.
when 'BACK'.
Leave screen <scrno>.
or
Leave Program.
endcase.
endmodule.
Regards
2009 Jun 02 7:08 AM
Hi try this,
CASE SY-UCOMM
WHEN 'BACK'. ' function of back button
CALL SCREEN 'XXXX'.
WHEN 'EXT'. "function for exit
LEAVE PROGRAM.
ENDCASE.Regards,
Nikhil.
2009 Jun 02 7:18 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |