‎2006 Aug 17 4:54 PM
Hi, all,
Is there any body can tell me how I can test my abap program for just some of lines? For example, the program has total 3000 lines. But I only want to test portion from line 100 to line 500. How I can do that?
Thanks!
Marea
‎2006 Aug 17 4:58 PM
hi,
Keep break point at 100 line and execute the program. It can be set by placing cursor on the required line and press STOP button (red color button) on application toolbar. The control comes and stops at 100 line. Press F5 to execute line by line.
Regards,
Sailaja.
‎2006 Aug 17 4:56 PM
hi Yang,
Put a break point at that section of code and give the test data which makes it to take you to that point and there by you can test it...
For example
DATA:
wa_selopt LIKE jobname,
t_selopt LIKE TABLE OF jobname WITH DEFAULT KEY.
LOOP AT jobname INTO wa_selopt.
APPEND wa_selopt TO t_selopt.
ENDLOOP.
PERFORM prepare_selection_32 TABLES t_selopt selection_jobname.if i wnat to stop at Loop statement then i will put a break point here and execute the code with a valid date that fetches me to that place...
Regards,
santosh
Message was edited by: Santosh Kumar P
‎2006 Aug 17 4:58 PM
hi,
Keep break point at 100 line and execute the program. It can be set by placing cursor on the required line and press STOP button (red color button) on application toolbar. The control comes and stops at 100 line. Press F5 to execute line by line.
Regards,
Sailaja.
‎2006 Aug 17 5:00 PM
Hi,
in the debug mode,
as you know the line numbers form where you want to test give the line number in the space right side, there is a space with up and down arrow matks, and click enter
it will take you to that line and test from there
Regards,
Sowjanya
‎2006 Aug 17 5:01 PM
Hi Marea Yang,
Why and what exactly u want to test the abap program?
However if u want the functionality for part of program u can test it with debugging on.U can download Internal tables data and check it.
Also If its a report program writing to the output screen then u can test the output with debugging on u get an option in the tool bar which directs to screen output specfying what was written till that part of program.
Thanks and Regards,
Swaroop Patri.
‎2006 Aug 17 5:02 PM
Hi Marea,
To add to the above posts, If you keep a break point at line 100 and 500, you cannot avoid the lines 1-100 from being executed.
By default the execution will start from line 1.
Regards,
Ravi
‎2006 Aug 17 6:11 PM