Skip to Content
avatar image
Former Member

SAP working directory

Hello SAP experts,

I would like to know where we could find the sapworking directory. I tried going to the path provided by google and SAP (C:\Documents and Settings\<User ID>\SapWorkDir\) but no the path does not exist.

Please advise. Thanks!

regards,

Grace

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 30, 2013 at 02:59 AM

    Hi Algrace,

    For SAPGUI 720 and higher the full directory stucture is listed in this not as Jim stated.

    Refer to note Note 1442303 - SAP GUI 7.20 - replacement of SAPWORKDIR.

    Starting with SAP GUI for Windows 7.20 the local working directory SAPWORKDIR is obsolete and a new Windows compliant structure is used.

    . The configuration files of the SAP GUI will be located in the directory %APPDATA%\SAP\...

    SAP Logon configuration files (saplogon.ini, sapshcut.ini, SAPLogonTree.xml, saprules.xml)

    Windows XP:

    C:\Documents and Settings\<username>\Application Data\SAP\Common

    Windows Vista/7:

    C:\Users\<username>\AppData\Roaming\SAP\Common

    Input History database

    Windows XP:

    C:\Documents and Settings\<username>\Application Data\SAP\SAP GUI\History

    Windows Vista/7:

    C:\Users\<username>\AppData\Roaming\SAP\SAP GUI\History

                           Remark: the directory for the history database can also be set to another default with the variable SetSapGuiHistoryDir while creating installation packages using the "SAP Installation Server Administration Tool".

                           The corresponding registry key is

                           [HKEY_LOCAL_MACHINE\Software\SAP\SAP Shared]"SaphistoryDir" on 32bit operating systems and

    [HKEY_LOCAL_MACHINE\Software\Wow6432Node\SAP\SAP Shared]"SaphistoryDir" on 64bit operating systems

                           (Type: "Expandable String Value" NOT "String" !!!).

    New ABAP Editor Configuration

    Windows XP:

    C:\Documents and Settings\<username>\Application Data\SAP\SAP GUI\ABAP Editor

    Windows Vista/7:

    C:\Users\<username>\AppData\Roaming\SAP\SAP GUI\ABAP Editor

    SAP GUI Scripts:

    Windows XP:

    C:\Documents and Settings\<username>\Application Data\SAP\SAP GUI\Scripts

    Windows Vista/7:

    C:\Users\<username>\AppData\Roaming\SAP\SAP GUI\Scripts

    2. In the local Application Data directory (%localappdata%) temporary files, traces, cache, etc. are stored:

    Folder for temporary documents

    Windows XP:

    C:\Documents and Settings \<username>\Local Settings\Application Data\SAP\SAP GUI\tmp

    Windows Vista/7:

    C:\Users\<username>\AppData\Local\SAP\SAP GUI\tmp

    Important: Documents in the temporary directory will be deleted when SAP GUI is closed.

    Files downloaded by the user

    Windows XP:

    C:\Documents and Settings\<username>\My Documents\SAP

    With SAP GUI 7.30 the default has changed to:

    C:\Documents and Settings\<username>\My Documents\SAP\SAP GUI

    Windows Vista/7:

    C:\Users\<username>\Documents\SAP

     

    With SAP GUI 7.30 the default has changed to:

    C:\Users\<username>\Documents\SAP\SAP GUI

       

    Remark: the directory for the downloaded files can also be set to another default with the variable SETSAPWORKDIR while creating installation packages using the "SAP Installation Server Administration Tool".

    The corresponding registry key is

    [HKEY_LOCAL_MACHINE\Software\SAP\SAP Shared]"SapWorkDir"

    on 32bit operating systems and [HKEY_LOCAL_MACHINE\Software\Wow6432Node\SAP\SAP Shared]"SapWorkDir" on 64bit operating systems

    (Type: Expandable String Value).

     

    Important: This registry value was always set by the installation for the SAP GUI for Windows 7.10 and earlier. The installer for the SAP GUI for Windows 7.20 will set this value only if a value has been specified in the "SAP Installation Server Administration Tool". Therefore, it can no longer be assumed that this registry value will exist on a client PC.

    The folders for the temporary and user documents should therefore be determined using the corresponding methods in the class CL_GUI_FRONTEND_SERVICES. The temporary document folder can be obtained using the method GET_TEMP_DIRECTORY and the document directory can be retrieved by means of the method GET_SAPGUI_WORKDIR.

    Cache

    Windows XP:

    C:\Documents and Settings\<username>\Local Settings\Application Data\SAP\SAP GUI\Cache

    Windows Vista/7:

    C:\Users\<username>\AppData\Local\SAP\SAP GUI\Cache

    Comment: It would not make sense to have the cache in the roaming directory, because it is a local cache. Accessing the cache over the network would nullify the advantages that it would otherwise provide

    Traces

    Windows XP:

    C:\Documents and Settings\<username>\Local Settings\Application Data\SAP\SAP GUI\Traces

    Windows Vista/7:

    C:\Users\<username>\AppData\Local\SAP\SAP GUI\Traces


    What is your version of sapgui?

    Johan


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Algrace,

      Did you solved the problem ?

      In our company we have the same problem.

      Thank you for your reply.

      Best regards, Alex

  • May 30, 2013 at 02:16 AM

    Hello,

    If you are using SAPGUI720, please have a look at SAP Note 1442303.

    Thanks.

    Jim

    Add comment
    10|10000 characters needed characters exceeded

    • hi,

      The default directory is always in this format

      C:\Documents and Settings\T******\SapWorkDir

      where all your documents get downloaded and stored.

      But any time you can change the default location by using the tcode

      Tcode SO21 - Maintain PS work Specific directory

      Thanks

      Jansi