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

Custom Code not Executing

Former Member
0 Likes
633

We implemented SAP 3/1/2010 and have had 3 separate custom programs that have behaved in this same manner. Here is what happens.

1. User runs tcode per usual business process

2. Custom program results are not created. In other words, it appears that the custom program does not execute because the results of the custom program are not created.

3. Rerun same tcode with debug stopper

a) If the user puts a "debug stopper" in the custom program

b) the custom code is executed

c) custom code functions as expected and results are displayed properly

4. remove the stopper

5. Execute tcode and it works properly

So, the custom program is active and is executed (when stopper is there) and functions as expected. However, it does not ALWAYS execute the code (or so it seems from the results that are displayed)

Another work around that we have discovered.

1. User executes tcode and discovers the custom program did not produce expected results

2. User logs off of SAP

3. Logs back on and executes tcode

4. custom program expected results are displayed.

As I said at the beginning, we have experienced this with 3 different custom programs now. I have worked with our Basis team and have not found a solution as to why the custom programs are not executing "all the time".

PLEASE help!

2 REPLIES 2
Read only

Former Member
0 Likes
483

Hi,

When you say custom program, is it a module pool or a report program? Can you give more details on that?

And can you give a brief overview of what the program is trying to do?

Is there any security objects in the program?

I assume you are referring to here is the production environment and hence there is no possibility of an inactive version existing. Correct me if this assumption is wrong.

Finally, have you tried running this in other env like dev, test and is it working fine there.

Thanks

Mani

Read only

0 Likes
483

Here are the answers to your questions. Thanks for the quick response.

Custom program = It is code that is executed in a user exit, or is a stand alone program

The 3 different programs are all doing various things. 1) Passing parameters to vertex 2) very complex as it adds pricing conditions and updates forwarding agent partner 3) Stand alone program updates field in BSEG

No security objects are involved in any of the 3 programs.

Yes, this is in the production environment.

No, I have not tried in any other environment because we can not find a situation where the problem always occurs. In other words, I can not duplicate the problem "EVERY TIME" however, when a user encounters the problem it occurs all the time until they do one of our "work arounds" which is to log off SAP or to put a "degug stop" in the program.