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 question

Former Member
0 Likes
752

why the sequence in which event is triggered is not shown using f6 button while debugging.Top of page was not shown when the first write statment occured and end of page was not shown after the last record was fetched .but it worked fine with f5.but the result of final execution was same

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
723

F6 will process a statement. An event is not a statement.

Regards,

Clemens

7 REPLIES 7
Read only

Clemenss
Active Contributor
0 Likes
724

F6 will process a statement. An event is not a statement.

Regards,

Clemens

Read only

Former Member
0 Likes
723

when i debug this code by using f5 button the after getting the first write it goes to top of page and so on but when using f6 it doesnot go to top of page,loop continues till the record is present and then result is shown.but in the output the line which is written under top of page is also displayed.

Read only

Former Member
0 Likes
723

REPORT ztest_manicheck LINE-SIZE 200 LINE-COUNT 3(1) no standard PAGE HEADING .

types :begin of ty_disp,

  e_id type ztest_maninew-employee_id,

  e_name type ztest_maninew-employee_name,

  e_workno type ztest_maninew-e_work_no,

  end of ty_disp.

  data :w_disp type ty_disp,

        w1_disp like w_disp,

        it_disp type STANDARD TABLE OF ty_disp.

tables:ztest_maninew.

initialization.

parameters :empl_id type ztest_maninew-employee_id,

            emp_name type ztest_maninew-employee_name,

            phone_no type ztest_maninew-e_work_no.

START-OF-SELECTION.

  select employee_id employee_name e_work_no from ztest_maninew into table it_disp  .

        end-of-SELECTION.

               write 'top of page2'.

    START-OF-SELECTION.

           sort it_disp by e_workno.

               delete  ADJACENT DUPLICATES FROM it_disp COMPARING e_workno.

               loop at it_disp into w_disp.

              write 😕 w_disp .

    TOP-OF-page.

    write 'im at d top of page'.

   end-OF-page.

    write 'im at d bottom of page'.

Read only

Former Member
0 Likes
723

Hi

yes it will work fine when you press F5 when u go for F6 it will fetch for routines and also check whether size given to top of page and end of page

Read only

0 Likes
723

when i debug this code by using f5 button the after getting the first write it goes to top of page and so on but when using f6 it doesnot go to top of page,loop continues till the record is present and then result is shown.but in the output the line which is written under top of page is also displayed.

Read only

Former Member
0 Likes
723

Hope this will help you to understand clearly,

F5 - Execute single step.

F6 - Executes a perform,without going inside Form.. End Form .

F7 - Comes out of a perform.

F8 - Execute the report entirely or upto the next break point.

Read only

0 Likes
723

when i debug this code by using f5 button the after getting the first write it goes to top of page and so on but when using f6 it doesnot go to top of page,loop continues till the record is present and then result is shown.but in the output the line which is written under top of page is also displayed.