Application Development and Automation 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: 
Read only

Debuging standard program

Former Member
0 Likes
843

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

6 REPLIES 6
Read only

Former Member
0 Likes
771

Hi,

selection conditions are specified in Include CATS_SELECTION_SCREEN

the ALV is processed in MODULE d0500_init

Read only

former_member585060
Active Contributor
0 Likes
771

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

Read only

0 Likes
771

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.

Read only

Former Member
0 Likes
771

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.

Read only

Former Member
0 Likes
771

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

Read only

Former Member
0 Likes
771

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