We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

Re: [sap-dev] Specifying a Default Local Path (XP vs Sys 7)

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

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.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
pretty lady ask a question
 
Pierre_Richer  
Senior SAP System Analyst
achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Toolbox.com for iPhone & Android: Ask Questions & Get Answers Anywhere. Download the Free App

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language