Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Query giving dump on pressing back button in SQ01

Former Member
0 Kudos

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 !

10 REPLIES 10

former_member209217
Active Contributor
0 Kudos

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

0 Kudos

Thanks......Where do I need to declare the PF status .....can u please elaborate....

0 Kudos

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.

0 Kudos

Hi Chandan,

Are you clear or do you want me to post any sample code for the same?

0 Kudos

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

0 Kudos

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.   

0 Kudos

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

0 Kudos

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.

0 Kudos

Still not working.

I am getting dump.

Former Member
0 Kudos

solved