Skip to main content
Navigator | Tier 3
May 14, 2025
Solved

How to share SAP session between bots

  • May 14, 2025
  • 4 replies
  • 145 views

Hi,

 

I have a parent bot named “SAP Login” that connects to the SAP application. In the child bots, I want to use the same SAP session. I tried storing the session in a string type variable and using it in the child bot, but I’m getting the error: Session not found. Use an active session and try again. How can I pass the SAP session from the parent bot to the child bots?

This topic has been closed for replies.
Best answer by Padmakumar

Hi ​@Sakshi ,


Create the session in Master Bot and in the Child Bot, select Connection type as Automatic.

 

 

Hope this will help

4 replies

Rehan.S1
Navigator | Tier 3
Navigator | Tier 3
May 14, 2025

@Sakshi in child bot you can create a string variable and assign default value to variable and pass the same variable to SAP connect command it will help connect to SAP. No need to pass the session from parent to child bot.

🤝Let's connect on LinkedIn://www.linkedin.com/in/rehanshaikh0444/
Padmakumar
Premier Pathfinder | Tier 7
Premier Pathfinder | Tier 7
May 14, 2025

Hi ​@Sakshi ,


Create the session in Master Bot and in the Child Bot, select Connection type as Automatic.

 

 

Hope this will help

Padmakumar
Shreya.Kumar
Pathfinder Community Team
May 14, 2025

@Sakshi if any of these solutions helped, please feel free to mark them as best answer!

SakshiAuthor
Navigator | Tier 3
May 14, 2025

@Shreya.Kumar both answers are correct.

Thanks ​@Rehan.S1 and ​@Padmakumar