cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug print program SAPFM06P

hubert_heitzer
Contributor
0 Kudos

Hi all,

we use print program SAPFM06P to create purchase order documents (Application = EF, Output-Type = NEU, Program = SAPFM06P, FORM routine = ENTRY_NEU, SAPScript Form = ZMEDRUCK2_FAX)

I need to debug this program, but processing does not stop at breakpoint in SAPFM06P FORM routine ENTRY_NEU (which is customized in transaction NACE), when I create an purchase order via transaction ME21N.

I use the new debugger and i have selected options "Update Debugging" and "System Debugging" in debugger settings.

Also I cannot debug the form, when I "Activate Debugger" in utilities menu of SE71.

Breakpoint in programm RSNAST00 form PROGRAMM_AUFRUFEN (line 1318)


  perform (tnapr-ronam) in program (tnapr-pgnam) using ...

was also not successful

Any suggestions, how to debug the print program and form?

Kind regards,

Hubert

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

You did everythin correct, and it definiteley SHOULD work.

Are you sure output type NEU gets assigned when creating your new PO via ME21n?

BTW why creating new ones all the time?

you can view your changes while using old documents using TA me22n/me23n.

hubert_heitzer
Contributor
0 Kudos

Hi Florian,

thx, when use print preview insread of saving the PO, the breakpoint is reached.

Regards, Hubert

Former Member
0 Kudos

Ah, so we got your problem.

Your output type has something called "Versandzeitpunkt". in your case this is probably customized as 3 or even lower.

If it would be 4 it would mean to process the output type when saving.

Like it seems saving is not enough in your case to process it.

Ratherfish
Explorer
0 Kudos

Hubert:

Were you able to find a way to debug your code? I'm having the same issue.

I can debug fine in print preview mode but when I create a PO and save my break points don't get hit. I've used /h prior to hitting the save button then adding break points via PF9 but I still can't get the execution to stop.

former_member197445
Contributor
0 Kudos

I posted a new discussion on this same topic.  But just in case, has anyone here figured out how to debug this program?  I can't set a breakpoint and I can't /h it either.

Answers (1)

Answers (1)

former_member196079
Active Contributor
0 Kudos

Hi hubert

try this

before to start printing use the /h code for enter in debug..

at this point when debug is started,go at breakpoints->breakpoints at-> program

regards

Marco