‎2006 Sep 10 5:36 PM
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
‎2006 Sep 10 5:44 PM
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).
‎2006 Sep 10 5:53 PM
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
‎2006 Sep 10 11:14 PM
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.
‎2006 Sep 11 7:45 AM