‎2008 Aug 01 2:56 PM
Hi all,
I have a standard program RCATS_DISPLAY_ACTIVITIES (tcode CATS_DA) with selection screen and alv grid I just wanted to know all how the data comes into alv / where are the select statements how it works out.
What are the debuging techniques can i apply to do this ?
Thanks and regards
Jijo
‎2008 Aug 01 3:00 PM
Hi,
selection conditions are specified in Include CATS_SELECTION_SCREEN
the ALV is processed in MODULE d0500_init
‎2008 Aug 01 3:13 PM
Hi,
Copy the program name and open in SE38 in display mode, there u can keep breakpoints where ever u want, alternately u open the program in display mode and in command window type /H and click enter. The program goes into debugging mode.
Regards
Krishna
‎2008 Aug 01 3:24 PM
i have a feeling it's not so easy to just copy this program into a Zprogram - there are probably many includes, screens, statuses, etc...
the best thing to do is good old /h and step through the code.
also, you can open the SAP program in display mode and search for SELECT statements to see what that turns up - that may not work so well if the program is using FMs to select the data.
‎2008 Aug 01 3:23 PM
Jijo,
search in prg RCATS_DISPLAY_ACTIVITIES with term call method alv_grid->start_detail_display you will get your answer.
yes we can debug it by just /h.
and its not an simple ALV its based on oops concept.
Amit.
‎2008 Aug 01 3:35 PM
Jijo,
You may try to use debug option break-point at statement <select>
you can do this by setting the /h debug option initially and use option break-point at statement <select>
alternate option is use trace ST05 use SQL Trace, and refer to select statements where data is selected. set the break point into those programs and run transaction again.
I hope this will help.
Regards,
Maehsh
‎2008 Aug 01 8:11 PM
Hi,
Data is being selected from form start_of_selection.
form start_of_selection.
import times_tab from memory id co_saplcatsxt.
free memory id co_saplcatsxt.
if times_tab is not initial.
Call from CATSXT transaction -> no DB selection
stop.
endif.
create object gr_dbsel
exporting
im_calling_program = sy-repid
im_badi = gr_report->gr_badi.
call method gr_report->badi_start_of_selection.
if gr_dbsel->pnpce_selections_active( ) is initial.
stop.
endif.
endform.
<removed by moderator>
Thanks,
Kamesh
Edited by: Mike Pokraka on Aug 4, 2008 2:46 PM