cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT - HOW TO DEBUG

Former Member
0 Kudos

hi all ,

I need to debug the layout as well as the print program simultaneously , In tcode se71 i have activated the activate debugger , only layout is debugged not the print program ,

how to debug the print program with layout.

thanks in advance.

ravi.s

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Ravi,

Go to program RSNAST00.Put a break point at the line no: 814 ie at statement tnapr-ronam = ronam.

Here you check you driver program ie pgnam.

Form name ie fonam & any routine ie ronam.

Then go to that program & put the break point where ever required.

Also when you activate the Dubugger in the script ,you will know what elements are getting triggered,so put the break point there in the above program which you got from RSNAST00.

Hope this works out for you.

Answers (11)

Answers (11)

Former Member
0 Kudos

HI Ravi,

Try to put a breakpoint in this function module 'ME_PRINT_PO'.

Or else you need to put every break point in the include program inside the print program 'SAPLMEDRUCK' to see which inlcude program it goes into and select data.

Thanks.

Former Member
0 Kudos

Hi Ravi,

you can try putting the breakpoint at the perform

statement from where the form gets called.Try put the brekpoints starting from the Include/perform and then the individual form-statement which you want to debug.Follow the proper hierarchy for putting the breakpoint instead of directly debugging the statement.

Hope i am clear.

Regards.

-Milind.

Former Member
0 Kudos

Hi,

Script:In SE71 give your form name and in Utilities-->Active debugger.

Then put a break point in your print prog where ever you want to stop it.

After that you need to go to your transaction like VF03/../..etc for Invoice you need to execute it by giving Outtype.

Then your print prog and form will debugg step by step.

Thanks.

If this helps you award points and close the thread.

Message was edited by: Deepak333 k

Former Member
0 Kudos

Hello!

Try setting the dispatch time of your output to "Send with periodically scheduled job" under "Further Data."

Then, process the output with RSNAST00 and you should hit your breakpoints.

Cheers,

John

Former Member
0 Kudos

vijay,

Every thing is configured correctly in tcode VK01, i am getting the o/p , I need slight corrections to be done ,so that i need to debug the layout with program .

Former Member
0 Kudos

sorry vijay ,

i didnt get you properly ,

but my zform is connected to SAPLMEDRUCK , which i got through through Edit text --> program symbols.

former_member188685
Active Contributor
0 Kudos

Check the TNAPR table, Did your Form is maintained in the table,, and corresponing Driver.

If you check the Text symbols then You can list of programs related to that script.

SOme Configuration need to be done

Because It is Standard Program

You need to maintain NAST table Entry also.

Check

regards

vijay

Message was edited by: Vijay Babu Dudla

Former Member
0 Kudos

hi vijay,

Mine is purchase order form,the layout is zform ,the print program is SAPLMEDRUCK , issue is that even if i set the break point in program it is not calling the program ,only the layout is debugged ,like i dont get any values for program symbols in the layout.

thanks

ravi.s

former_member188685
Active Contributor
0 Kudos

Hi

check whether Zform is connected to that Driver or not.

Simple way to find is Go to Check in the form,

there select texts then you can see Drivers attached to that.

regards

vijay

former_member188685
Active Contributor
0 Kudos

Hi Check Driver and Script form arre connected or Not.

Check TNAPR Table also, Because they will maintain Drivers connected layouts .

regards

vijay

please reward for helpful answers

Former Member
0 Kudos

Hi,

if you want to debug the Script then Activate Debugger or execute the Program RSTXDBUG.. so that Script will be going into debugging mode while you execute..

if you want to debug the Print Program also put the Break point where ever you want.. so that both will be debugged..

hope you understand

Thanks

Sudheer

Former Member
0 Kudos

Hi Vijay,

I have tried already what you said utilities->activate debugger, kindly tell me is there any other option to debug layout with print program.

former_member188685
Active Contributor
0 Kudos

Hi Set the Break point in Driver Program, and then Activate this will debug Script layout & driver as well

regards

vijay

former_member188685
Active Contributor
0 Kudos

Check it in Utilities in se71 screen

and normal report as usual you can keep break points.

former_member188685
Active Contributor
0 Kudos

Hi Acttivate The Debugger in SE71.

you have option to debug

in the initial screen.

regards

vijay