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

debug PO print program

Former Member
0 Likes
3,607

Hi friends.

I am trying to debug PO print program, even after putting an endless loop.. it's not going to debug mode. Please help

Thanks

Lakhbir

9 REPLIES 9
Read only

Former Member
0 Likes
2,127

Hi Lakhbir,

My suggestion is try to debug the SAP-layout form first(activate debugger),then find the elements which are getting triggered,then put a break-point in the print program at that write_form of the element & see.

Read only

0 Likes
2,127

I would suggest putting a break point in the print program, then go to ME23N and click the print preview button, this will make the printing fire in dialog. The debugger should show up.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
2,127

Do you have "debug authorization" in your system?

Read only

Former Member
0 Likes
2,127

Lakhbir,

I am not sure putting an endless loop will help you in debugging. Why don't you put a hard BREAK-POINT in the program?

Regards,

Ravi

Read only

0 Likes
2,127

Lakhbir,

There are several ways to keep breakpoints.

1. Get the Layout name. Go in SE71, give layout/form name and enter in display mode. Use menu path Form Check --> Texts. It will display all associated driver programs. If you know your driver program name, place a breakpoint from SE38. Usually there should be a FORM ENTRY routine call.

2. Go to program RSNAST00 -search for

PERFORM (TNAPR-RONAM) IN PROGRAM (TNAPR-PGNAM) USING RETURNCODE

US_SCREEN

IF FOUND.

PGNAM is program name, RONAM is Name of routine to be called up in the processing program.

Keep a break point. When you print from ME23N, control will come to this place in debugging mode.

Check form name, program name. Go to program and associated form and keep breakpoint.

Hope this will help you.

Read only

Former Member
0 Likes
2,127

Hi friends .

I had tried all the options before posting the message.we are using Sap standard program SAPFM06P...the problem is i am not getting certain pricing conditions printed.. even they have Print indicator marked "X".

really don't know why?

Read only

0 Likes
2,127

Lakhbir,

Did you look at the conditions on which the Pricing conditions get printed?

regards,

Ravi

Read only

0 Likes
2,127

Hi Lakhbir,

First check whether the driver program attached is the SAP standard SAPFM06P or copied into a z program.

Go to NACE transaction & see this.

Read only

0 Likes
2,127

chk the print configuration in transaction NACE> EF>Output types>Processing routines> c the print program..if it is SAPFM06P, then goto function group MEDRUCK ( in SE80 )--> put a breakpoint in any of the function modules and try out..

Hope it helps,

Regards,

Bikash