Quantcast
Channel: SCN : All Content - SAP GUI
Viewing all 3616 articles
Browse latest View live

Data caching in Personas scripts

$
0
0

Personas scripting has actions for copying data from SAPgui screens and pasting it back elsewhere. This is very commonly used to copy data between screens, or even between transactions. That basic technique is described here - SAP Screen Personas - How to fetch data from another screen. Once the script has finished executing, though, the values copied disappear. It isn't possible for another script to reference those values - each script execution starts in a completely clean environment. One work around for this is to paste values into hidden fields on a screen, from where other scripts can copy them again. This works well for small numbers of values. What if you have a lot of values, or if you don't know how many there will be until you run the transaction? In such cases this technique becomes unwieldy, or even impossible.

 

This second case, not knowing how many values there are, is exactly the situation I encountered when trying to build a custom table on the SAP home screen. Personas doesn't have a native custom table object and so I had to build a fake table out of unrelated text field objects and then manage the scrolling myself. The data from the table came from a simple report and obviously I didn't know until I ran the report how many rows it would return. Consequently it just wasn't possible to hold the whole table contents in hidden fields on my home screen. That meant that each time I scrolled the table I had to re-run the report and copy out the relevant rows. The details of this process are described here - Creating a custom table in Personas.

 

Personas scripts have  a limited number of standard actions but you can use Javascript within a Personas script to do many things that these standard actions do not provide. The scrolling for my custom table was implemented largely in Javascript. Within a piece of Javascript inside a Personas script, you can reference variables created by Copy Value or Copy Table actions. For example, once I've run my report, I use Copy Table to grab the data from the report into an object called "po_list" and then within Javascript I can reference this table, now a Javascript array, as "args.po_list":

 

Screen Shot 2014-03-03 at 13.13.54.png

 

Now this "args" object is exactly the object that's cleaned out at the end of a script execution, and so even in Javascript you can't reference values copied by another script. Notice, though, that as well as referencing values via this args object I also reference standard Javascript objects - rows and cols in the above example. I do this mostly to save typing - if the values aren't needed for pasting into screen field later they don't need to live inside the args object and I can save 5 keystrokes for each object reference. Programmers are lazy! But that got me thinking - are those values cleared out at the end of a script execution like the values in the args object? It turns out they are not. That means that from within a Javascript action I can save values that will persist and be visible to Javascript actions in other scripts no matter when those scripts are executed. The only thing that seems to delete such values is a browser refresh. Could I use this technique to build a cache behind my table? Then I'd need to run the report just once and subsequent scrolling will be done via the cache without the need to re-run the report.

 

In version 1 of the custom table, I had Javascript code like this after the Copy Table action:

rows = args.po_list[0].length;
args.rows = rows;
first = parseInt(args.first);
if(rows-first > 1) {    args.ponum1 = args.po_list[0][first+1];    args.vendor1 = args.po_list[1][first+1];    args.date1 = args.po_list[3][first+1];    args.relcode1 = args.po_list[4][first+1];
}
if(rows-first > 2) {    args.ponum2 = args.po_list[0][first+2];    args.vendor2 = args.po_list[1][first+2];    args.date2 = args.po_list[3][first+2];    args.relcode2 = args.po_list[4][first+2];
}
...

 

What I can do instead is copy that "args.po_list" table to a "po_list" table so it doesn't go away, like this:

cols = args.po_list.length;
rows = args.po_list[0].length;
po_list = new Array();

for(i =0; i < cols; i++) {     po_list[i] = new Array();     for(j = 0; j < rows; j++) {          po_list[i][j] = args.po_list[i][j];     }
}

 

This takes the "args.po_list" object created by the Copy Table and does a deep copy of it to an object called "po_list". A deep copy is needed because in Javascript a 2-dimensional array is actually a one dimensional array of one dimensional arrays. A simple shallow copy would leave us still with references to the args object, and they would disappear when the script execution finished. Then I can access the table like this (just losing the "args." references):

rows = po_list[0].length;
args.rows = rows-1;
first = parseInt(args.skip);

if(rows-first > 1) {    args.ponum1 = po_list[0][first+1];    args.vendor1 = po_list[1][first+1];    args.date1 = po_list[3][first+1];    args.relcode1 = po_list[4][first+1];
}
if(rows-first > 2) {    args.ponum2 = po_list[0][first+2];    args.vendor2 = po_list[1][first+2];    args.date2 = po_list[3][first+2];    args.relcode2 = po_list[4][first+2];
}
...

 

Finally I need to only run the report and copy the data if my "po_list" cached copy is empty.

 

Screen Shot 2014-03-03 at 13.43.04.png

Screen Shot 2014-03-03 at 13.43.47.png

 

Step 2 decides if the cache is empty or not, based on the number of entries in the array, and steps 3-9 run the report and cache the data only if necessary. Step 8 here is the deep copy process I described above.

 

You can use this technique to save data for reuse within a flavor as I do here. You can also use it to save data where it can be referenced by scripts in other flavors on other transactions. I'm sure there's a lot of potential here that waiting for somebody with suitable imagination to discover. If you have any suggestions, please do add them in the comments below!

 

It is really interesting to see how much you can achieve by combining Javascript with standard Personas scripting actions. Much more than I realised when I started my Personas journey.

 

Disclaimer

This is not an officially supported technique. I discovered it by accident and I can't promise it will continue to work. I'd be surprised if future patches for Personas v1 broke it but when the next major version comes along there's no telling what will happen to this technique. It may well not work. If you invest a lot of effort in building flavors that use this feature, you do so at your own risk!


SAP Screen Personas - Flavors is Empty

$
0
0

Hello,

 

After the SAP Screen Personas installation, the flavors have empty values in ADMIN_UI - transaction.

 

Do you know / please guide us on how to populate the flavors and assign to users?

 

Thank you,

Srinikesh

SAP Business Explorer 7.0 availability

$
0
0

Hello Expert,

 

We've migrated BW 3.5 query in BW 7.3 SAP System. Dataflow migration was successful but Query Designer 7.3 product version not compatible with BW 3.5 Query. Have found from SAP  SCN  thread  that firstly we need to install BEX tool 7.0 & Validate/run all queries in 7.0.After that all these works fine in BEX 7.3.

 

While checking BW 3.5 query in  BI Business explorer query designer 7.10 getting the following error message.

Please check the attached file ABAP dump -ST22  for the more details.

 

Status Messages:

Terminate:Unexpected Error:RFC_Error_SYSTEM_FAILURE-Exception Condition "X_MEssage" raised.

Terminate: Query Designer must be restarted:further work not possible


We've tried to install SAPGui version 710,720,730 but unable to find the BI Business Explorer 7.0 version in these SAPGui version & getting the same error message from All these BEx  versions(710,720,730)



Can anyone guide us  in which SAPGui version we'll find the BI Business explorer query designer  7.0 version


Thanks

Sanjeev

Personas - Can we restrict Text box or Label field length?

$
0
0

Hi,

 

Is there a way to restrict the field length of the custom Text Boxes or Labels on Personas.

 

We found 'Maxlength' as one of the properties of any custom Text box and Label, but it is greyed out to be able to edit.

 

Text length.PNG

 

Could anyone please help on this?

 

Regards,

Geetha

Getting Number of Terminals Installed From GUI Installation Server

$
0
0

Hi,

 

I'm deploying SAPGUI 7.30 to user through Installation Server.

 

May I know is it possible to get the total number of terminals that have been installed with SAPGUI 7.30 from the installation server?

 

Thank you.

 

 


Abap editor crashes SAP GUI

$
0
0

Hi All,


 

when the settings are set to enable the new abap editor se38  all the SAP GUI sesssions are terminated.

Se when I go to tcode SE80 and the settings are set to the new abap edior, all the SAP sessions are terminated.

 

Please help me on this.

Error opening Mandate Attachment

$
0
0

Hello,

 

We implemented SEPA Mandates in our SAP system.

We stored the signed SEPA mandates as PDF file and attached it to the customer.

 

When I am trying to view the PDF file, I am getting an error.

 

Attachment 1.JPG

Not all users get this error, so I guess it is related to the location where SAP is temporarely trying to save the attachment.

SAP wants to save the file in C:\WINDOWS\SYSTEM32

 

I get the SAP GUI security window, in which I have to grant access to the location.

 

I did find out that with transaction SO21 I can change the work directory, that is actually stated to C:\WINDOWS\SYSTEM32

I changed the value, but after that, SAP still is trying to save the file in de WINDOWS directory.

I think that if another location is being used, the error will be solved.

How can I change the file location where attachments are saved to open it?

Is cache memory here an issue?

 

Thanks in advance.

Drop Down List for the previously used details are not dispalying

$
0
0

Hi All,

 

     Its little crazy for me the drop down list i.e the previously used values or inputs given by us in all the T-Code for eg SU01, PFCG etc when we type a space or input the first character, the already entered values should be listing.  But in one of the system alone its not working. And that too for the particular SAP system. Rest of the SAP system are working fine in the same system.

 

Attaching the scree shots of it. Is it something related to the GUI settings ? But one thing we should note that its working fine in the same system for other systems.

 

Warm Regards,

Sudhakar G


"Supported" checkbox within Personas Flavor Maintenance screen.

$
0
0

Hi,

 

Can anyone advise what is the purpose of the of the "Supported" checkbox within Personas Flavor Maintenance screen (admin_ui) ?

 

Thanks

Ben

 


Personas - Labels being cleared after most recent Note implementation

$
0
0

This thread was started in reference to comments located here:

http://scn.sap.com/community/gui/blog/2013/07/10/personas-scripting

 

It is happening with all buttons on all screens now.  However, upon further investigation, it is only clearing out labels.  Textboxes remain unchanged.

 

If a button runs a transaction behind the scenes without leaving the cockpit, when it is finished executing, all output labels are reset to empty.

 

In the following video, there is a label that is hiding fields in that large blank area.  When I click the GO button, nothing happens because GO checks for errors before any transactions are run.

 

But when I click the Search Button, the xk03 transaction is run in the background.  When the script completes, data is returned to the three output labels within the Vendor Lookup group box, but all other labels are cleared, including the label hiding all the fields.

 

Again I click GO and nothing changes because no transaction is executed.

 

When I click Run Report - the ZPROP report is run and errors are returned to the home screen, and again, all other labels are cleared, but the textboxes are unchanged.

SAP Logon Pad Restrictions

$
0
0

We have SAP Lgon Pad 720 installed. At my company they have locked the ability for a user to change the theme and to add/modify/delete a new SAP system connection or shortcut. I work in the SAP security space but for the life of me I can't figure out the security implications of granting users this authorization. Can someone please explain what vulnerabilities there are with giving users this ability? I think it would be a useful feature to have.

 

How are these options restricted within the gui?

 

Thank you for your time.

 

Mark

SAP Gui Scripting through a macro causing user profile issues

$
0
0

Hello experts

 

I am creating a simple tool in Excel using the script recorded through SAP GUI scripting. Using excel macro allows me to parameterize the values and i am able to fetch data from various tables and move into different sheets.

 

the issue here is the excel macro tool i have build works on my computer fine, where as it is run on other system, the screen becomes grey and not the standard sap blue profile and colour quality.

 

Can anyone advice what is missing or should there been a standard profile user be used to create the sap gui script?

 

Any quick advice would be appreciated.

 

Have attached the screenshot for the same for comparison.

 

Regards

Shravan N

How to change hotkey settings of SAP GUI for Windows

$
0
0

Hello experts,

 

I want to change hotkey display settings of SAP GUI 720 for windows.

GUI patch level is 11.

 

I think, in some cases SAP GUI icons have several hotkeys(short cut keys) things like "save" icon in tr-cd:SCC4.(Its hotkeys are F11 or Ctrl+S.)

Now, when I place my cursor on the "save" icon in SCC4 screen,  "Ctrl+S" is displayed as its hotkey.

However, I want to set "F11" to be displayed.

 

I looked for sap notes, but couldn't find one about this setting.

 

If someone knows about this, please tell me how to set hotkey display.

 

Best Regards,

Yamane

SAP-Logo ersetzen

$
0
0

Hallo Community,

 

ich hoffe ich bin mit meiner Frage hier an der richtigen Stelle und ich hoffe auch, falls bereits diese Frage gestellt und beantwortet wurde, dass ihr mich dahin weiterleiten könntet oder die Frage, eben wenn sie so noch nicht gestellt worden ist, beantworten könntet.

 

Im Anhand habe ich das Bild hochgeladen und der Pfeil verweist auch schon auf das zu ersetzende Logo. Ich würde gern an dieser Stelle das Logo komplett weghaben wollen oder eben ein Custom-Logo dahin plazieren.

Die Frage hierfür: geht das überhaupt, weil sich hinter dem Logo eine Funktion verbirgt ? Oder ist das von SAP fest einbetoniert

Und sollte das tatsächlich möglich sein, wie könnte ich das am besten ausführen ?

Falls die 2. Frage mit einem ja zu beantworten ist, könnte jemand der auf diesem Gebiet Erfahrung hat das detailliert beschreiben ?

 

Ich glaube ich habe da Google schon ausgeschöpft und auf Anfragen bekomme ich allerdings nur Programme an den Kopf geschmießen, die ich nicht kenne und auch damit dementsprechend nicht umgehen kann.

SAP Screen Personas

Ajax Theme Studio

UI Developement Kit

SAP Business Objects Design Studio

 

Wenn jemand weiß ob das mit einem der o.g. Programme funktioniert, dann wäre ich für einen Tipp, welches davon das richtige ist, sehr dankbar.

 

Vielen Dank für Eure Mühe

 

Viele Grüße

Andreas H.

Personas and extended workflow notifications

$
0
0


Hi Personas users.

 

We have gone live with our first Personas business process which is effectively a service desk ticketing system based on PM notifications and equipment records. My users are very happy with the solution but as expected they want more!

 

I have been asked to setup workflows for the notifications, this is no problem as I can simply use the OOTB notification workflows, however the requirement I have is to employ extended workflow notifications, i.e. send the workflow notifications to Outlook.

 

After setting this up and messing about with the host URL settings in the extended workflow setup (SWNADMIN) we have managed to get URL link in the email to launch the Personas app within NWBC... however it doesn't find the flavour for the transaction it finds the basic view.

 

Does anyone else have this setup and managed to get it to work ... if so how?

 

Many thanks,

Neil

 

 


Accessing VA01 tcode directly from Persona URL

$
0
0

Hi,

 

We have integrated Personas in Portal using bsp iview with persona url http(s)://host:port/bc/bsp/persos/mainapp/index.html?sap-client=XXX.

 

Please let me know how can i have a user access only VA01 tcode with flavor assigned.

 

Thanks

Sushma

SAP GUI 7.30 Patch 8 and GuiXT not found?

$
0
0


How can I stop this GuiXT Info pop-up?

 

GuiXT.jpeg

 

My installation check is clean.  Everything I do now generates this information pop-up after installing core patch 8.  I even went out to Synactive and installed a new version of GuiXT and I still get this.  It's very annoying!

 

 

Cheers,

 

Dan Mead

SAP GUI Patch 8 comdlg32.ocx and comctl32.ocx registration paths

$
0
0


I just updated my SAP GUI for Windows 7.30 core patch 7 to core patch 8 on my 64-bit Windows 7 OS and noticed the following:

 

 

GUI Installation Check.jpeg

 

The files never did exist under system32 but apparently patch 8 changed this some how.  There is not an option to select the path when applying the patch.  All three error's went away after I ran regsvr32 on each file in the proper directory.  For my installation that was C:\Windows\SysWOW64.  Not sure if this is a bug with patch 8.

 

Cheers,

 


Dan Mead

Rendering Error in SAPGUI for HTML

$
0
0

Hi experts,

 

after upgrading our ERP systems to EHP7, we are faced with a strange error. When we start an arbitrary transaction via SAPGUI for HTML within our Portal (7.4), a popup appears and shows the following message:

 

"The standards mode is not supported for documents less than 8 (Note 1674501)".

 

When i click on the single button "Ignore", the transaction is started with massive layout problems. Interestingly this problem is NOT caused, when i start the transaction without portal via sap/bc/gui/sap/its/webgui.

 

So this wrong behavior seems to be caused by the combination of SAP NetWeaver Portal AND SAPGUI for HTML. We are getting this error with IE9 and IE11, Chrome and FF have no problems.

 

As Note 1674501 mentioned, the compatibility mode of Internet Explorer could be an issue. Because the WebGUI is generated. i see currently no possibility to add additional meta-tags (e.g. <meta http-equiv="X-UA-Compatible" content="IE=edge" />) to the source-code of Web-Transactions.

 

Any ideas, how to solve this problem?

 

Regards Michael

problem with SAP GUI HTML

$
0
0

hi there,

 

out of netweaver ESS portal i am calling a Z-ABAP, which is using SAP GUI for HTML. so far, so good, but i have a problem:

 

1) when there is a error-message, the system information is displayed under the error message (see screenshot), like System, Client, User, Program, Server, etc........ I don't want that, how can i avoid it ?

Capture.PNG

 

br, Martin

Viewing all 3616 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>