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

Request for a macro code that connects an open SAP application

$
0
0

Hi Script man,

I hope you're fine and Thanks for your last clarification for my quest.

Now I need a help from you. I don't know how to open a new post and also i tried to send a direct message to you. But I couldn't. Thats why I place this query here. Please help.

I 'm using the follwing (your) code to connect Excel & SAP and have created many automations. All of them are working very fine except one.

The SAP window closes after macro run is completed.

Could you please provide me a code which will not close SAP window after macro run is finished.

And also please provide me a code to transfer data from Excel to a opened (manually) SAP window.

Your timely reply will help me more to work out.

Thanks ScriptMan.

Code:

Set SAP = CreateObject("SAP.Functions")

                  
          Set conn = SAP.connection

       

 

If Not IsObject(SapGuiApp) Then

           Set SapGuiApp = CreateObject("Sapgui.ScriptingCtrl.1")
          
End If


If Not IsObject(connection) Then

          Set connection = SapGuiApp.OpenConnection("051 - PRD - EP1", True)
End If


If Not IsObject(session) Then

         Set session = connection.Children(0)

End If

UserName = InputBox("Please Enter Your User Name")
Password = InputBox("Please Enter password")

session.findById("wnd[0]/usr/txtRSYST-BNAME").text = UserName
session.findById("wnd[0]/usr/pwdRSYST-BCODE").text = Password

session.findById("wnd[0]").sendVKey 0


SAPGui 720 and RRMX - RFC Error with a Message server

$
0
0

I am testing SAPGui 7.20 before installing it on all workstations. I found an error RFC_ERROR_COMMUNICATION in the following situation.

 

Client side:

WIndows XP SP3

Office 2003

SAPGui 720 + patch 2 (gui720_2-10007878.exe)

BI 7.0 ADDON FOR SAP GUI 7.20 (bi720sp02_200-20006596.exe)

BW 3.5 ADDON FOR SAP GUI 7.20 (bw350gui720_2-20006857.exe)

 

Server side:

Installed the following notes: 1471630, 1499568, 1477686, 1473879

 

I connect to P1B (Production systrem) with my login/password. Then I launch RRMX and the following error appears:

RFC_ERROR_COMMUNICATION

SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed

Connect_PM GWHOST=tosatti, GWSERV=sapgw50, SYSNR=50

 

LOCATION CPIC (TCP/IP) on local host

ERROR hostname 'tosatti' unknown

TIME Fri Sep 10 10:37:09 2010

RELEASE 720

COMPONENT NI (network interface)

VERSION 40

RC -2

MODULE nixxhl.cpp

LINE 183

DETAIL NiHLGetNodeAddr: hostname cached as unknown

COUNTER 2

 

This error happens only on Production system. On Development and Quality systems it is ok. The difference between these systems is that Production has a message server (po1bwsc.sapmi.telecomitalia.local) and a Group server defined

(PROD_P1B that leads to 4 application servers).

If I force the application server to logon to po1bwsc.sapmi.telecomitalia.local everything works well, but using the

group server I get the error above.

 

Furthermore I found out that:

if I add the IP address of the GWHOST (tosatti in this case, but I have also donald and alexey) in c:\windows\system32\drivers\etc\hosts file, everything works fine.

Please notice that with SAPGui 640 there is not this problem, even without adding the above IP addresses to etc\hosts file.

 

How can I avoid this problem?

Thanks

Roberto Pezzano

sapgui 730

$
0
0

Respected!

 

After lots of reading, searching....i'm turning on you to help me please!

 

I want to upgrade from 710 to 730 in our company, domain users.

On some machines it goes, on some not, regardles of OS (xp, 7).

AWUS check's but reports error, lok in attachment log file.

I have go with sugested way (wus.txt) from mr. Bob Held! Thank You Bob!

 

Another question. I have created a new Installation server from scratch,

imported products, created packages and patched them. Now, package has a

name, but how does a client (AWUS)know, wich package is the right one, if i din't gave

a package the same name? Or, how can i tell to awus client, take this package?

It has to be some cfg file on client...but where...

 

Thank's to all!

 

Best regards!

 

mv

Desktop shortcut s8l after auto update on desktop

$
0
0

After that I set up SAPLOGON auto update from server I have problem open SAPLogon on client side. Inside shorcut SAP Logon on the desktop icon there is file with .s8l extension. After double click on this icon  "Open in program" dialog appears. I cannot find any documentation or discusion. Plese help me find it.

Adobe LiveCycle Designer 9.8 false install with SAP GUI 7.30

$
0
0

I am encountering an issue where Adobe LiveCycle Designer 9.8 is not actually installing with SAP GUI 7.30 core patch 3 on Windows 7, both 32-bit and 64-bit.  I have swapped out the two files referenced in SAP Note 1658830.   I think the issue is with the ALD NwSapSetup is an older version.  The SapAldSetup.exe inicates that Adobe LiveCycle Designer 9.8 is already installed.  The is no designer folder under c:\Program Files\Adobe!  I have an OSS Message opened with SAP with no solution as yet.

 

09:31:22 NwSapSetup  1   Server NwSapSetup (Version 8.6.1.74) is older then workstation NwSapSetup (Version 9.0.30.0). Going to start workstation executable

09:31:22 NwSapSetup  1  

09:31:22 NwSapSetup  1   The remainder of this logfile is written by the workstation NwSapSetup!

09:31:22 NwSapSetup  1  

09:31:22 NwSapFeiUt  1   Executing: C:\Program Files (x86)\SAP\SAPsetup\Setup\NwSapSetup.exe /noMaintenanceMode /product:ALD /noPSI /noRestart "/InstallationSource:C:\Users\<username>\Documents\SAP\460226\2013\SAP GUI\Adobe Livecycle Dsigner 9.8.1\67837800102000002446"

09:31:22 NwSapFeiUt  1   Waiting with no time-out.

 

NwSapSetup.log:

NwSapFeiUt  1   Condition '%PRE_ALD%=FULFILLED' evaluated to true

NwSapFeiUt  1   This Execute-Action for 'C:\Program Files (x86)\SAP\SAPsetup\Setup\NwSapSetup.exe' has the Return-Code: 67

 

Has anyone else encountered this issue with the SAP GUI 7.30 kernel?

 

I know patch 31 is available.

 

 

Regrads,

 

Dan Mead

Problems with Excel Inplace view after upgrading to 7.30

$
0
0

Hey there,

 

after I upgraded from 7.20 to 7.30 the Excel inplace view no longer works:

Screen Shot 2012-10-24 at 11.13.14 AM.png

Excel opens in the SAP GUI "iView" an freezes:

Screen Shot 2012-10-24 at 9.39.22 AM.png

I found some OSS notes and updated to patch level 1, but still the same. Any ideas besides downgrading or waiting for patch level 2?

 

Thanks!

Work order report based on Customer fields

$
0
0

Hi SAP Experts,

 

I am working on an enhancement to display work order report based on customer fields....

 

That is, In transaction codes IW37n(Create work orders) and IW49n(display work orders), we need to add user defined fields to 'Customer fields' tab.

I have completed this part..But we need to generate work order report as ALV grid which should display both standard fields as well user defined fields(customer fields) created earlier...I am  aware that this can be done through BADI 'BADI_EAM_SINGLELEVEL_LIST'...

 

But I face the issue while executing report based on user-defined fields...

After clicking on 'Customer fields' tab we can add the user defined fields to 'dynamic selections' screen...

If we enter the values for these fields and execute , report is not generated .

Report is displayed correctly only  if selection is based on standard fields...

 

Please let me know if you have any approach to display the report if selections are based on user-defined fields .

 

Thanks & Regards

Karthikeyan N

auto-login for SAP GUI Java 7.20 on Linux

$
0
0

Hello All,

 

I'm using SAP GUI for Java 7.20 on Linux/Rhel6.3, and I'm trying to find some way to automatically log onto SAP systems, something similar to sapshcut that exists for SAPGUI Windows.

I've been looking into the possibility of SAPGUI supported scripts, I went through all documents in here  http://scn.sap.com/docs/DOC-8971 but with no luck of.

With the scrpting record window I was able to record some simple stuff like

 

application.findById("/app/con[0]/ses[0]/wnd[0]/usr/txtRSYST-MANDT").text = "000";

application.findById("/app/con[0]/ses[0]/wnd[0]/usr/txtRSYST-BNAME").text = "USER";

// The text of a password field is not recorded. Either enter a valid password or delete the following line

application.findById("/app/con[0]/ses[0]/wnd[0]/usr/pwdRSYST-BCODE").text = "****";

application.findById("/app/con[0]/ses[0]/wnd[0]/usr/txtRSYST-LANGU").text = "en";

application.findById("/app/con[0]/ses[0]/wnd[0]/usr/txtRSYST-LANGU").setFocus();

application.findById("/app/con[0]/ses[0]/wnd[0]/usr/txtRSYST-LANGU").caretPosition = 2;

application.findById("/app/con[0]/ses[0]/wnd[0]").resizeWorkingPane(193,31,false);

application.findById("/app/con[0]/ses[0]/wnd[0]").sendVKey(0);

 

but when I try to run it via command line in : $guilogon -f skript, nothing happens

 

I know that I'm missing something, but I can't find what.

 

Could someone please push me into the right direction ?

 

cheers,

michal


SAPGUI for Ubuntu 12.04 LTS

$
0
0

Hello,

 

I am having a hard time finding any information about SAPGUI and support on Ubuntu 12.04. Are there plans to support this release in the near future? I have heard that SAPGUI 7.30 for Java will include support for 12.04 but I can't find a timeframe on when it will be released.

 

If anyone has SAPGUI 7.20 working on Ubuntu 12.04, any info on how to get it working properly would be excellent.

 

Thanks!

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.

SAP Installation Server Problem / Error

$
0
0

Hi,

 

I installed a SAP Installtion Server on our Windows Server 2008 R2. Everything works fine. I created a package without any problem.

But when I want to install that package on a Windows XP Client, an error occured. I did this via Remote --> Execute Process Remotely and got the following error message:

 

 

Executing
guisrv\gui720\Setup\NwSapSetup.exe /Silent /Package="MY-SAP-GUI" on myworkstation, please wait...

Failure in executing
guisrv\gui720\Setup\NwSapSetup.exe /Silent /Package="MY-SAP-GUI" on myworkstation. Check parameters, credentials and verify if the Windows workstation is running!

 

 

I have read a lot of posts here, but did not find a solution.

When I try to execute a process like "notepad.exe" remotely it works great. I can display the running processes without any problems as well or collect the log files. I think the problem is to execute the NwSapSetup.exe remotely from a file share.

 

Maybe it has something to do with WMI Security? When I try to execute the installation command via the windows powershell using a wmi connection, it returns returncode 2, which means "access denied".

 

Starting the installation string from the file share sitting in front of the client works without a problem.

 

Any help would be greatly appreciated.

Date selection Issue : SAP GUI 730 patch level 3 ???

$
0
0

hi,

i am getting dump when trying to select date in a custom application. this issue started after upgrading my GUI to 730 from 720.

in other machines which is still having 720 is working fine.

please let me know if any of you faced similar issue / if have any resolution for this issue.

 

 

below are few of the details from ST22 dump.

 

program where its dumping : CL_GUI_CFW====================CP

 

Error analysis

    Short text of error message:

    Control Framework : Error processing control

 

    Long text of error message:

     Diagnosis

         An error occurred when the system tried to process the commands

         from the Automation Queue on the presentation server.

         There are several possible reasons for this:

         - The installation of the SAP GUI on the presentation server is

         faulty or obsolete.

         - There is an error in the application program

         - There is an error in the SAPGUI or an integrated control

     Procedure

         1. Make sure that you have imported the appropriate Support

         Package, the current kernel, and GUI patch for the release of your

         system

         2. Check whether the error occurs locally on one or a few PCs, or

         generally on all PCs. Note whether the error only occurs for some

         users, for example because of a specific Customizing setting.

         If it only occurs locally, this suggests an installation problem

         with the PC. Check the installation; if necessary, reinstall the

         software. In the dump, search for the SY-MSGLI field, since it may

         point to the cause of the error.

         3. Activate the Automation Trace (in accordance with SAP Note

         158985).

         4.Start the transaction and continue until the screen immediately

5. From the System -> Utilities menu, choose Autom. Queue,

Synchronous Processing.

The status bar of the GUI displays the text:

   "Automation synchron flush mode on"

6. If you now proceed with the application, the short dump will

display the ABAP call that caused the error; the Automation Trace

will contain the error on the presentation server.

7. If necessary, load the short dump and trace files on to

sapservX, so that SAP can analyze them.

Saving SAPGUI Options as Standard

$
0
0

SAPGUI 730 allows users to store their own version of saplogon.ini in their appdata folder.  (also applies to SAPGUI720)

 

C:\Users\nkeithwalker\AppData\Roaming\SAP\Common\saplogon.ini

 

A new user logging onto the laptop for the first time will be presented with a blank saplogon screen, there are no connection details. 

 

The IT staff will not have access to this folder as anyone receiving a replacement laptop will not want to divulge their network password. We have found the solution to this is to place the standard saplogon.ini in the default folder, so that it wil be copied over when the new user logs on for the first time.

 

C:\Users\default\AppData\Roaming\SAP\Common\saplogon.ini

 

However I want to introduce the Corbu themed design.  It will become part of the Standard Operating Environment image. This is easily set up in the SAPGUI options, but is not stored in the SAPLOGON.INI. 

 

Does anyone know where it is stored? 

SAP GUI can not logon (SAPMS380 runs for long time and error return)

$
0
0

Hi, I have upgrade my solman from SP6 to SP8, I guess the status was Import proper. I am not able to logon via SAPGUI, the little message only shows that "Compiling SAPMS380 in separate task", after a while just return error to me:

error.jpg

I check the dev_w0 and found that it just repeating the following error:

A Wed Apr  3 22:29:24 2013
A  *GENER* request remote generation: CL_HTTP_ENTITY================CP.

A Wed Apr  3 22:29:25 2013
A  *** ERROR => Syntax error in program CL_HTTP_ENTITY================CP         [abgen.c      1809]
A  {root-id=000C292B95F01ED2A78D5C2A7B84EFF4}_{conn-id=000C292B95F01ED2A78D5C3D29626FF8}_1

A  *** ERROR => > Include CL_HTTP_ENTITY================CM006      line 15 [abgen.c      1811]
A  {root-id=000C292B95F01ED2A78D5C2A7B84EFF4}_{conn-id=000C292B95F01ED2A78D5C3D29626FF8}_1

A  *** ERROR => > Field "VSCAN_SCAN_ALWAYS" is unknown. It is neither in one of the specified tabl [abgen.c      1813]
A  {root-id=000C292B95F01ED2A78D5C2A7B84EFF4}_{conn-id=000C292B95F01ED2A78D5C3D29626FF8}_1

A  *** ERROR => > es nor defined by a "DATA" statement. [abgen.c      1815]
A  {root-id=000C292B95F01ED2A78D5C2A7B84EFF4}_{conn-id=000C292B95F01ED2A78D5C3D29626FF8}_1

 

Could anyone got some experience to solve this, please kindly give me some advice with some steps. I really have no idea how to fix this at this stage.

 

I also attached that dev_w0 file here

 

BR

 

Wankei

sapgui 730

$
0
0

Respected!

 

After lots of reading, searching....i'm turning on you to help me please!

 

I want to upgrade from 710 to 730 in our company, domain users.

On some machines it goes, on some not, regardles of OS (xp, 7).

AWUS check's but reports error, lok in attachment log file.

I have go with sugested way (wus.txt) from mr. Bob Held! Thank You Bob!

 

Another question. I have created a new Installation server from scratch,

imported products, created packages and patched them. Now, package has a

name, but how does a client (AWUS)know, wich package is the right one, if i din't gave

a package the same name? Or, how can i tell to awus client, take this package?

It has to be some cfg file on client...but where...

 

Thank's to all!

 

Best regards!

 

mv


Populating the System list and activating Seach For in SAP GUI 730

$
0
0

Dear All ,

 

How can I populate the system list in the below screen , so I can just search in "Search For " field and add the system on users machine.

Have many systems in the landscape , its difficult to remember the hostnames and other parameters.

 

 

sapgui.png

 

Appreciate your help.

New article on SAP Insider about SAP Screen Personas

SAP GUI 7.20 - NwSapSetup.log - Return-Code: 48

$
0
0

We are trying to install SAP GUI 7.20. But as mentioned above, the NwSapSetup.log ends with the Return-Code: 48.

 

11:15:53 NwSapSetup  1   ------------------------------------------------------------

11:15:53 NwSapSetup  1   Return-Code: 48

11:15:53 NwSapSetup  1   ------------------------------------------------------------

11:15:53 NwSapSetUI  1   SapSetup UI Library Unloaded

11:15:53 NwSapsAtlC  1   SapSetup ATL Common Library Unloaded

11:15:53 NwSapFeiUt  1   This Execute-Action for 'C:\Program Files (x86)\SAP\SAPsetup\Setup\NwSapSetup.exe' has the Return-Code: 48

11:15:53 NwSapSetup  1  

11:15:53 NwSapSetup  1   Back to the server NwSapSetup. The workstation NwSapSetup has finished.

11:15:53 NwSapSetup  1  

11:15:53 NwSapSetup  1   ------------------------------------------------------------

11:15:53 NwSapSetup  1   Return-Code: 48

11:15:53 NwSapSetup  1   ------------------------------------------------------------

 

Does someone know the meaning of this return code ... or even better is someone able to provide a list of Return-Codes for SAP GUI.

 

Thanks in advance for advices like "have you increased the patch level of SAP GUI ..." - we have already done this.

 

Best regards,

Christian

SAP GUI 730 - common saplogon.ini / local SapLogonTree.xml

$
0
0

Hi there,

 

we want to use SAP GUI 730 and the environment variable SAPLOGON_INI_FILE that points to our common saplogon.ini stored on a server.

 

Is it possible in this case to set a path, by registry value or something else, to a locally stored SapLogonTree.xml?

 

Best regards

Christian

SAP GUI 730 AFS Patch upgrade 6.5

$
0
0

Hi all,

 

the last 2 weeks I spend a lot of my daily work for testing SAP GUI 730, as we are planning a patch upgrade to AFS 6.5.

Actually we run 710 : patchlevel 14 but we are a bit afraid that the problems will increase. We are running BI 7 as well.

 

My tests on GUI 730 was successful so far, but 2 major problems appear:

 

  1. If tx rrmx is called the system starts the download of the data, but Excel only shows a blank screen, the data will not be shown. I tried different scenarios also by changing rrmx_cust but that did not solve the fault. The test was done on win xp and win7 but on both environment same sh...
  2. The print function was tested as well, but also here we do have a problem, when the print is done from e.g. tx VF03 and the PDF preview is used the system from time to time only shows a blank screen, but all Icons from Adobe reader are shown. I tried afterwards to call the print several times and after 3 times I get the blank screen, when I use PDF! the print appears again. Did anybody out there cover the same? Could it be that the smart forms for have any negative influence on it?

Let me have your input if somebody do have an idea otherwise I will open an OSS.

 

regards

Alfons

Viewing all 3616 articles
Browse latest View live


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