‎2005 May 27 10:23 AM
Hello all,
I try to execute the UNIX command 'LS' via SXPG_COMMAND_EXECUTE and I use the parameter ADDITIONAL_PARAMETERS for the path: /usr/sap/import/
The function translates the path into upper case and therefor the LS command is not able to list the content of the directory.
Has anybody a solution for this problem.
Thany your for your help.
Markus
‎2005 May 27 10:51 AM
Hi,
use that variable:
DATA PARA LIKE SXPGCOLIST-PARAMETERS.
e.g.:
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
COMMANDNAME = 'ZLS'
ADDITIONAL_PARAMETERS = PARA
...
regards Andreas
‎2005 May 27 10:40 AM
Hello Markus,
Are you executing the function in SE37? If so, there is a tick at the top of the screen that says "Upper/lower case". Make sure you set it on.
If you are running this in an ABAP report, and you are entering the path via a parameter on the screen, make sure you use the additin LOWER CASE.
Hope this helps,
Martin
‎2005 May 27 10:57 AM
‎2005 May 27 10:51 AM
Hi,
use that variable:
DATA PARA LIKE SXPGCOLIST-PARAMETERS.
e.g.:
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
COMMANDNAME = 'ZLS'
ADDITIONAL_PARAMETERS = PARA
...
regards Andreas