Skip to main content

I am trying to automate the SAP application, but after entering 10-15 records, the system gets stuck for about 5-10 seconds before resuming normal functionality. The issue is that the record entry becomes slower over time and continues to get progressively slower.

Do you have any solutions for this?

Thanks in advance!

Hi ​@madan2039 

Could you please provide a bit more information?

  • Q1: In which action does the bot freeze? Does it always happen in the same action?
  • If possible, could you share a snapshot of the code where the issue occurs?

This will help us diagnose the problem more effectively.

Thanks!

 


Hi ​@Sridhar Yadlapalli

The bot gets freeze at random SAP Action. Later it runs fine but, takes lots of time to complete each record.

Most of the code has SAP Actions and the SAP Application freezes at random action.

 


Hi ​@madan2039,

we use Oracle at Ricoh but this may help you.

I faced a similar problem with freezes especially in the Oracle “Installed Base”.

Somehow I figured out after implementing some actions from the “Wait” package my problems with random freezes are gone now.

 

To be more specific I had captures inside a try catch block.

But instead of going to the catch to do some re-try or other logic - it freezes.

 

Let me know if this worked for you… 😊

 

Cheers

Marc


Possible Causes & Solutions:

  1. SAP Performance Issues:

    • SAP might be experiencing temporary lag due to high system load.

    • Try running the bot during non-peak hours to see if performance improves.

  2. Bot Execution Speed & Delays:

    • Introduce small Keystroke delays (e.g., 50 to 100 milliseconds) between actions to allow SAP to process inputs properly.

    • Use Wait for Object or Wait for Window actions instead of fixed delays for better handling.

  3. Clearing SAP Memory:

    • Periodically clear memory by using Alt + F12 → Hard Refresh in SAP.

    • Restart SAP after processing a set number of records (e.g., every 10-15 records).

  4. Optimizing the Bot Script:

    • Check if redundant SAP actions are being performed unnecessarily.

    • Try minimizing excessive screen interactions.

  5. Checking System Resources:

    • Monitor RAM and CPU usage during bot execution.

    • If resource usage spikes, consider optimizing system performance or running the bot on a machine with higher specs.

Let me know if any of these helps.

Best Regards

 


Reply