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

PythonWin and SAPGUI Scripting

$
0
0

I was hoping that somebody else might have posted some examples of SAPGUI scripting and Python(Win) - but I couldn't find any.

 

Here is a very small example of SAPGUI Scripting with PythonWin. It might serve as a quick start for others who might also share an interest in Python and GUIscripting.

 

In short - I've got so far as to get basic manipulation working.

 

 

import win32com.client

False, True = 0 , -1

app = win32com.client.Dispatch("Sapgui.ScriptingCtrl.1")

conn = app.OpenConnection("D47", True)

At this point the SAPGUI opens with the initial logon screen of the system. A connection has been created. I enter my user ID and password

>>> print conn.Id

returns /app/con[0]

>>> ses = app.FindById("ses[0]")

>>> ses.CreateSession() "opens up a new session Good!

>>> ses.SendCommand(Command="/nIW31") "starts Tx IW31

>>> ses.StartTransaction(Transaction="IW31") "start IW31 also

 

>>> window = ses.activeWindow

>>> print window.Id

/app/con[0]/ses[0]/wnd[0]

start SE38...

>>> field = window.FindByName(Name="RS38M-PROGRAMM", Type="GuiCTextField")

>>> print field.Id

/app/con[0]/ses[0]/wnd[0]/usr/ctxtRS38M-PROGRAMM

 

So - it seems that basic manipulation works OK

 

Next step is to try some useful...

 

I'll let you know how it goes..

 

Andrew

 

 

Message was edited by: Andrew Barnard

 

Incorporated successful code and removed some questions which I've now solved myself. (The successful code covers the questions!).

 

 


Calendars in SAPGUI for Java

$
0
0

Hi

 

I'm using SAP GUI for Java in Linux, and I noticed it fails selecting a date in a calendar. For example in DBACOCKPIT - DBA Planning Calendar:

- clicking Oct 1, 2015 (in small calendar) goes to May 18, 2015 at the bottom

- Feb 4, 2016 -> June 8, 2015

- Aug 3, 2017 -> Aug 24, 2015

- ...

 

I found these SAP Notes:

1615698 - DBA Cockpit: Incorrect date selection in DB13C

1323797 - DBA Cockpit: Incorrect date selection in planning calendar

But my system is SAPKB70217.

Besides, I tried with SAP GUI for HTML and it works fine.

 

In Release Notes for rev 3 says:

Calendar Control now is based on the Date and Time API introduced in Java SE 8. This has not only greatly simplified the implementation but also added the possibility to support different calendaring systems.

 

So I tested with SAP GUI for Java rev2 it works fine. But with rev4 and rev5 it behaves as described.

It seems it's related with that modification in rev3.

 

My Java version:

java version "1.8.0_60"

Java(TM) SE Runtime Environment (build 1.8.0_60-b27)

Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

 

Regards

Aitor

SAP GUI 7.30 patch 3 history problem

$
0
0

Hello all!

 

I use SAP GUI 7.30 patch 3 installed on Windows 7 32bit and I got problem with history, it doesn`t work.

 

I see *.mdb file in %user%\AppData\Roaming\SAP\SAP GUI\History . It`s always created after deleting.

 

In traces I`ve found records about errors:

CSapHistoryDb::GetExitPoint: Microsoft Access Database Engine can`t find table or query "localtabchain".

 

I`ve already checked all referencing SAP notes about fixing MDAC and so on. But Windows 7 doesn`t have tools for MDAC repair, the file is system and locked.

 

Please, help!

 

Sergey.

Screen Personas - Default Roles Not Appearing

$
0
0

Hi

 

I done all the configuration up to Maintain Main and Target System List configuration as per SAP Screen Personas 1.0 SP02 configuration guide.After that i try to create maintain roles.

SPRO > SAP Customizing Implementation Guide > Cross-Application

Components > SAP Screen Personas > Maintain Personas Roles.

 

As per configuration document,default the following 5 roles are delivered by Personas

1.Rendering only

2.Rendering and flavor switching

3.Rendering, visual editing and sharing of flavors

4.Restricted editing

5.Full editing rights

 

But i am not getting any default roles above mentioned.Please help.How to get default roles.



Regrads

Laxmikanth Karunamoorthy

Screen Personas custom font

$
0
0

Hello all,

 

I would like to know if it's possible to use a custom font for flavor labels / text boxes. I know there's an option that allows you to choose the font type and size but I want a different font from the ones that come with it.

 

Thanks.

Reading the value from ALV Grid in Persona's 2.0

$
0
0

Hi All,

 

I am trying to read the value from ALV grid using persona's script and then use that value for further processing. I have added a script button on my screen which on click should read the value of the selected column/row. I get an error when I select a row and click on the button, but when I attach this script execute to push action of the ALV grid, it works fine when I highlight the field and click on enter.

 

I guess this is due the focus of the ALV grid for which I added focus step in the script before reading value but still I get the error when I click the button.

 

My requirement is to read the row field value from ALV grid on button click.

 

I have attached the screen prints to display the script I have created. Can some one please help me in resolving this issue.

 

Thanks,

Ravi G

Function Module call failed in personas 3.0

$
0
0

Hello Team,

 

I am calling remote enabled FM from personas 3.0 javascript. when I click on first time I am getting this error "Function module call failed", when I click on second time it is navigating to the flavour. could u please suggest me the solution.

 

Regards,

Sunayanah

Transaction button not working

$
0
0

Hi all,

I am using Screen personas 3.0 i want to create a transaction button with code '/OSMEN'(/O  for opening in new session) but it is not allowing me to enter '/O' IN TCODE of button definition so how can i use '/O' in tcode ???
and can we have any other way to open a transaction in new session with transaction button??

 

Help me out in this case!

 

Thanks & Regards,

Nishanth .B


Configuration/ Setup guide for Personas 3.0

SAP Screen Personas 3.0: Pictures

$
0
0

Hello

 

 

 

I have a problem to see if you know how to fix it.

 

In the development system images and icons in my main image (SMEN) display correctly


 

 

 

But in the production system I can not see images or icons


 


Any suggestions?

Thanks!

SAP Screen Personas 3.0: Applet

$
0
0

HelloGurus

ThistransactionPeopleScreen2.0 workscorrectlymein version 3.0I getthis whenI givef4to add a file this is displayed:


 

 

I usethis function toselect a file frompc

 

 

 

 

 

 

 

AndI tellmein version 2.0works finein 3.0butI getthat.
Thank you very muchfor your dedication!
A greeting!

 

Unable to save changes to Flavors

$
0
0

Hi,

 

I am using Screen Persona with Kernel 742_REL and Patch 214.

But the problem that I am facing is while working with flavors.

 

When I create flavor for the first time every thing works fine but saving changes to the flavor after 2 or 3 times,I start facing multiple issues:

 

1. Save button is disabled on the top right corner i.e I can't save any changes that I perform.

2. Menu coming on clicking the script button is not coming i.e under insert tab highlight bindings ,screen events and scripting events are 3 options which are not visible any more.Thus cannot implement any script.

 

Note: Please see the below image as I have selected the script button 'notify' but still no scripting menu is coming and also the save button is disabled

 

Please provide your valuable help on this.

 

Regards,

Devaarth

Issue1.jpeg

SAP GUI security window on portal

$
0
0

Hi guys,

One of our portal roles allows opening SAP GUI session inside the web browser window.

One of our end user experience following problem:

 

When trying to open SAP GUI session security message appears:

 

SAP GUI Security

Execution of command line

/H/app.server/S/3200

was denied.

 

Do you know what might be a reason of this security message ? It occurs only for one user.

SAP GUI 7.20 patch level 4

 

Thanks for help !

500 SAP internal server error for Personas 3.0 SP01

$
0
0

Hi,

 

We have been getting the below error in google chrome browser when personas services has been enabled. All required system configurations including parameter setting has been done as per SAP notes. But still we are facing the same error. It would be helpful if some insights for resolving the error would be shared.

 

System component versions:

 

SAP Basis 740 SP011

SAP Netweaver 7.4

Kernel 742 Patch level 200


Error.PNG

Thanks in advance.

 

Thanks & Regards,

Preethi

SECATT SAP GUI is not reading all the data

$
0
0

Dear Experts,

 

I have created a SAPGUI recording instead of TCD Mode. It is successfully worked. But, here is actual problems starts.

At the outset, let me say, what I have done in a system. I recorded a transaction by selecting SAPGUI instead of TCD Method. I have prepared a template and saved into text file and upload. System successfully uploading. Similarly, I added filled the same excel file some more data and saved as plan text and tried to upload, what happens, system read only first data and didn't not read data from second line.

 

Can anyone help me in this?

 

Thanks & Regards

Vidya Sagar


How to Release Bulk EOP Hold

$
0
0

Hi All,

 

Need your help in releasing Bulk EOP Hold from Order.

 

 

Regards

Mani

Productivity Power Play video series – Planning your SAP Screen Personas project

$
0
0

One of the most common questions we receive from customers about SAP Screen Personas is how to get started. In some cases they have already downloaded the software and want to create more intuitive screens in the shortest time. As with most projects, careful planning up front minimizes the overall time to deliver the final product.

 

In this episode (#3) of Productivity Power Play, I discuss the typical project phases, most of which occur before you open SAP Screen Personas to start simplifying screens. In addition, I cover the critical roles that must be involved in the project to ensure success at the end. We define success by delighted users that can complete their tasks in SAP in less time with fewer errors and minimal training.

 

play3.png

 

Watch Productivity Power Play episode 3.

 

See all the episodes.

 

For the SAP Screen Personas product team, Peter Spielvogel.

GUI 740 SP5 - registry entries ConfigFileOnServer disappearing

$
0
0

Hello

We just migrated SAPGui installation server to 7.40 Compilation 2 with GUI 7.4 SP5

In package installation settings we are using option to use central configuration file:

NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAPLogon\Options\ConfigFileOnServer", "REG_EXPAND_SZ", "\\server\SapLogonTree.xml"

NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP\SAPLogon\Options\ConfigFileOnServer", "REG_EXPAND_SZ", "\\server\SapLogonTree.xml"

but those registry entries are existing only for day or two and next morning disappearing from users workstations.

I've already checked following notes:

2075150 - SAP Logon (Pad) 740: New format of configuration files as of SAP GUI for Windows 7.40

2220930 - How to enable SAP UI Landscape format for SAP GUI for Windows 7.40

2075073 - SAP Logon (Pad) 740: create/distribute server configuration file in the SAP UI landscape format

2175351 - SAP Logon (Pad) 740: create/distribute the administrative core configuration file in the SAP UI landscape format

2175912 - SAP Logon (Pad) 740: favorites to the server connection entries are missing after migration

2225093 - SAP Logon (Pad) 740: command parameters /INI_FILE=... and /LSXML_FILE=... didn't work anymore in PL4+PL5

 

but nothing matched ....

We are also using:

NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAPLogon\Options\SapguiNTCmdOpts","REG_SZ","/SUPPORTBIT_OFF=MAX_WSIZE"

NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP\SAPLogon\Options\SapguiNTCmdOpts","REG_SZ","/SUPPORTBIT_OFF=MAX_WSIZE"

 

and those registry entries are always in place ....

Any hint how to trace this issue or resolve it ?

Regards

Marcin

P.S. Anyone from OSS who really do want  to investigate ?

Personas 2.0 close pop-up screen

$
0
0

Hi,

 

I'm working on a VA01 flavor. We have a scenario which triggers the material substitution as soon as a material/qty is typed in the VA01 screen. This is a pop-up inside the VA01 screen that looks something like this:

2015-12-07_11-05-50.jpg

All I'm trying to do is cancel/close that pop-up. So, in my script, I have an IF condition. I'm pretty much telling the script, if the pop-up is visible/active, then just click the cancel/close button. The reason it's an IF condition is because the pop-up will not appear always. It depends on the material number entered.

Here is what the relevant portion of my script looks like:

2015-12-07_11-08-44.jpg

I have tried "control exists", "is visible" and "is not empty". But no matter which action I choose, Personas is not able know about the pop-up and keeps failing. I have also tried selecting the whole pop-up window (ses[0]/wnd[1]), specific fields inside the pop-up and also the whole table inside the pop-up. Nothing seems to work.

Not sure what I'm doing wrong or if there is another way of handling this.

 

I also made sure that I have the screen control overwrite rules setup for VA01, VA02 and VA03 per note 1999747 before the flavor was created.

 

Thanks,

Srini

SCREEN PERSONA 2.0:UNABLE TO CALL XK03 TCODE FROM MM43-BASIC DATA SCREEN

$
0
0

Hi All,


I have a requirement to lookup vendor name in MM43 -basic data screen using scripting. But I am getting below error when I am doing this.

   

scn1.JPG

scn2.JPG


I was able do this in basic view screen but not in MM43 basic data view screen. Could someone please provide resolution for this?


Thanks,

Sravan.

Viewing all 3616 articles
Browse latest View live


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