cancel
Showing results for 
Search instead for 
Did you mean: 

Open SAPGUI from Personas

Former Member
0 Kudos

Hi all,

I have a transaction which has SAP network graphics (The Gantt Chart in CJ2A) within which is not supported by Personas, so I want to know if there is a way to call a standard SAPGUI transaction from a Personas flavour?

Thanks,

Neil

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

what about calling sapshcut.exe or sapgui.exe with transaction parameter from javascript.

Not sure but can you add Calculate in JS with below code for a button:

var shell = new ActiveXObject("WScript.shell");

shell.run("sapshcut.exe -system=SID -client=XXX -user=youRUser -pw=yourPassword  command=SE11", 1, "True");

Since its ActiveXObject which is IE specific, it will work only in IE.

Chrome might work, if you launch chrome by

"chrome.exe" --allow-all-activex

Because of ActiveXObject, there will be many IFs and BUTs. Will check if there are better solution. May be someone has better idea....

Regards,

Sushant

Former Member
0 Kudos

Thanks Sushant...

I couldn't get that piece of code to work, it errors ... but I like the idea.

Not being a Javascript programmer I'm not sure how to debug or check the code.

Former Member
0 Kudos

ok, in case anyone cares we've written a small ABAP to wrap around the transaction and call it within NWBC (our 'browser') using the method URL_CONSTRUCT in class CL_NWBC.

Then I can simply launch this transaction from Personas and it opens a SAPGUI tab in NWBC... so I have a solution.

However if anyone knows a way to do this in JavaScript I'm all ears.

Answers (0)