05-16-2013 11:09 AM
Hi Friends,
I Got a problem while creating block alv report...
The problem is as stated below..
In my report i have 3 blocks out of which one block is interactive which is the first block in my case,
when i click on the result of 1st block it is going to the 2nd list successfully.
after that when i press back button it is showing blank screen named SAP on top,
IF AGAIN I PRESS THE BACK BUTTON THEN IT COMES DIRECTLY TO SELECTION SCREEN.
Another thing "THE FIRST LIST IS BLOCK ALV AFTER LINE SELECTION IT CALLS THE SECOND LIST WHICH IS CLASSIC REPORT"
THE PROBLEM IS :
It is not returning to the previous list(i.e First List) from 2nd list when i press the back button...
please help me to come out of this situation..
05-17-2013 7:41 AM
By
Using At User Command
PF status and
using loop at screen it was finally solved.
05-16-2013 12:56 PM
Hi,
Try changing Standard PF status with customized one.And write code for handling Events as we do in module pool program.
05-16-2013 1:22 PM
Hi Nitin,
Set your own PF status, enable the back button, and handle this using AT USER-COMMAND event. In this handler subtract the variable sy-lsind by 1, so that it moves to previous screen.
Example:
This code will be in AT USER-COMMAND.
IF sy-lsind > 0.
SUBTRACT sy-lsind BY 1.
ENDIF.
05-16-2013 4:25 PM
Hi Nitin,
Add up an event of User Command in your FM for displaying second list.
in that,
Form User_command.
case sy-ucomm.
when '&F03'.
LEAVE SCREEN. "
End case.
End Form.
am not 100 % sure..I hope this will give u some idea...
Regards,
Azhar
05-17-2013 7:12 AM
05-17-2013 7:41 AM
By
Using At User Command
PF status and
using loop at screen it was finally solved.