‎2008 Mar 17 7:52 AM
Hi experts,
Is it possible to run host command from SAP environment? How do you run?
Thanks,
Logu
‎2008 Mar 17 7:54 AM
Check transaction SM69.
http://help.sap.com/saphelp_nw2004s/helpdata/en/27/cbdf3b8dc95136e10000000a114084/content.htm
Reward Points if found helpfull..
‎2008 Mar 17 7:55 AM
Hi,
Check transaction SM69.
http://help.sap.com/saphelp_nw2004s/helpdata/en/27/cbdf3b8dc95136e10000000a114084/content.htm
Reward if helpful.
Regards,
Ramya
‎2008 Mar 17 8:14 AM
‎2008 Mar 17 8:16 AM
check whether this helps
DATA:os TYPE sxpgcolist-opsystem.
DATA:host TYPE rfcdisplay-rfchost.
DATA:commandname TYPE sxpgcolist-name.
DATA:exec_protocol LIKE STANDARD TABLE OF btcxpm.
os = sy-opsys.
host = sy-host.
commandname = 'ZDOWNLOAD'. "SAP Command Name
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = commandname
operatingsystem = os
targetsystem = host
stdout = 'X'
stderr = 'X'
terminationwait = 'X'
TABLES
exec_protocol = exec_protocol[].
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.