‎2010 Oct 20 2:26 PM
Hi all,
i have problem with executing SXPG_COMMAND_EXECUTE
In SM69 we defined an external command 'Z_MKDIR':
Operating system command: c:\sap\create_dir.bat
Parameters for operating system command: &
the script create_dir does following:
@ECHO OFF
mkdir %1
also RFCs are working correctly.
But when we execute
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
COMMANDNAME = 'Z_MKDIR'
ADDITIONAL_PARAMETERS = 'C:\test
OPERATINGSYSTEM = 'Windows NT'
DESTINATION = u_gwdesx
STDOUT = 'X'
STDERR = 'X'
TERMINATIONWAIT = 'X'
IMPORTING
EXITCODE = lf_exitcode
TABLES
EXEC_PROTOCOL = lt_protocol
For some reason folder is not create. Within the table lt_protocol:
31 |Invalid trace level as argument
39 |The syntax of the command is incorrect.
Someone knows what could be the problem?
Many thanks.
‎2010 Oct 20 5:14 PM
‎2010 Oct 20 5:14 PM
‎2010 Oct 20 6:16 PM
‎2010 Oct 20 6:44 PM
Hello Karol,
Is the BAT file placed on a Windows NT app server? Or is it some presentation server folder?
I'm sure you must be knowing SXPG_COMMAND_EXECUTE can be used to execute commands on app server & not on presentation server!
BR,
Suhas
‎2010 Nov 05 12:47 PM
Hi,
ive just checked one the host and additonal parameter is empty.
Do you know why the additional parameter is not attached to the command?
Regards,
Karol