‎2020 Oct 30 7:22 PM
I can connect to weigh bridge through command prompt
Syntaxt: TELNET <ip address> <port number>
But I have to connect weigh bridge through SAP batch command using SAP.
My question is what to write in batch file to connect weigh bridge.
How to create command using SM49 or SM69?
How to call that batch file using command in ABAP program?
‎2020 Oct 30 7:22 PM
Thank you for visiting SAP Community to get answers to your questions. Since you're new in asking questions here, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members.
Should you wish, you can revise your question now by selecting Actions, then Edit.
Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS . By personalizing your profile with a photo of you, you encourage readers to respond.
Best regards
Jennifer
SAP Community moderator
‎2020 Nov 01 7:12 AM
Hi abhipadwal4u,
There is a powerful tool - report RSBDCOS0. It basically provides terminal windows to the OS. Multiple OS commands can be entered into the report in a similar way it would be done in real OS terminal.
All commands executed from the report are logged into files on OS level by C command: C_WRITE_SYSLOG_ENTRY.
If you want to run some OS commands on automated basis then there is an option to create custom ABAP report. Such a report will run these OS commands via FM SXPG_COMMAND_EXECUTE.
In case you have an issue to run OS commands in the RSBDCOS0. E.g. the report returns nothing just error code = 1. As very basic check is it is advisable to look whether an environment variable "ComSpec" is set. In case of WIN OS it should be set to value: ComSpec=C:\WINDOWS\system32\cmd.exe
This is a powerful tool, and it is not something to play with. Every user who uses it must be very well aware of what it actually doing.
Should this help to address your topic, please kindly accept the answer.
Cheers,
Luis 🙂