Skip to Content

input history directory , how to retrieve with sap standard ?

I have always thought that the sapworkdir was the directory that was selected in the input history field under the options of the sap gui.

Now I am testing the new sap gui 7.30 and I have also read the note

Note 1442303 - SAP GUI 7.20 - replacement of SAPWORKDIR

but now I am confused what and how I can retrieve the directory that is set in input history in a sap standard way ?

none of the methods in cl_gui_frontend_services return this directory.

A few years ago I made a function that directly reads a registry key with the right directory. in sap gui 7.30 this is luckily still functioning.

but now I am curious if there is also a sap standard function that can retrieve the input history and also curious if I was always wrong in my assumption that the input history = sapworkdir ?

CALL METHOD cl_gui_frontend_services=>registry_get_value
EXPORTING
root = '1'
key = 'Software\SAP\SAPGUI Front\SAP Frontend Server\LocalData'
value = 'DataPath'
IMPORTING
reg_value = E_SAPWORKDIR
EXCEPTIONS
get_regvalue_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
others = 5
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

kind regards

arthur

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 23, 2012 at 08:50 AM

    Hello Arthur,

    In 7.10, the history was saved in the sapworkdir,but with 7.20 onwards, this had changed as per

    the note.

    In 64-bit Windows OS,the registry path for the history is

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP\SAPGUI Front\SAP Frontend Server\LocalData

    In a 32-bit OS, this would be

    HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAPGUI Front\SAP Frontend Server\LocalData

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 08, 2012 at 03:16 PM

    changed it to our own sapworkdir function.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.