2010 Jul 08 9:12 AM
Dear All,
I am trying to execute a file having path as " C:\Document and Settings\Sapworkdir ".
The problem is SAP does not recognize the space. I tried using "C:\Docume~1\Sapworkdir" and it worked.
but what if the path is different and has space eg
C:\Docume~1\varun j\Sapworkdir
please help.
Regards,
Varun
Dear All,
I am trying to execute a file having path as " C:\Document and Settings\Sapworkdir ".
The problem is SAP does not recognize the space. I tried using "C:\Docume~1\Sapworkdir" and it worked.
but what if the path is different and has space eg
C:\Docume~1\varun j\Sapworkdir
please help.
Regards,
Varun
2010 Jul 08 9:21 AM
Hi,
Can you please give more details about your problem.
What is the code or FM used to get the file path? Where you are exactly getting the problem?
Can you please post the part of your code for verification.
Thanks and Regards,
Senthil Kumar Anantham
2010 Jul 08 9:22 AM
>
> I am trying to execute a file having path as " C:\Document and Settings\Sapworkdir ".
> The problem is SAP does not recognize the space.
Hi Varun,
You observation is incorrect. I checked with any random method of the CL_GUI_FRONTEND_SERVICES & it shows the correct results.
BR,
Suhas
PS: I think your filepath is not correct. Should be "C:\Documents and Settings\Sapworkdir". You missed the "s"
2010 Jul 08 10:38 AM
Dear Suhas,
i am using the method
CL_GUI_FRONTEND_SERVICES=>GET_SAPGUI_WORKDIR(
CHANGING
SAPWORKDIR = W_SAPWORKDIR
EXCEPTIONS
GET_SAPWORKDIR_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 4
OTHERS = 5
).
now what this does is that it returns the file path of sapwork directory.
now using this file path i am creating a batch file for printing in MS-DOS.
when i execute it using a function CL_GUI_FRONTEND_SERVICES=>EXECUTE
here it checks the path and finds the space in my path, so it is not executing.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |