2011 Jan 24 7:36 AM
hi experts,
i am showing a classical report after drilling down from an alv report. but when i am clicking the back button it is navigating to the selection screen instead of the ALV output screen.I have an customized pf-status 'sec'. i wrote At user command and it is not triggering the user command after clicking the back button . itried to change the function code in the Pf status for back as ZBACK and i also checked with AT pF6 for which i assigned the function code for Back button .At pf6 is also not triggering.can someone help me on this?.
with thanks and regards,
syed
Edited by: SYED_ibbu on Jan 24, 2011 9:27 AM
Edited by: SYED_ibbu on Jan 24, 2011 10:08 AM
hi experts,
i am showing a classical report after drilling down from an alv report. but when i am clicking the back button it is navigating to the selection screen instead of the ALV output screen.I have an customized pf-status 'sec'. i wrote At user command and it is not triggering the user command after clicking the back button . itried to change the function code in the Pf status for back as ZBACK and i also checked with AT pF6 for which i assigned the function code for Back button .At pf6 is also not triggering.can someone help me on this?.
with thanks and regards,
syed
Edited by: SYED_ibbu on Jan 24, 2011 9:27 AM
Edited by: SYED_ibbu on Jan 24, 2011 10:08 AM
2011 Jan 24 9:15 AM
hii,
please check the next screen of the respective screen.
e.g. for screen 100 put next screen as 101 and for 101 put next screen as 100.
hope it helps you.
regards,
akshay ruia.
2011 Jan 24 9:24 AM
hi akshya,
actually it is not a dialog program . I am first displaying the Alv report after double clicking a particular field it will go the classical report format .But when i click the back button the transfer is going directly to the selection screen where as it should go to the alv list output screen.
with thanks in advance,
syed
2011 Jan 24 9:44 AM
hii,
you can call the screen in the report program and insert the pbo and pai event in same report instead of include.
write call screen statement and use forward navigation, u would get the flow. i had the same scenario few days back have done the same thing. Was searching for the program where i have used it but could not find it. will post the code if i find the same.
regards,
akshay ruia.
2011 Jan 24 10:06 AM
Hi,
How you are calling the Classical Report ?
Are you using SUBMIT, if SUBMIT is used give the Return Parameter.
and give the call back program name as SY_REPID in the ALV when displaying your ALV.
If you are generating a list after the list is getting generated, use LEAVE to list processing inorder to get back to
the ALV Screen.
Thanks,
Vinayaka
2011 Jan 24 10:41 AM
hi vinay,
actually i am not calling any report as such. It is just an interactive report . i click one header like field and it displays the details .
when i click the back button it goes to the selection screen instead of the alv screen output.
with thanks in advance,
syed
Edited by: SYED_ibbu on Jan 24, 2011 12:25 PM
2011 Jan 24 12:42 PM
hi,
i am posting the code.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = t_layout
IT_FIELDCAT = GT_FIELDCATCH[]
IT_EVENTS = T_EVENT
TABLES
T_OUTTAB = PTAB."first output screen
"
form user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
CASE R_UCOMM.
data : fieldname(15),
tab type sy-tabiX.
WHEN '&IC1'.
CLEAR TAB.CLEAR FLD.
fLD = rs_selfield-fieldname.
TAb = rs_selfield-tabindex
PERFORM GETDATA.
PERFORM WRITE_DATA."values displayed in classical format
WHEN 'ZBACK'.
leave to screen 0."goes to the selection screen i want it to go the previous alv output screen.
and also the at line-selection is not working in the classical list.can anyone throw light on this.
with thanks in advance,
syed
Edited by: SYED_ibbu on Jan 24, 2011 3:15 PM
2011 Jan 24 6:42 PM
Did you try LEAVE SCREEN instead of LEAVE TO SCREEN 0?
For AT LINE-SELECTION, try the hotspot option.
2011 Jan 25 3:23 AM
hi ,
thanks for your reply.
Yes i did try with Leave screen ,leave list-processing and leave to screen 0.but it is not working.
also i have an hot spot option for the data displayed in classical list.But the at line selection is not GETTING TRIGGERED.
AT LINE-SELECTION.
GET CURSOR FIELD FLD VALUE VAL.
IF FLD = 'PTAB-CUSTCNT'.
SET PF-STATUS 'SEC'.
NEW-PAGE LINE-COUNT 65.
PERFORM GETDATA.
PERFORM WRITE_DATA.
ENDIF.
Has this something got to do with the Fact that the classical list is reached through an alv list and since the classical list is not being the primary output list.
thanks in advance,
syed
2011 Feb 05 2:22 PM
HI,
You have go to saptechnical.com.
In this site, Program code is available to your relevant task.
Highlighting the visited record on the basic list (ALV) on pressing BACK button in the secondary list using 'REUSE_ALV_LIST_DISPLAY'. (More details)
Click on more details. Then you get a program code.
when you see that program code you would get an idea on your requirment.
I hope, It will helps to you.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |