cancel
Showing results for 
Search instead for 
Did you mean: 

Saprfcshell – RFC (SNC) OS shell/terminal

07-24-2026 7:40 PM
JosefM Discoverer
362 views 2 comments Go to solution
SAP Managed Tags
Labels
Expert InsightsGenAI Assisted Content
Subscribe

Greetings, SAP community—and especially the Basis folks!

Imagine having an OS shell that connects to an SAP NetWeaver ABAP-based system using RFC (SNC) instead of SSH, allowing you to run OS commands just like you are used to in PuTTY. This means you don't need direct OS access (such as in SAP RISE environments), yet you can still execute OS commands directly from a terminal-like interface.

In restricted environments, the primary remaining way to run OS commands in an SAP NetWeaver ABAP-based system is by using external commands defined via SM49/SM69. However, I think we can all agree that this interface is not very user-friendly.

To solve this, I created a Linux-like shell that connects via RFC (SNC) and executes those predefined SM49/SM69 commands in a way that makes it feel just like working with a "real" shell or terminal from the user's perspective.

I vibe-coded this small program recently because the classic report RSBDCOS0 was disabled "3754901 - RSBDCOS0 run from SA38/SE38 does nothing (no output, no error)", leaving SM49/SM69 as the only option left for a customer I work with.

You can use it, you can fork it, you can review the code using your own AI or manually, take the idea and vibe-code your own shell, or just forget about it right now 😊.

Here is the GitHub link to the public repository: GitHub - Josef-Macinka/saprfcshell: Call external commands (SM49) using FM SXPG_COMMAND_EXECUTE in S...

Saprfcshell was vibe-coded using OpenAI Codex. The code was reviewed and corrected from a security perspective by Google Gemini.

JosefM_0-1784913879506.png

 

Accepted Solutions (1)

Accepted Solutions (1)

JosefM
Discoverer
0 Likes

Thank you, Sandra, for your comment. I was able to submit the blog post—it's waiting for review now.

Answers (0)