Skip to main content
Solved

Script Recording from SAP GUI will not run in Automation Anywhere

  • November 29, 2023
  • 5 replies
  • 727 views

Forum|alt.badge.img+1

I am currently working on automating a process in which the bot is expected to perform a transaction in PW1, navigate to a specific location, select a file, and then load it into SAP BW. To achieve this, I initially executed a transaction labeled "RSA1" in PW1 and recorded the actions taken during this process.

My intention is to replicate the same actions in SAP from within Automation Anywhere (AA) using the VBScript Open and Run action. Although I receive a message indicating that the bot ran successfully, I've noticed that there is no actual execution of the recorded actions as scripted in the VBScript.

As a newcomer to the world of RPA, I'm seeking assistance in completing this task and resolving the issue I'm encountering with the automation process. Your guidance and expertise in this matter would be greatly appreciated.

 

Best answer by Oluwaseyi

Hello community,

Thanks to everyone’s suggestions on my question. 

I couldn’t get AA to run the script recording from SAP. I use all the methods advised in the chat trail to no avail.

However, I was able to get the task completed using a combination of SAP Actions, Recorder Capture Actions, and Simulation keystrokes. 

 

View original
Did this topic help answer your question?

5 replies

Abhay Naik
Forum|alt.badge.img+7
  • Navigator | Tier 3
  • 98 replies
  • November 29, 2023

Hi @Oluwaseyi ,

You do not need SAP connect action if you are using VBscript. Use the record actions to do the initial steps and reach to the screens from where the VBscript should work. Also make sure the VB Script commands used properly and you are making use of functions to execute them.


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 2 replies
  • November 29, 2023

Hi Abhay,

Thanks for your response. 

I have updated the bot process as advised above.
 

However, the outcome is still the same. It returns that the bot ran successfully, but I don’t see the actions expected as recorded in the script. Am I needing to make some modifications in the script for it to run in AA? I attempted both importing the file and manual input.


Padmakumar
Forum|alt.badge.img+13
  • Navigator | Tier 3
  • 785 replies
  • November 30, 2023
Oluwaseyi wrote:

Hi Abhay,

Thanks for your response. 

I have updated the bot process as advised above.
 

However, the outcome is still the same. It returns that the bot ran successfully, but I don’t see the actions expected as recorded in the script. Am I needing to make some modifications in the script for it to run in AA? I attempted both importing the file and manual input.

 

Have you enabled Scripting at SAP client end?


Abhay Naik
Forum|alt.badge.img+7
  • Navigator | Tier 3
  • 98 replies
  • November 30, 2023

Hi @Oluwaseyi ,

 

May be try this out.

Put your script in a function. for example below script is used to perform click.

 

Then call the function in run function command

 

If your script is self sufficient then you do not need to call Run Function. Only Open and Close commands will do.

 

Hopefully this will help


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 2 replies
  • Answer
  • December 7, 2023

Hello community,

Thanks to everyone’s suggestions on my question. 

I couldn’t get AA to run the script recording from SAP. I use all the methods advised in the chat trail to no avail.

However, I was able to get the task completed using a combination of SAP Actions, Recorder Capture Actions, and Simulation keystrokes. 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings