Application Development 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: 

Debug print program

Former Member
0 Kudos

hi,

I am New to abap .i have done a print program for a Purchase order form.i debugged it then. Now after getting it configured for its relevant transaction code(me21/22n/23) how could i debug my print program through that transaction code to see wether it is working well or not. please let me know.

Edited by: Alvaro Tejada Galindo on Mar 19, 2008 6:16 PM

6 REPLIES 6

Former Member
0 Kudos

hmm set an extermal breakpoint

or use /h command before you call the transaction to enable debug mode

regards

Former Member
0 Kudos

Hi,

Add breakpoints in your program as usual and run the transaction. U can also use /h while running the transaction.

That will be fine.

Regards,

Ramya

Former Member
0 Kudos

Hi,

Just set a break point in the print program and THEN open the transaction.

Do not set the break point with the transaction open.

Once you execute the transaction, if your print program is called, it will stop at the set break point.

<REMOVED BY MODERATOR>

Regards

Edited by: Alvaro Tejada Galindo on Mar 19, 2008 6:16 PM

Former Member
0 Kudos

HI,

to debug a script use /h in the selection screen.

or set breakpoint in the print program where u want to debug.

eg: select the line where u want to debug and click on stop icon.

Regards,

vineela.

Former Member
0 Kudos

Hi cheenangshuk,

first u check on which client u r running the form...

as u know...it is client dependent...

now...which form r u using..

Sapscript or smartform ???

anyways ...i'll tell u for both..

SAPscript...

se71 -> type ur form name... -> Utilities -> Activate Debugger...

thats it...u can run it from any of transaction for PO..it'll debug...

Smartform...

2 methods...

1 > Write BREAK-POINT statement before the code where u want to see the result...

2 > Run the smartform...

it will generate one program...

display that program...

find the statement u want to debug...

and set the break point...

u can set break point at the start of program also...

thats all...

I hope his will help u...

Rewards points if useful

sachin

Former Member
0 Kudos

Hi Cheenangshuk das,

Step1: Go to se71

Step2: Type the Script name

Step3:On the menu bar:Utilities-->Activate debugger

Step4:Press on display button

Step 5:Execute the ME22n

Then the script will be in debugging mode

Press F5/F6/F7/F8 as your requirement.

Regards.

Eshwar.