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: 

Production Debugging Issue

former_member207873
Participant
0 Kudos

Hi Experts,

     I am facing one error situation in production system for an adobe form. This issue we are not able to replicate in development or quality system. Wrong information is displayed for a particular data in adobe forms. The program codes written in this adobe forms runs as a background task. So how can I debug this particular piece of code in production system. In development system I gave an infinite loop in the code and through SM50 i debugged the program. But how to debug in production system ?

BR.

13 REPLIES 13

ipravir
Active Contributor
0 Kudos

Hi,

1. Do you have Debug Authorization in PRD Client.

2. if yes, try to fetch the Dynamic Function Module name, with respect to Adobe Forms

     or execute the Adobe Forms manually, you will get the trigger function module name.

3. Goto SE37, and search the code, which has been written in Adobe. (Search with [in main program])

4. Put the Break-point and execute the Program. While executing system will stop the process on break-point.

Regards

Praveer.

0 Kudos

But the code in the interface code  is run background. So i assume it would never go into the debugging mode.

BR.

ipravir
Active Contributor
0 Kudos

Hi,

Through JDBG T-Code you can debug a back-ground job.

You can start a selected Job Debugging, once you have started the Debugging, you can search your respective bunch of code and you can analysis the same.

Regards.

Praveer.

GeorgeShlyakhov
Participant
0 Kudos

Hi,

try to use a temporary statement like this instead of an endless loop:


WAIT UP TO 10 SECONDS.

So, you will have 10 (or more) seconds to debug your code through SM50. And business process will not suffer.

Best regards,

George Shlyahov

0 Kudos

So you mean i have to write this code and send it to production ? Any other ways to debug this in production ?

BR.

0 Kudos

Hi,

Which code? Is you Program and Adobe Form is already in PRD Client or not?

If is it in PRD then below Steps to Follow to debug in Background Process.

1. Execute your program in PRD Client,

2. Go to SM37 T-Code and through the JDBG you can debug the same.

3. Based on that you can analysis the current program and Adobe Form logic and code,


4. Then your can change the same in your DEV Client and make your logic as per your requirement.

And then send your changes to PRD.

Regards.

Praveer.

0 Kudos

Hi Praveen,

     I tried your solution. But nothing is getting showed in SM37. This adobe form is actually called from a webdynpro based application. (SAP PLM) Not getting any idea on how to debug. I tried putting external debugger point also. But no luck.

BR.

0 Kudos

Hi Sam,

Is the WebDynpro Program is Standard Program?

Regards.

Praveer.

0 Kudos

Hi Praveen,

This is regarding PLM labels. The program which runs the adobe forms is a custom program.

BR.

0 Kudos

Hi Sam,

Ok, If you know the Adobe Forms Name, go to the SFP T-Code and give the same.

And then Execute through execute button, you will get the Respective Function Module Name.

Copy the Function Module and go to SE37.

Open the Function Module and Search your Code space through SEARCH IN ALL.

after that put a breakpoint in particular line of code, break point should be

"SET/DELETE EXTERNAL BREAKPOINT "

After that execute your web dynpro application and check.

Regards.

Praveer.

0 Kudos

Hi,

I tried that also..by giving program name in se38 by adding F01 & L in the program name. Still no luck.

BR.

0 Kudos

Hi Sam,

Basically, this the way we use to debug the Smartforms and Adobe Forms.

and if we are trying to debug the Web Dynrpo related object, then we use EXTERNAL BREAKPOINT.

You can go for one more way.

Go to ST05 T-code. and trace the Function Module information, which are triggering while executing the respective web dynpro application.

and try to debug the any one of the function module.

If you are able to debug, then you have to search the respect function module or class, which contains the Adobe Forms Information.

or If you are not able to debug any of the code through the EXTERNAL BREAKPOINT.

then check the SU53 (Authorization) T-code, whether you have sufficient authorization to debug the objects or not.

Regards.

Praveer.


sagar_pawar14
Explorer
0 Kudos

Hi,

First you should have FF(Fire Fighter) ID in order to debug some thing in Production environment.

For background debug, while you are saving the job start debugging and start update debugging ON from debugging option.

Once job is saved, automatically update debugging will start and then now you can keep your break points(using debug break point option(Breakpoints --> Break point at--> XXX)) and execution will stop at the desired(interface) point. 

Hope this helps.