SAPBEXgetConnection doesn't return proper values when BEX is open via RRMX
had to put a lot of interactivity in some workbook based on the user profile and going far beyond the simple authorisation objects.
Following the advice of some specialists such as Peter Knoer, I used the following code to get the user connection details:
<i>Set myConnection = Run("SAPBEX.XLA!SAPBEXgetConnection")
With myConnection ' call the connection
Sheets("BAPI").Cells(27, 2).Value = myConnection.Client
Sheets("BAPI").Cells(28, 2).Value = myConnection.User
Sheets("BAPI").Cells(29, 2).Value = myConnection.language
Sheets("BAPI").Cells(30, 2).Value = myConnection.SystemNumber
Sheets("BAPI").Cells(31, 2).Value = myConnection.System
Sheets("BAPI").Cells(32, 2).Value = myConnection.ApplicationServer
End With</i>
Everything works fine as long as the user first launch BEX and connect directly in BEX.
This command function fails if BEX is launch from SAP EasyAccess Menu via the RRMX transaction.
Any clue why this function does not work in the case of a launch via RRMX?
I tried several alternative, is there a better Function to use to get all the user connection details in this case?
thanks for your insights on this point.
Hi Peter,
why do I need to test what is the current login?
I had the request to make truly dynamic workbook based on user profile: logo, workbook label based on user language etc.
To do so, I need to pass either the user name or the system number or the language to two RFC/BAPI functions from excel. Have a look at the complete macro below:
+Sub BAPIUserDetail()
'Declaration for the necessary objects
Dim myConnection, myConnection2, objLogonControl, objBAPIControl, objConnection, objUserDetail, objUserName, objTranslation, objTranslationTable As Object
Dim objTranslationDelimiter As Object
Dim objTranslationOptions As Table
Sheets("BAPI").Range("B27:B33").Value = ""
Set myConnection = Run("SAPBEX.XLA!SAPBEXgetConnection")
With myConnection ' call the connection
Sheets("BAPI").Cells(27, 2).Value = myConnection.Client
Sheets("BAPI").Cells(28, 2).Value = myConnection.User
Sheets("BAPI").Cells(29, 2).Value = myConnection.language
Sheets("BAPI").Cells(30, 2).Value = myConnection.SystemNumber
Sheets("BAPI").Cells(31, 2).Value = myConnection.System
Sheets("BAPI").Cells(32, 2).Value = myConnection.ApplicationServer
'.UseSAPLogonIni = False 'important for automatic connection
'.Logon 0, True ' This will provide a dialog to appear
'If .IsConnected <> 1 Then
'.Logon 0, False
'If .IsConnected <> 1 Then Exit Sub
'End If
End With
'Run "sapbex.xla!sapbexinit"
' if the user launch bex via SAPGUI easyaccess, sometimes the connection parameter fails
Dim objVerifyConnection As String
objVerifyConnection = Sheets("BAPI").Cells(27, 2).Value
If objVerifyConnection = "" Then
'Close completely the connection to BW !
Run "sapbex.xla!dialOut", True, True
'We warn-out the user that BEX connection is not correct
MsgBox "ATTENTION: Les Parametres de Connection de votre BEX ne sont pas correctement transmis depuis votre SAPGUI. Veuillez vous reconnecter et relancer la derniere requête."
'We recreate a new connection via SAPlogon dialog and relaunch the first query in the sequence of SAPBEXqueries worksheet
Dim r As Range
Set r = Range("SAPBEXqueries!SAPBEXq0003")
Run "sapbex.xla!SAPBEXrefresh", False, r
'We get another time all the connection parameter in the BAPI sheet
Set myConnection2 = Run("SAPBEX.XLA!SAPBEXgetConnection")
With myConnection2 ' call the connection
Sheets("BAPI").Cells(27, 2).Value = myConnection2.Client
Sheets("BAPI").Cells(28, 2).Value = myConnection2.User
Sheets("BAPI").Cells(29, 2).Value = myConnection2.language
Sheets("BAPI").Cells(30, 2).Value = myConnection2.SystemNumber
Sheets("BAPI").Cells(31, 2).Value = myConnection2.System
Sheets("BAPI").Cells(32, 2).Value = myConnection2.ApplicationServer
End With
End If
'Create automatic connection for the user USER_BAPI to gather the Entity and Logo parameters linked to the user connected
Set objBAPIControl = CreateObject("SAP.Functions") 'Create ActiveX object
'Specify user
objBAPIControl.Connection.User = "USER_BAPI"
'Then password
objBAPIControl.Connection.Password = "BOUYGUES"
'Client
objBAPIControl.Connection.Client = Sheets("BAPI").Cells(27, 2).Value
'Target server address
objBAPIControl.Connection.ApplicationServer = Sheets("BAPI").Cells(32, 2).Value
'Language code
objBAPIControl.Connection.language = Sheets("BAPI").Cells(29, 2).Value
'System ID
objBAPIControl.Connection.System = Sheets("BAPI").Cells(31, 2).Value
'System Number
objBAPIControl.Connection.SystemNumber = Sheets("BAPI").Cells(30, 2).Value
'Finally, try to logon to the specified system and check if the connection established
If objBAPIControl.Connection.Logon(0, True) <> True Then
MsgBox "Cannot Log on to SAP" 'Issue message if cannot logon
Else
' MsgBox "Logged on to SAP!"
End If
On Error Resume Next
' BAPI_USER_GET_DETAIL to get the user's parameter1 values
Set objUserDetail = objBAPIControl.Add("BAPI_USER_GET_DETAIL")
Set objUserName = objUserDetail.exports("USERNAME")
objUserName.Value = Sheets("BAPI").Cells(15, 2).Value
' Function call
objUserDetail.call
' Getting the result set in a table
Dim objTable As Table
Set objTable = objUserDetail.Tables("PARAMETER1")
' Printing the number of company codes
'MsgBox "Row count :" & objTable.RowCount
Sheets("BAPI").Cells(16, 2) = objTable.RowCount
' Clearing the PARAMETER1 Table on the Excel Sheet
Sheets("BAPI").Range("A18:C25").Value = ""
' Saving the PARAMETER1 Table to the Excel Sheet
For i = 1 To objTable.RowCount
Sheets("BAPI").Cells(17 + i, 1) = objTable.Cell(i, 1)
Sheets("BAPI").Cells(17 + i, 2) = objTable.Cell(i, 2)
Next i
'if any error then displaying the same to the users
If Err Then
MsgBox Err.Description
End If
' Determine the standard SAP language code
Dim language As String
language = Sheets("BAPI").Cells(29, 2).Value
Select Case language
'FR
Case "FR"
Sheets("BAPI").Cells(16, 5).Value = "F"
'EN
Case "EN"
Sheets("BAPI").Cells(16, 5).Value = "E"
'DE
Case "DE"
Sheets("BAPI").Cells(16, 5).Value = "D"
'ES
Case "ES"
Sheets("BAPI").Cells(16, 5).Value = "S"
'Empty Language
Case ""
Sheets("BAPI").Cells(16, 5).Value = "F"
Case Else
Sheets("BAPI").Cells(16, 5).Value = "F"
End Select
' RFC_READ_TABLE to get all the translation for the text label according to user preference
Set objTranslation = objBAPIControl.Add("RFC_READ_TABLE")
Set objTranslationTable = objTranslation.exports("QUERY_TABLE")
objTranslationTable.Value = Sheets("BAPI").Cells(8, 5).Value
Set objTranslationDelimiter = objTranslation.exports("DELIMITER")
objTranslationDelimiter.Value = Sheets("BAPI").Cells(10, 5).Value
Set objTranslationSkips = objTranslation.exports("ROWSKIPS")
objTranslationSkips.Value = "0"
Set objTranslationCount = objTranslation.exports("ROWCOUNT")
objTranslationCount.Value = "0"
'Define the filters for the OPTIONS table
Dim area As String
Dim langu As String
area = Sheets("BAPI").Cells(14, 5)
langu = Sheets("BAPI").Cells(16, 5)
Set objTranslationOptions = objTranslation.Tables("OPTIONS")
objTranslationOptions.AppendRow
objTranslationOptions(1, "TEXT") = "AREA = '" & area & "' AND LANGU = '" & langu & "'"
' Function call
objTranslation.call
' Getting the result set in a table
Dim objTTable As Table
Set objTTable = objTranslation.Tables("DATA")
' Printing the number of company codes
'MsgBox "Row count :" & objTTable.RowCount
Sheets("BAPI").Cells(12, 5) = objTTable.RowCount
' Clearing the Table on the Excel Sheet
Sheets("BAPI").Range("G7:Z10000").Value = ""
' Saving the Table to the Excel Sheet
For i = 1 To objTTable.RowCount
Sheets("BAPI").Cells(6 + i, 7) = objTTable.Cell(i, 1)
Next i
'Convert to column the semicolon delimited text from the
Dim objRange1 As Range
'Set up the ranges
Set objRange1 = Sheets("BAPI").Range("G7:G10000")
'Do the first parse
objRange1.TextToColumns _
Destination:=Range("G7"), _
DataType:=xlDelimited, _
Tab:=False, _
Semicolon:=True, _
Comma:=False, _
Space:=False, _
Other:=False, _
OtherChar:="-"
'Replace the * by the symbol, there is a pb with this caracter in the RFC_READ_TABLE
Dim Cell As Variant
For Each Cell In Sheets("BAPI").Range("K7:K1000")
Cell.Value = Replace(Cell.Value, "*", "")
Next Cell
'Insert logo in the BAPI worksheet
Dim objPic As Object
Dim ApplicationServer As String
Dim logo As String
ApplicationServer = Sheets("BAPI").Cells(32, 2).Value
logo = Sheets("BAPI").Cells(20, 5).Value
If logo = "Langue!" Then
MsgBox "Attention: Il n'y a pas d'Entité et de Logo associés à votre profile! Veuillez contacter votre Administrateur."
Else
'Assign inserted image to an object
Set objPic = Worksheets("BAPI").Pictures.Insert("http://" & ApplicationServer & ".bouygues-construction.com:8000/sap/bw/Mime/BEx/Bouygues%20Logos/" & logo & ".gif")
objPic.Left = 400
objPic.Top = 300
objPic.Name = "MyLogo"
objPic.Height = 100
' using the name reference to change width
'Worksheets("BAPI").Shapes("MyLogo").Width = Worksheets("BAPI").Shapes("MyLogo").Width / 4
'if any error then displaying the same to the users
'Insert logo in the BAPI worksheet
Dim objMainPic As Object
'Dim ApplicationServer As String
'Dim logo As String
'ApplicationServer = Sheets("BAPI").Cells(32, 2).Value
'logo = Sheets("BAPI").Cells(20, 5).Value
'Assign inserted image to an object
Set objMainPic = Worksheets("TBD dynamique").Pictures.Insert("http://" & ApplicationServer & ".bouygues-construction.com:8000/sap/bw/Mime/BEx/Bouygues%20Logos/" & logo & ".gif")
objMainPic.Left = 30
objMainPic.Top = 30
objMainPic.Name = "MyMainLogo"
'objMainPic.Height = 100
' using the name reference to change width
Worksheets("TBD dynamique").Shapes("MyMainLogo").Width = Worksheets("TBD dynamique").Shapes("MyMainLogo").Width * 0.9
End If
If Err Then
MsgBox Err.Description
End If
'log off for the USER_BAPI
objBAPIControl.Connection.Logoff
End Sub+
But as I said the SAPBEXgetConnection does not behave the same way if login is done directly done in BEX or via RRMX. Any Clue?
Similar Messages
-
Doesn't return true value .........
Hi All,
please check the following code.
password (originalPassword) from the database is : xyz
password (password) from the login page is : xyz
when I try for equality for the password :
if(originalPassword.equalsIgnoreCase(password)) {
it doesn't return true value while the password is same that is : xyz ?
I an stuck in the problem.
Please look into the code and solve my problem.
Thanks
public boolean verifyPassword(String username, String password) {
String originalPassword=null;
try {
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://sqlserver:1433","harish","harish");
PreparedStatement pstmt = con.prepareStatement("select password from registration where username='"+username+"'");
//ResultSet rs = pstmt.getResultSet();
ResultSet rs = pstmt.executeQuery();
if(rs.next()) {
originalPassword=rs.getString(1);
pstmt.close();
if(originalPassword.equalsIgnoreCase(password)) {
return true;
} else {
return false;
} catch (Exception e){
System.out.println("Exception: verifyPassword="+e);
return false;
Harish PathakAre you sure there's no space before or after "xyz"? Try adding some debug output to your code:
if(originalPassword.equalsIgnoreCase(password)) {
//foo
} else {
System.out.println("<" + password + "> does not match <" + originalPassword + ">");
} -
Hello.
I seem to be having a problem using the RegRead function within vbscript to return a simple value from the registry. When I run it on my workstation (windows 7 x64 sp1), it seems to miss certain registry values that are indeed there (specifically, I am looking
for instances of "Adobe" in the displayName value of HKLM\Software\wow6432node\microsoft\windows\uninstall). However, when I run on a test VM, it returns the values fine. I am hoping someone might be able to explain this inconsistency and why it
is happening.
The code is very simple:
On Error Resume Next
if wscript.arguments.count < 1 then
wscript.echo "usage: regread.vbs <hostname> <appname>"
wscript.quit
end if
AppName = wscript.arguments(1)
strComputer = wscript.arguments(0)
const HKEY_LOCAL_MACHINE = &H80000002
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!//"& strComputer & "/root/default:StdRegProv")
strKeyPath = "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
'wscript.echo subkey
InstalledAppName = ""
InstalledAppName = WshShell.RegRead("HKLM\" & strKeyPath & "\" & subkey & "\DisplayName")
wscript.echo vbtab&"DisplayName: "&InstalledAppName
if instr(InstalledAppName,AppName) > 0 then
wscript.echo vbcrlf&"found"&vbcrlf
end if
Next
When I run "cscript regread.vbs remoteHost Adobe" on my local machine, it does not "find" any instance of Adobe within the registry of machine "remoteHost". However, when I run it from a test VM, it does find the existing instances
of Adobe within the DisplayName value of the uninstall key of the registry, here is the output from both, first the non-working one, then the working test VM.
Non-working:
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: GPL Ghostscript 8.60
DisplayName: GPL Ghostscript Fonts
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft Office Professional Plus 2010
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft ASP.NET 2.0 AJAX Extensions 1.0
DisplayName:
DisplayName: Sybase PowerBuilder 12.0 Standard Runtime
DisplayName: MSXML 4.0 SP3 Parser
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: MSXML 4.0 SP3 Parser (KB2758694)
DisplayName: Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4148
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft Windows Journal Viewer
DisplayName: Java Auto Updater
DisplayName: VBA (2627.01)
DisplayName: Microsoft Visual C++ 2005 Redistributable
DisplayName:
DisplayName: Apple Software Update
DisplayName: SQL Anywhere 9 for Windows x64
DisplayName: Microsoft Office Professional Plus 2010
DisplayName:
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2553267) 32-Bit Edition
DisplayName:
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2760631) 32-Bit Edition
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2494150)
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{90140000-0011-0000-0000-0000000FF1CE}_Office14.PROPLUS_{9569DE03-1425-4D12-96EB-44D852AF759A}\DisplayName
DisplayName:
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2553065)
DisplayName:
DisplayName: Security Update for Microsoft Office 2010 (KB2598243) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2825640) 32-Bit Edition
DisplayName:
DisplayName: Update for Microsoft Outlook Social Connector 2010 (KB2553406) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2553371) 32-Bit Edition
DisplayName:
DisplayName:
DisplayName:
DisplayName: Security Update for Microsoft Office 2010 (KB2589320) 32-Bit Edition
DisplayName:
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2596964) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2566458)
DisplayName:
DisplayName:
DisplayName: Microsoft Office Access MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Excel MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office PowerPoint MUI (English) 2010
DisplayName:
DisplayName:
DisplayName: Microsoft Office Publisher MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Outlook MUI (English) 2010
DisplayName: Update for Microsoft Outlook Social Connector 2010 (KB2553406) 32-Bit Edition
DisplayName:
DisplayName:
DisplayName: Microsoft Office Word MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Proof (English) 2010
DisplayName:
DisplayName:
DisplayName: Microsoft Office Proof (French) 2010
DisplayName:
DisplayName:
DisplayName: Microsoft Office Proof (Spanish) 2010
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft Office Proofing (English) 2010
DisplayName:
DisplayName: Microsoft Office InfoPath MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Shared MUI (English) 2010
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2553310) 32-Bit Edition
DisplayName: Microsoft Office OneNote MUI (English) 2010
DisplayName:
DisplayName: Update for Microsoft OneNote 2010 (KB2553290) 32-Bit Edition
DisplayName: Microsoft Office Groove MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Shared Setup Metadata MUI (English) 2010
DisplayName:
DisplayName:
DisplayName: Microsoft Office Access Setup Metadata MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Visio Viewer 2003 (English)
DisplayName: Cardiff TeleForm
DisplayName:
DisplayName:
DisplayName: CodeMax Runtime Installer
DisplayName: Microsoft .NET Framework 1.1
DisplayName:
DisplayName:
DisplayName: Microsoft XML Parser
DisplayName:
DisplayName: Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
Working:
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
DisplayName:
DisplayName:
DisplayName:
DisplayName: DYMO Label v.8
DisplayName:
DisplayName: GPL Ghostscript 8.60
DisplayName: GPL Ghostscript Fonts
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft Office Professional Plus 2010
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft ASP.NET 2.0 AJAX Extensions 1.0
DisplayName: Adobe Flash Player 11 Plugin
found
DisplayName: Sybase PowerBuilder 12.0 Standard Runtime
DisplayName: MSXML 4.0 SP3 Parser
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: MSXML 4.0 SP3 Parser (KB2758694)
DisplayName: Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4148
DisplayName: Cisco WebEx Meeting Center for Internet Explorer
DisplayName: Configuration Manager Client
DisplayName: Java 7 Update 51
DisplayName: Citrix Online Launcher
DisplayName: MSXML 4.0 SP3 Parser (KB2721691)
DisplayName: Microsoft Windows Journal Viewer
DisplayName: Java Auto Updater
DisplayName: VBA (2627.01)
DisplayName: Microsoft Visual C++ 2005 Redistributable
DisplayName: Microsoft Visual C++ 2005 Redistributable
DisplayName: Apple Software Update
DisplayName: SQL Anywhere 9 for Windows x64
DisplayName: Microsoft Office Professional Plus 2010
DisplayName: Update for Microsoft Filter Pack 2.0 (KB2810071) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2826035) 32-Bit Edition
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft Office 2010 (KB2553267) 32-Bit Edition
DisplayName: Update for Microsoft PowerPoint 2010 (KB2553145) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2589375) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2687276) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2760631) 32-Bit Edition
DisplayName: Update for Microsoft OneNote 2010 (KB2810072) 32-Bit Edition
DisplayName: Security Update for Microsoft InfoPath 2010 (KB2687422) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2494150)
DisplayName: Security Update for Microsoft Office 2010 (KB2687423) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2597986) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2794737) 32-Bit Edition
DisplayName: Update for Microsoft SharePoint Workspace 2010 (KB2589371) 32-Bit Edition
DisplayName: Security Update for Microsoft Publisher 2010 (KB2553147) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2850016) 32-Bit Edition
DisplayName: Definition Update for Microsoft Office 2010 (KB982726) 32-Bit Edition
DisplayName: Security Update for Microsoft InfoPath 2010 (KB2760406) 32-Bit Edition
DisplayName: Update for Microsoft Visio Viewer 2010 (KB2810066) 32-Bit Edition
DisplayName: HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{90140000-0011-0000-0000-0000000FF1CE}_Office14.PROPLUS_{9569DE03-1425-4D12-96EB-44D852AF759A}\DisplayName
DisplayName: Update for Microsoft Office 2010 (KB2767886) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2597087) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2687510) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2553065)
DisplayName: Update for Microsoft Access 2010 (KB2553446) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2598243) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2825640) 32-Bit Edition
DisplayName: Security Update for Microsoft Visio 2010 (KB2810068) 32-Bit Edition
DisplayName: Update for Microsoft Outlook Social Connector 2010 (KB2553406) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2553371) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2826026) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2589298) 32-Bit Edition
DisplayName: Security Update for Microsoft Excel 2010 (KB2826033) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2589320) 32-Bit Edition
DisplayName: Security Update for Microsoft Word 2010 (KB2863902) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2826023) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2760598) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2596964) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2566458)
DisplayName: Update for Microsoft Office 2010 (KB2589352) 32-Bit Edition
DisplayName: Security Update for Microsoft Outlook 2010 (KB2837597) 32-Bit Edition
DisplayName: Microsoft Office Access MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Excel MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office PowerPoint MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft PowerPoint 2010 (KB2553145) 32-Bit Edition
DisplayName: Microsoft Office Publisher MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Outlook MUI (English) 2010
DisplayName: Update for Microsoft Outlook Social Connector 2010 (KB2553406) 32-Bit Edition
DisplayName: Update for Microsoft Outlook 2010 (KB2687623) 32-Bit Edition
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Word MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Proof (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft Office 2010 (KB2850079) 32-Bit Edition
DisplayName: Microsoft Office Proof (French) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft Office 2010 (KB2850079) 32-Bit Edition
DisplayName: Microsoft Office Proof (Spanish) 2010
DisplayName: Update for Microsoft Office 2010 (KB2850079) 32-Bit Edition
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft Filter Pack 2.0 (KB2810071) 32-Bit Edition
DisplayName: Update for Microsoft OneNote 2010 (KB2810072) 32-Bit Edition
DisplayName: Update for Microsoft SharePoint Workspace 2010 (KB2589371) 32-Bit Edition
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft Office 2010 (KB2760598) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2589352) 32-Bit Edition
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Proofing (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office InfoPath MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Shared MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Security Update for Microsoft Office 2010 (KB2553284) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2553310) 32-Bit Edition
DisplayName: Microsoft Office OneNote MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft OneNote 2010 (KB2553290) 32-Bit Edition
DisplayName: Microsoft Office Groove MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Shared Setup Metadata MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Access Setup Metadata MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Visio Viewer 2003 (English)
DisplayName: Cardiff TeleForm
DisplayName: Adobe Acrobat XI Pro
found
DisplayName: QuickTime
DisplayName: CodeMax Runtime Installer
DisplayName: Microsoft .NET Framework 1.1
DisplayName: WinZip 15.0
DisplayName: McAfee VirusScan Enterprise
DisplayName: Microsoft XML Parser
DisplayName: McAfee Agent
DisplayName: Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: Apple Application Support
Does anyone know why this might be happening? The only main difference is that the machine that the script does not work on, has visual studio 2013 installed.
Please helpWell I think we can agree that it is not supported remotely. Because while it did initially work remotely, it didnt behave consistently; that is, it worked on the VM, but not my desktop. That's the whole reason I created this thread. Sorry if you are confused,
but I most certainly was not lying and not trying to troll the forum or whatever it is you are insuinuating. Chill out a little bit and maybe you might get that Microsoft MVP.
I am trying to get you t understand why what you are saying is wrong. You may have thought it worked but there were a number of things that make it impossible to actually work.
You were enumerating a remote key. You were using that key name with RegRead and it was looking up the local value. That is why it could not find remote keys and values. The local and remote machines will not match on all keys.
The correct call is the "GetStringValue" of the registry provider because it is the only call that can read remote values. My point is that you were fooling yourself by thinking that it ever actually worked. If anything it was just dumb luck
that the keys would match.
So maybe you weren't actually lying but you were surely foolingyourself and confusing us.
Anyway - glad you fixed it and just remember to not mix calls like you did. Also don't use On Error Resume Next unless you plan on test every call for an error.
¯\_(ツ)_/¯ -
*Hello Guys.*
*I hv inserted search help in an field of screen exit in T-code IW21. Its showing value properly when i press f4 but when selecting value its nt returning any value properly....*
*I am pasting code ..please help me out*
*. Process of value Request*
*field <fieldname> module F4_AGENCY*
*MODULE F4_AGENCY INPUT.*
*DATA: IT_AGENCY TYPE TABLE OF ZF4_AGENCY WITH HEADER LINE,*
*it_FIELD_TAB type table of DFIES WITH HEADER LINE,*
*IT_DDSHRETVAL TYPE TABLE OF DDSHRETVAL WITH HEADER LINE.*
*REFRESH : IT_AGENCY[].*
*clear : VIQMEL-ZZAGENCY.*
**SELECT * FROM ZF4_AGENCY INTO TABLE IT_AGENCY.**
*CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'*
*EXPORTING*
DDIC_STRUCTURE = 'ZF4_AGENCY'**
*RETFIELD = 'ZZAGENCY'*
PVALKEY = ' '**
*DYNPPROG = sy-cprog "'SAPLXQQM'*
*DYNPNR = sy-dynnr "'0101'*
*DYNPROFIELD = 'VIQMEL-ZZAGENCY'*
STEPL = sy-stepl**
*VALUE_ORG = 'S'*
*TABLES*
*VALUE_TAB = IT_AGENCY[]*
*FIELD_TAB = it_FIELD_TAB[]*
*RETURN_TAB = IT_DDSHRETVAL[]*
DYNPFLD_MAPPING =**
EXCEPTIONS**
PARAMETER_ERROR = 1**
NO_VALUES_FOUND = 2**
OTHERS = 3**
*IF SY-SUBRC <> 0.*
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO**
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.**
*ENDIF.*
*wating for any reply*Did you take a look at the help for FM? pass the hardcoded value for DYNPPROG and DYNNR (and see if that works)
DYNPPROG and DYNNR cannot be passed as SY-REPID and SY-DYNNR because they are only analyzed after the function module has been called. Instead, first copy the SY fields to local variables and then pass them to the function module. -
Apex 2.2 popup lov doesn't return chosen value
Hey,
I've built a page within one of my applications in apex 2.2 that has an item based on a Popup LOV. I have a pre-built dynamic LOV.
When I run the page the popup icon appears and I can launch the popup. The filters work, and the result set appears. However, if I attempt to click on a value, nothing happens. The window remains opened and no value is returned to the parent window. The browser window shows no sign of javascript errors.
I'm using Theme 11 and the standard popup template.
I've tried this is a different workspace, using the same lov sql etc, and it works ok!
I've tried it elsewhere in a new page within my problematic application, and the problem is replicated there too.
What could be going wrong?
Cheers,
JohnHi,
I have to create a page , with dynamic Popup using query. I am using APEX_ITEM.POPUP_FROM_QUERY(). Dynamic popup is generated, i can able to open the popup, when i click the link of the generated records. It does not return the value.
I feel that , it's like your error.
could you please help me ou.t
Thanks
kam -
What if a function doesn't return a value, and expected to hang.
Hi, i'm using D2K, 6i forms.
i've a function something like this:
/* Function returns current slno for a transaction.
create or replace function gen_auto_slno_fn
(doc_vr varchar2,
branch_vr varchar2)
return varchar IS
genslno VARCHAR2(15) ;
BEGIN
BEGIN
SELECT lpad((nvl(SLNO,0)+1),5,0)
INTO genslno
FROM GEN_SLNO
WHERE doc_name = doc_vr
AND BRANCH_CODE=branch_vr;
return(genslno);
EXCEPTION
WHEN no_data_found then
Dbms_output.put_line('No data found in General Serial number for '||doc_vr);
raise_application_error(-20100,sqlerrm);
END;
END;
My problem is:
suppose if such branch_code does not exist, then
it will go exception part.
I was expecting the 'No data ...error message ' in my forms.
but Instead of that a message such as 'Unhandled exception occurs.
I also tried returning a value like :
EXCEPTION
WHEN no_data_found then
Dbms_output.put_line('No data found in General Serial number for '||doc_vr);
return('ERROR');
--raise_application_error(-20100,sqlerrm);
END;
It was working then.
My question is: how do I display the whole error message on my form and raise form_trigger_failure ?
( also the one in the subject line!)
Message was edited by:
abhijithdevA comment on using exception handlers and raising exceptions.
WHEN no_data_found then
Dbms_output.put_line('No data found in General Serial number for '||doc_vr);
raise_application_error(-20100,sqlerrm); DBMS_OUTPUT is superfluous and meaningless in production code. It should not be there... and if debugging is required, then it is easy to make it vastly superior than the very primitive DBMS_OUTPUT interface.
Ditto for RAISE_APPLICATION_ERROR. Calling this system procedure directly, does not support logging and tracing and troubleshooting and debugging problems.
One of the basic (I would call it the very most basic) rules in software development is to modularise. This includes wrapping system calls into wrappers - that allows additional flexibility and makes maintenance and development a lot easier.
Instead of calling RAISE_APPLICATION_ERROR, create a wrapper PL/SQL procedure called something like RaiseException().
Input parameters would typically be an error message number. The message for the error can also be passed.. though I prefer to have a message array (static PL/SQL var) that can be used to lookup the error message for that error code.
As all exceptions are now raised via a single proc that you control, you can easily add debug information to it. Log the exception (using an autonomous transaction) in a log table. Add the PL/SQL call stack to the message. Write an error to the alert log for those real critical fubar errors. Call DBMS_OUTPUT if need be. Even send the error message to a DBMS_PIPE for an error console to pick up and display interactively.
Designing and coding wrappers for system calls are a critical cornerstone of an application that is flexible and easy to maintain and extend. -
Hello,
I have a report that uses apex_item.checkbox(...) to generate checkbox. This report correctly displays a checkbox for each row. The source code generated in the html page is:
<input type="checkbox" name="f01" value="202" id="P1_CHECKBOX" />
<input type="checkbox" name="f01" value="220" id="P1_CHECKBOX" />
<input type="checkbox" name="f01" value="210" id="P1_CHECKBOX" />
I want to use the javascript function $v() to get the values of the checked checkbox. I thought that this function return the values of all the checked checkbox separated by ':' but I notice that my code alert($v('P1_CHECKBOX')); returns each time only the value of the first checkbox if it is checked.
It returns '202' if the first checkbox is checked but nothing if only the second checkbox is checked and '202' if the first and second checkbox are checked.Hi,
first of all, $v, $x and $s are suppose to only work for page items and not for tabular form columns or manually generated HTML elements.
Second, I think your HTML code is not correct, because each of your checkboxes has the same ID. But the ID has to be unique in the browser DOM tree. So the different checkbox elements should actually be named P1_CHECKBOX_1 .. P1_CHECKBOX_3. Just have a look what is actually generated for a real checkbox page item. BTW, I think you shouldn't name these checkbox elements like a page item, because they are actually not page items. I think that could be confusing for other developers.
Hope that helps
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
SQL Select using LEFT OUTER JOIN returning field values when I expect NULL
I am having problems with this select statement:
SELECT distinct pl.id, th.trip, pc.country, pph.location
FROM people_list pl, people_travelhistory th, people_country pc
LEFT OUTER JOIN people_info pph on pph.id=pl.id and pph.country=pc.country
where people_list.active='Y' and people_list.id=th.id and th.trip = pc.trip;
The criteria is that the pph table may not have no record for that id and country.
The problem is that the pph.location field is returned with data even when no matching record for that id or country exists.
If the record doesn't exist in the pph table, I want pph.location = NULL
What am I doing wrong?
Thanks in Advance!
DeveloperHi, You can try this :
SELECT distinct pl.id, th.trip, pc.country, pph.location
FROM people_list pl, people_travelhistory th, people_country pc
left outer join people_info pph on pph.id = pl.id
left outer join people_country pc on pc.country = pph.country
left outer join people_travelhistory th on th.id = pl.id
where pl.active='Y' and th.trip = pc.trip;
Knowing that you requesting people active that have travelled to their own country.
Regards -
LOV doesn't return selected value to the base page
Hi All,
I have created an LOV based on VO. When I select value on the LOV page, it is not returning the selected value to the base page.
I am getting the error when I select any value .
Error
You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
Can anyone please guide me which property has to be set.
Thanks,
Edited by: user4482525 on Apr 21, 2009 11:49 PM1> Go to the About this page* of the page and check whether page Root AM is extended or not?
If the page root AM is extended then delete the extension by jdr_util.deleteDocument or using functional Adminstartor
or
2> See in the LOV CO, if you are using the method "releaseApplicationModule"
If yes , then remove this.
Thanks,
Kumar -
Javascripts – check boxes not returning proper values
Hi All, not sure if this is the right place for this post... but here goes....
here's the url:
http://theexperience-exchange.co.uk/Mods_appleit.html
The contact form generates and e-mail. At the moment the results form the checkboxes look like this:
$1_month
$6_months
$12_months
You can see that they aren't working... If only one is checked, they ALL show up! I know there's some html and JS needed.... looking on the web is driving me round the bend.
Any simple solutions that anyone knows about would be greatly appreciated.
All the best, RPUnless you want them to have the ability to click 1, 2 or 3 of those boxes, it would be best to use a group of radio buttons. That way, only one can be clicked and only the value of the clicked button will return to you.
-
Dynamic PDF field value doesn't display XFDF value when no keyboard focus
I created a simple PDF (test.pdf) file (one text field), and saved it as a "static PDF". I created a XFDF file, and when I double-click on the XFDF file, the sample PDF opens and the field is populated.
Here's the problem: I save test.pdf as a "dynamic pdf" file. I double-click on the xfdf file and the pdf opens up, but the data is not displayed in the field. If you click on the field, the text appears. If you click out of the field, it disappears. If you update the field value, and navigate away, the value stays.
There is nothing but the field on the page, no scripts, no subforms, nothing.
Is this a bug in Adobe Reader 7.0? or is there some weird setting in Live Cycle Designer that I'm missing?
ThanksWhat is your xfdf file look like? Something like:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /> <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"><br /> <f href="file:///C|/test3.pdf" /><br /> <fields><br /> <field name="firstName"><br /> <value>William</value><br /> </field><br /> <field name="lastName"><br /> <value>White</value><br /> </field><br /> </fields><br /></xfdf>
-
Link on report returns no value when record containts '&' or '' (space)
I have created a report based on a sql script. I want to link this report to a form. With the standard LINK, the records that contain a space or '&' sign aren't linked to the form.
Is there a way to resolve this? I know that there is a way to add html in the sql script and set the column to display as HTML.
But what script do i need to manually set the link, and not using the standard Portal LINK?
Thx.Hi,
In the sql based report you can make a column a html link.
Here is an example
select ''||empno||'' empno,
ename
from scott.emp
The above query returns a html link which points to a chart and takes empno as a parameter.
Thanks,
Sharmila -
Incorrect $ Value when reversing a GR via MBST
I'm trying to reverse a GR that was received in on a schedule agreement with the wrong price($790/1000). However, the value that is posted to accounting is incorrect. It should be $790 but SAP calculates it at $793.82. I used MBST to do the reversal. The material is set to moving average price. How can I get the reversal to be valued at $790. Also, when I tried to do another GR and then tried to reverse it, the value went down to $793.74. Can anyone explain why? See PO history below. Thank you
GR 5000013882 0001 101 07/31/07 1,000 EA 790.00 USD
GR 5000013883 0001 102 07/31/07 1,000- EA 793.82- USD
GR 5000013884 0001 101 07/31/07 1,000 EA 790.00 USD
GR 5000013885 0001 102 07/31/07 1,000- EA 793.74- USDHere is another example that I recreated in our QAS system:
Step 1: Received in 1000 EA @ $790 per 1000 (wrong price)
Step 2: Received in 1000 EA @ $79 per 1000 (correct price)
Step 3: Ran MBST on mat doc 5000013888 (reversed step 1)
Is this correct? I would expect the value of the 102 to be $790 and not $428.27. Am I missing something?
GR 5000013888 0001 101 08/01/07 1,000 EA 790.00 USD
GR 5000013889 0001 101 08/01/07 1,000 EA 79.00 USD
GR 5000013890 0001 102 08/01/07 1,000- EA 428.27- USD -
Hide fields for activities when they are opened via Activity Monitor
Hi,
In CRM 5.0, my requirement was to hide a number of fields from activity display via transaction CRMD_ORDER & CIC0 (SAPGUI based transactions). I achieved it by using screen variant. I assigned my screen variant to different transactions (CRMD_ORDER, CIC0 etc.), and things were working fine.
But when I open activity monitoring report (transaction S_AE2_89000019), search for some activities and open an activity by double-clicking in the report, the hidden fields become visible. Although, the transaction being displayed in CRMD_ORDER.
I couldn't enable my transaction variant for transaction S_AE2_89000019, obviously because this is a report transaction which in turn opens activity when we double-click on the grid.
Any idea how to avoid these hidden fields being displayed via S_AE2_89000019?
Regards,
KaushalHey Kaushal,
Let me first inform you the following:
1) Transaction Variant are associatated to Dialog transactions only......Which means when u call report which eventually refers the same transaction even then the transaction variants is not called....
For the whole transaction variant to workout, you need CALL transaction " ..."....
2) The transaction S_AE2_89000019 is not a dialog transaction, its a parameter transaction which eventually calls a report AQZZ/SAPQUERY/SMCRM_REP_ACT1==
3)This report in turn uses the call to FM CRM_1O_CALL_FOREIGN which launches that crmd_order transaction screen and not crmd_order transaction..
You can enchance that report by creating a z report and inside that z report you can fulfill your requirement..
Inspire ppl by reqwarding..
Regards,
Anand... -
Click on a cell in formula doesn't return value, only text. why?
When doing a simple formula like =c4-c5 in one of my sheets, when i click on the cell, it doesn't return the value, only text.
What setting do i have enabled/disabled?
thanks
hamdogHI Hamdog,
What you are seeing is the formula that is in that cell.
The setting you have turned on is the first one in the bottom section of the General page of Numbers Preferences. In the English versions, it looks like this:
With the checkbox unchecked (as mine is), the formula would read:
=L10-P10
Column L is labeled "Tips", Column P is labeled "Lenka", Row 10 is labeled "9. 2. 2013"
To Copy and Paste the result, 462, click (once) on the cell and Copy, then click (once) on the cell where you want to paste the result and go Edit > Paste Values. This should be the seventh item (not including the separator line) in the Edit menu.
Regards,
Barry
Regards,
Barry
Maybe you are looking for
-
10gR2 (10.2.0.2) when using the following query , when i increase then n value the query takes much longer time although explain doesnt change.. can someone help? select * from SELECT Event.ID, Event.CATEGORY , Event.DDOMAIN , Event.NETWORK , Event.N
-
Disp+work.exe / dispatcher / running but Message Server unreacheble.
Hi! Can you please help me out of this proble? It is showing the status in WP Table as Ended instead of Wait. How can I fix this problem? Thanx a lot, Dean
-
How can i reposition the Home button?
I find the new position of the Home Button in FF4.0 (way over at the extreme right-hand side of the Navigation Toolbar) both inconvenient and annoying. It now requires a lot more mouse motion to reload the Home page. Is there anything I can do to "dr
-
i am totally confused with the 'new' revel; i put the free app on my iphone, but i do not use my phone for editing pics, i use a dell laptop w/older version of elements (7). how do i get my photos that are stored on my laptop to go to revel; i spoke
-
Displaying components dynamically.
Hi All, I don't know how to fix this problem in Flex. I'm having questions and its responses in combo box. The main question is Q1 and user selects response as 'Yes' then I need to display 3 more questions. Those are Q2,Q3,Q4. When user s