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

Debugging problem

Former Member
0 Likes
3,451

hi,
while debugging a standard report i encoutered a problem
In initilization Event
there is get parameter ID. doing F5 on it take me inside loop at screen
after loop finishes debugger comes out of report.
it does not go inside Start of selection event that is exactly after get parameter statement
since i have to debug a perform that is called in Start of selection event

how can i go to that perform.
i tried setting up breakpoint at perform, it does not go there

14 REPLIES 14
Read only

PeterJonker
Active Contributor
0 Likes
2,805

Initialization event is called before the selection screen comes up. Therefore correct not to go to start-of-selection (unless you do not have a selection screen, in that case please supply us with the code)

Read only

Former Member
0 Likes
2,805

Hi Rishabh,

Once you start the debugger for the first time, give breakpoint at START-OF-SELECTION. If you don't have any input fields, then start of selection should get triggered automatically. If you have input parameters, after providing input execute, then it goes to start of selection, and then end of selection.

Read only

Former Member
0 Likes
2,805

Hi Rishabh,

     Can you provide the standard program name that you are trying to debug? It is possible that the perform you are trying to debug is called in a condition check (if else block) and the condition is not getting satisfied when you execute the program.

    

Hope this helps,

~Athreya

Read only

0 Likes
2,805

hi,

i am using SAP FS-CD,
T-code FPB7
report-RFKKKA01
need to get to perform BANK_STATEMENT_PROCESS
altough there are check inside start of selection but while debugging pointer does not come to Check statement it directly goes out after GET PARAMETER statement.

Read only

0 Likes
2,805

Open code create break point at perform BANK_STATEMENT_PROCESS.

execute program give selection screen entries execute break point will stop at perform then debug ur code

Read only

0 Likes
2,805

I don't have TC FPB7 but I do have program RFKKKA01.

However in this program in my system there is no initialization event. There is also no statement get parameter id in this program.

Furthermore this program has a selection screen and therefore the initialization event (where you say the get parameter id is called) is called before the selection screen comes up and therefore (with the version in my system) the behevior of your program is correct. Sorry that I can't be of any more help.

Can you post the code in the initialization event ?

Read only

0 Likes
2,805

Hi Rishabh,

The step by step procedure to set breakpoint and reach the perform BANK_STATEMENT_PROCESS is,

1)

2)

3)

4)

Thanks,

Ankit.

Read only

0 Likes
2,805

Hi ankit,

thanks for the screenshots.

i tried setting breakpoint following your steps but doing F8
breakpoint didnt reach and report was executed fully.
report RFKKKA01, where i want to debug is called by submit statement in perform SUBMIT_JOB.

report RFKKKA01,starts with:

3 include

initilization
get parameter id ''.

start-of-selection.

check ''
perform BANK_STATEMENT_PROCESS

(this perform contains code to update table entries).

so while debugging i reached Submit statement inside perform SUBMIT_JOB, and then debugger goes to above report and then to get parameter after it goes to some loop at screen.

after loop some function job_submit and then to main Perform SUBMIT_JOB.

database table are updated. couldnt reachd to perform BANK_STATEMENT_PROCESS

thanks in advance.

Read only

0 Likes
2,805

your code has a statement

check ''

What does it check. Is that condition fullfilled, because if not, program stops and that would be exactly the behavior you are describing. That is the nature of the CHECK statement

Read only

0 Likes
2,805

hi peter,
yes condition gets fullfilled
but atleast debugger pointer should got to that check statement and then check the condition.
but it didnt go.

thanks

Read only

0 Likes
2,805

Hi Rishabh,

Please post the data and screenshots. I assume since you are not entering proper data on screen it is unable to break at the breakpoint.

Thanks,

Ankit Maskara.

Read only

0 Likes
2,805

Please provide the code in intialization event, get parameter-id.

Basicaly all code that is called directly before perform BANK_STATEMENT_PROCESS from a moment where you still saw the debugger pass it (get parameter id ? initialization ?)

I won't be able to help you w/o this code, because my version of this program does not have initialization, get parameter-id .

Read only

Former Member
0 Likes
2,805

Hi Rishabh,

Events occurance order:

Initialization.

at selection-screen output

at selection-screen

start-of-selection.

end-of-selection.

top-of-page.

end-of-page.

so from initialization it will go to at selection screen in your case. Initialization triggers

before screen is displayed.give some screen input and start debugging.

Read only

himanshu_gupta13
Product and Topic Expert
Product and Topic Expert
0 Likes
2,805

Hi Rishab,

Initialization event only calls when we start the report i.e. while executing the tcode it goes in initialization event first.

And to go in debugging after start-of-selection first input and then again start debugger using /h and then you will get into start of selection.

If you still facing problem then place the static breakpoint here after start-of-selection and then on debugger and execute.

Note : your program contains the check statement, kindly please clarify this statement and if it define clearly according to it if the condition fullfiled by check then it will go further other wise it terminates further execution due to false return by check..

It will be more better for me if you place here code clearly to resolve this.

Many Thanks / Himanshu Gupta