cancel
Showing results for 
Search instead for 
Did you mean: 

input history directory , how to retrieve with sap standard ?

former_member186143
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186143
Active Contributor
0 Kudos

changed it to our own sapworkdir function.

jude_bradley
Advisor
Advisor
0 Kudos

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

former_member186143
Active Contributor
0 Kudos

Thanks for the confirmation, but it is rather strange to see that sap doesn't provide any function to retrieve input history while it is quite an important directory if you want to write data

Former Member
0 Kudos

Hello,

The function you require is not included in the SAP standard system.

To find out how to influence SAP solutions on a short-term, medium-term,
and long-time basis, refer to the following page (an S user is
required): https://service.sap.com/influence. In addition, we recommend
that you get involved in an SAP user group or in an SAP community of
innovation. You will find a list of all SAP user groups at
http://www.sapusergroups.org.

You can see a description of the SAP communities of innovation at
http://www.sap.com/ecosystem/communities/index.epx.

Alternatively, you can request the development of special functions by
SAP Custom Development
(http://www.sap.com/services/portfolio/customdev/index.epx).

Thanks

Olakunle