Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from Pierre_Richer on Jun 8 at 1:15 PM Hi Neal, Take a look at class cl_gui_frontend_services. Methods: GET_DESKTOP_DIRECTORY GET_SAPGUI_DIRECTORY GET_SAPGUI_WORKDIR GET_SYSTEM_DIRECTORY and so on.... Pierre.
| | | ---------------Original Message--------------- From: R. N. Wilhite Sent: Friday, June 08, 2012 12:06 PM Subject: Specifying a Default Local Path (XP vs Sys 7) In the past, other programmers have hard coded C:\TEMP as the default destination for local file paths. Our network people are now taking away authorization to everything C:\.. So all of these paths have to be changed. The only legal path left is in the user directory. %HOMEPATH% gives you that directory, but XP and Sys7 have a different structure there after. For XP, I can use %HOMEPATH%\SAPWorkDir but for Sys7, I'd need %HOMEPATH%\My Documents\SAP. How am I going to make that determination programmatically? I know that if you don't specify a path, SAP will automatically pick the "Work Dir", but this is disturbing to the users. They don't feel like they know where the file is going. I suppose it would be best to programmatically evaluate %HOMEPATH% as well (turn it into a normal path string), but I don't know how to do that either. I guess another option would be to programmatically read the path of "work dir". Any suggestions (including a complete change in direction)? Neal | | Reply to this email to post your response. __.____._ | _.____.__ |