cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable pop-up debug on Java ?

Former Member
0 Kudos

Hi everybody,

I would really appreciate if someone solves my problem.

I've being trying to switch debug mode on while there is a pop-up.

Normally this could be done by typing /h but with pop-up conversation the typing area is disable.

I ve searched for some strings but none of them has worked.

The following string is that i m entering to the "advance" tab at the configuration window.

conn=/H/192.xxx.xxx.xx/S/3200&clnt=300&lang=TR&tran=*EA40

Please note that;

Windows users can do this easily by using this text :

[FUNCTION]

Command=/H

Title=Debugger

Type=SystemCommand

How can i do this on my SAP Gui for Java 7.40 ?

Accepted Solutions (1)

Accepted Solutions (1)

RMW
Product and Topic Expert
Product and Topic Expert

Hello,

assuming that your backend allows scripting, you can send the /h command by starting a script.

Open the script window, type


session.sendCommand("/h");

and run it.

For your convenicence, store the script in the scripts folder (the save dialog should open in that folder automatically, see Preferences, Scripting), and on Mac you will have the script available in the "Scripts" menu also for modal screens.

Best regards

Rolf-Martin

Former Member
0 Kudos

Hi Rolf-Martin,

Thanks a lot for your concern.

I tired your solution this is what i got;

--------------------- SENT ---------------------

session.sendCommand("/h");

------------------- RECEIVED -------------------

javax.script.ScriptException: TypeError: Scripting this object is not allowed by the server has no such function "sendCommand" in <eval> at line number 1

Is this about the whole SAP system or about my GUI ?

How can i pass over that ?

Regars,

RMW
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Well, I was writing "assuming that your backend allows scripting"

this error indicates, that the backend has not enabled scripting.

On page, please refer to Security Considerations

Chapter 3:

"By default SAP GUI Scripting is disabled on any given SAP system. The administrator has to enable the support by setting the profile parameter sapgui/user_scripting to “TRUE” on the application server."


Best regards

Rolf-Martin

Former Member
0 Kudos

Hi,

That worked thank you so much.

For people who can have this problem in the future i want to share a point which i was missing.

All configurations are applied the next time you log into the server.

Answers (0)