‎2012 Feb 18 3:41 AM
Dear All,
I have developed a Block List ALV Report . In it I have made a Hyperlink on each column of cells. The Requirement for it is to view more details if any value is clicked. So I have called a Classical Output. Till here it is working fine.
Now when I click BACK Button then it is navigating to Selection Screen but it should go to Block List ALV.
I have tried all the methods like by creating PF Status and capturing SY-UCOMM for BACK button.
Please guide me.
Regards,
Bharti Jain
‎2012 Feb 18 4:10 AM
Hi,
I did similar kind of thing..difference being when user clicks then i called another alv..in that case on clicking back, it used to take me to first alv not selection screen..you can also do the same
Regards,
Harsh Bansal
‎2012 Feb 18 5:16 AM
Hi,
Try this code:
Case: sy-ucomm.
when 'BACK'.
Leave to screen 0.
when ''EXIT' .
Leave Program. "You are using this functionality currently.
endcase.
‎2012 Feb 20 5:43 AM
Hi,
In the user command for back try calling screen itself rather than leave screen or leave to screen 0 etc.
thanks and regards.
Aswath.
‎2012 Feb 20 5:43 AM
Hi,
To display alv output you will call screen assume it is screen no 100.
after displaying alv if you press it will go to classical report in another screen.
If you call .....leaave to screen 0 it will go to selection screen,
better you use leave to screen or leave to screen 100(previous) in pai (next screen i.e classsical report ,not in 100.
THANKS,,,,
‎2012 Feb 20 6:06 AM
Hi,
How do you call your CLASSICAL OUTPUT? If you used CALL TRANSACTION command,
better used it with SKIP FIRST SCREEN. See the sample below.
SET PARAMETER ID 'AUN' FIELD gt_vbak-vbeln.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.Let me know if this work with your requirements.
Thanks,
iostreamax
‎2012 Feb 20 6:33 AM
Use FM CALL FUNCTION 'TXW_TEXTNOTE_EDIT'
EXPORTING
edit_mode = ' '
TABLES
t_txwnote = It_note.
In User command of first list use the FM with extra text appanding into itab it_note.
‎2012 Feb 21 5:26 AM
in the report use
DATA OK_CODE TYPE SY-UCOMM.
when you design the screen in the screen element declare in elemnt list a term OK_CODE and activate it in the main program.
in the PAI write
CASE OK_CODE.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.