cancel
Showing results for 
Search instead for 
Did you mean: 

Changing "Directory for Documents" parameter in SAP Gui 7.20

fredrik_borlie
Contributor
0 Kudos

Hi.

In our Solution Manager we have an issue when changing documents using KWB. (transaction RMAUTH)

The issue started after SP27 (SAP_BASIS 7.01 SP08) where note 1051119 was applied.

Now the SAPWORKDIR is retrieved from the SAP GUI and we get an error since our home directories are located on the network so the URL looks like
server\share\folder.

I know this is what is giving us the error, cause when altering the value to "C:\Documents and Settings\<user>\Application data\SAP" result is a successful save.

I would like to know where I can change the "Directory for Documents" parameter found in SAP Gui Options -> Local Data -> File Lifetime.

http://i53.tinypic.com/20t55b8.png

SAP Gui is 7.20 sp 8.

I have searched in many places and I cannot understand how this parameter is populated.

Oh. and by the way. The function module retreiving the parameter is IW_C_GET_SAPWORKDIR.

Thanks in advance:

/fredrik

Accepted Solutions (1)

Accepted Solutions (1)

jude_bradley
Advisor
Advisor
0 Kudos

Hello Frederick,

The upload/download path can be changed following the note below:

1442303 SAP GUI 7.20 - replacement of SAPWORKDIR

The file lifetime you refer to is only for tracefile expiration.

Kind Regards,

Jude

fredrik_borlie
Contributor
0 Kudos

Jude. Thanks for your input.

However the solution in your response has been modified by note 1501119.

"As of SAP GUI 7.20, the variable "SAPWORKDIR" in the registry path "HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAP Shared" is also obsolete."

This note also applies a new ( and correct) way of getting SAPWORKDIR. However our "My Documents" folder are stored on the network anv we getn UNC-urls
instead of C:\-urls.

4 out of 5 files gets up/dowloaded fine, but one (and the most important) file ends with error.

Answers (2)

Answers (2)

Ambarish
Participant
0 Kudos

Hello Fredrik,

I know this is very old thread, still curious to know if there is any fix provided by SAP?

Thanks,

Ambarish

fredrik_borlie
Contributor
0 Kudos

Hello Ambarish.

Issue was caused by a new way of retrieving the SAPWORKDIR.

Check note:

http://service.sap.com/sap/support/notes/1683066

/fredrik

Ambarish
Participant
0 Kudos

Hello Fredrik,

This is useful. Thanks a lot!!!

Regards,

Ambarish

fredrik_borlie
Contributor
0 Kudos

I have digged down on the topic.

The Directory for Documents folder is populated from the My Documents.

In our case it is controlled using the Personal-registry value at:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\personal

This is where the My Documents for us gets directed to a network folder.

The issue is that the folder is a UNC-name and starts with

We have raised a message to SAP and they have confirmed that they also can reproduce our error.

There will be a fix soon we hope!