‎2006 Aug 23 11:14 AM
Hi,
anyone can help to to create command to be executed by SXPG_COMMAND_EXECUTE.
I need to create a directory (MKDIR command)
Thanks
Salvatore
‎2006 Aug 23 11:20 AM
‎2006 Aug 23 11:20 AM
‎2006 Aug 23 11:29 AM
Thanks but also that program is based on 'Y_REMOVE' command...
I need to know how to create it...
Salvatore
‎2006 Aug 23 12:01 PM
you can define the command for each operating system using transactions SM69 (You can test it with SM49) and then call it using SXPG_COMMAND_EXECUTE
‎2006 Aug 23 11:45 AM
Hi ,
You need to creat a UNIX command in tcode SM49.
Command like calling a Shell script as shown below
/usr/sap/trans/bin/zprinter_utilities/zprinter_display_queue.ksh
Once you have created a command you can use the FM and trigger the unix command from ABAP.
Cheers
VJ
If it helps dont forget to mark points.
‎2006 Aug 23 11:59 AM
Hello Salvatore
I can give you an example for a command (transaction SM49) which execute an ftp.
- Command name = 'Z_FTP'
- OS command = cmd /C ftp
- Parameters = -i -n -s:?
What does this command? It reads a script from the application server and execute the ftp commands written in this script. The script template could look like this:
*open <FTPHOST>
*user <FTPUSR> <FTPPWD>
*cd <FTPHDIR>
*binary
*lcd <OSDIR>
*get <FILENAME>
*delete <FILENAME> <del>
*byeHope I could help you with this.
Regards
Uwe
PS: The ftp parameters are based on a Windows OS system.
‎2006 Aug 23 12:22 PM
Go to SM69 transaction.
Choose from menu. Edit->Create.
Give a name for your command and give the actual unix command and the parameters to be passed.
This would help you better.
http://help.sap.com/saphelp_erp2005/helpdata/en/c4/3a8023505211d189550000e829fbbd/frameset.htm
Regards,
Ravi