04-22-2010 2:21 PM
Hi Gurus,
I have created a Query and executing it through SQ01. The query is getting executed successfully and displaying output correctly, but when I am returning back from output screen by pressing the back button, it is throwing dump.
I have used ALV for displaying output.
I noticed that when I am removing the ALV part from the code, the same query is not throwing dump.
Anyways, I have to use ALV and the issue is that I am getting dump while pressing back button on the output display screen.
Please suggest !
04-22-2010 2:31 PM
Hi Chandan,
Have u defined a form routine for PF status .I feel you should define one and pass the subroutine name to the Function module (Parameter I_CALLBACK_PF_STATUS) used for displaying ALV.
You can check the documentation given for this parameter in GRID or LIST FM whichever you are using .You will get a clear idea.
Regards,
Lakshman
Edited by: Lakshman N on Apr 22, 2010 3:35 PM
04-22-2010 2:38 PM
Thanks......Where do I need to declare the PF status .....can u please elaborate....
04-22-2010 2:41 PM
Hi,
Please check the documentation for the above mentioned import parameter present at the right.You should write on form routine.Inside that define your PF Status using SET PF-STATUS statement. Pass this form name to the import parameter
Regards,
lakshman.
04-22-2010 2:53 PM
Hi Chandan,
Are you clear or do you want me to post any sample code for the same?
04-22-2010 2:54 PM
I am not using any PERFORM in my program, I read the documentation but could not locate the exact place where we should write this PF STATUS.
Please suggest
04-22-2010 2:59 PM
Hi Chandan,
No need to use PERFORM statement in your program .Passing the form name to the import parameter takes care of everything
Just a sample code here Please check.
Function to display ALV List using the final output Int table
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_callback_pf_status_set = 'ZSTATUS'
i_callback_user_command = gv_usr_cmd
is_layout = gs_layout
it_fieldcat = gt_fieldcat
tables
t_outtab = i_outtab
exceptions
program_error = 1
others = 2.
if sy-subrc 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " alv_report_display_list
*&---------------------------------------------------------------------*
*& Form zstatus
*&---------------------------------------------------------------------*
* Set PF
*----------------------------------------------------------------------*
form zstatus using extab type slis_t_extab. "#EC CALLED "--------->This form name should be passed to FM
set pf-status 'ZSTATUS'.
refresh extab[].
endform.
04-22-2010 3:48 PM
what should i pass for gv_usrcommand ?
I am using a QUERY not a report program.
Edited by: chandan sinha on Apr 22, 2010 4:52 PM
04-23-2010 5:32 AM
Hi,
No need of passing user command.Its optional. If you want to handle events like double click on the ALV Screen then you should use user command.
Regards,
lakshman.
04-23-2010 7:04 AM
05-18-2010 11:20 AM