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 in alv

Former Member
0 Likes
918

hai all

im working with alv, ihave some doubts

1) how to debug the form where we had written coding for events(like top_of_page, usercommand),

i could not able to see the whether the event is triggering in the program or not. the problem is events or not working in my program, though the coding is correct.

2)coming to subtotals, im able put subtotal & totals text in my program , they are displaying at the end of first field, what i want is i want it to display at other than first field of the report.

3)how to get sub total for more than one field in a report.

plz answer me, reward compulsury.

thanks in advance.

sindu

4 REPLIES 4
Read only

Former Member
0 Likes
646

Put a break point in the form of the event and execute your program it would stop at the form and you can start debugin the program.

Regarding subtotal on multiple fields, you need populate the sort table with respective fields with subtot = 'X' for the fields and pass the sort internal table to the IT_SORT ( exporting parameter of REUSE_ALV_GRID_DISPLAY).

Read only

0 Likes
646

hai sid

thanks for response

idid it by puting break at the form it is not stoping at the form, teh program is geting excuted.i did with top_of_page event.

coming to sub totals sory the question is not puting multiple subtotals but puting multiple total & sub total texts.

thanks in advance.

sindu

Read only

Former Member
0 Likes
646

Hello Sindu,

For your 1st question: To debug your user commands, put a break point for the modules in your programme where you write your code.

MODULE pai INPUT.

save_ok = ok_code.

clear ok_code.

CASE save_ok.

WHEN 'EXIT'.

PERFORM exit_program.

For the Events: For example if you have exit button. If you click on it, the debugger should start.

Run your screen or ALVgrid. On the Transaction bar enter: /h -> and click on enter.

Now click on the exit button. It invokes the debugger.

Hope it is helpful.

Regards

Madhavi.

Read only

Former Member
0 Likes
646

Have you registered the events?