Skip to Content

calling shell scripts from SAP GUI level

Hi There, We are planning to run Linux shell script from SAP GUI. Initial input for the shell script is <sid>adm user with password. we are able to run the shell script from OS level successfully however unable to run the same script from t.codes SM69/SM49 and tried using report RSBDCOS0, FM SXPG_COMMAND_EXECUTE as it is not accepting the <sid>adm user.

Please let me know if there is any way to run this type of scripts from SAP.

Thanks,

BMR.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Feb 15, 2019 at 07:38 AM

    Hello,

    if a shell script is called from inside the sap via SM49, it is always executed as <sid>adm user. So there is no need to pass this data to the script.
    Or do you have any other reason for this?

    Regards,
    Michael

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 15, 2019 at 05:22 PM

    Hi Michael, Thanks for the reply. I'm planning to run scripts on remote systems hence trying to login with <sid>adm user in the first step.

    Thanks,

    BMR

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 26, 2019 at 08:35 AM

    Hello,

    if the problem still exists, perhaps you can post the script and the SM49 parameters here?

    Regards,

    Michael

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.