Getting the NT user name (Windows user name)
Hello,
I am trying to get the windows user name in ABAP program but
I can not find any useful function.
Thanks in advance,
Eitan Iluzz.
you can use the following code to get the windows logged on user
data: username type string .
CALL METHOD cl_gui_frontend_services=>get_user_name
CHANGING
user_name = username
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4 .
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
others = 3 .
Similar Messages
-
Getting the active role of an user in a trigger
Hello forum!!
I've been searching to find out if and how I can get the active role of an user when programming a trigger.
Unfortunately I did not succeed in finding some information about this. Is it possible? If yes, how?
Thanks for any hint regarding this topic.
SebastianThanks for the answers. This helped a lot but it does not seem to work within my triggers.
CREATE OR REPLACE TRIGGER InscriptionsInsert BEFORE INSERT OR UPDATE ON Inscriptions
FOR EACH ROW
DECLARE
active_role VARCHAR2(11);
BEGIN
SELECT role INTO active_role FROM session_roles WHERE role != 'CONNECT';
IF :new.ni < 1000 AND active_role = 'ind_service' THEN
RAISE(ABORT, 'le service individuelle ne peut pas faire les inscriptions pour des sportifs');
END IF;
IF :new.i >= 1000 AND active_role = 'eq_service' THEN
RAISE(ABORT, 'le service equipe ne peut pas faire les inscriptions pour des equipes');
END IF;
END;
CREATE OR REPLACE TRIGGER ResultatsInsert BEFORE INSERT OR UPDATE ON Resultats
FOR EACH ROW
DECLARE
forme VARCHAR2(12);
active_role VARCHAR2(11);
BEGIN
SELECT forme INTO forme FROM Epreuves WHERE nEpreuve = :new.nEpreuve;
SELECT role INTO active_role FROM session_roles WHERE role != 'CONNECT';
IF forme = 'individuelle' AND active_role = 'eq_service'
RAISE(ABORT, 'le service equipe ne peut pas enregistre des resultats pour des sportifs');
END IF;
IF forme = 'equipe' AND active_role = 'ind_service'
RAISE(ABORT, 'le service individuelle ne peut pas enregistre des resultats pour des equipes');
END IF;
END; -
Function module for getting the created or changed by user
hi ,
iam using the t-code ob 52
inthat iam i not getting the created or changed by user
so is there any function module which gives created r changed
by user .
it shhould take the input as t-code and it has to display
the created r changed by user ........
pls help ..........In OB52, in menu : Utilities, change log. This use Database log analysis. Try calling transaction [SCU3|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=scu3&adv=false&sortby=cm_rnd_rankvalue].
SCU3 transaction call report [RSTBHIST|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=rstbhist&adv=false&sortby=cm_rnd_rankvalue] which call [RSVTPROT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=rsvtprot&adv=false&sortby=cm_rnd_rankvalue]. You may also use FM like [DBLOG_EVAL_CALL_FOR_SEL_OBJECT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=dblog_eval_call_for_sel_object&adv=false&sortby=cm_rnd_rankvalue] or [DBLOG_EVAL_CALL_FOR_SEL_CHAP|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=dblog_eval_call_for_sel_chap&adv=false&sortby=cm_rnd_rankvalue], perform some where-used on RSVTPROT.
Regards -
JTable problem : how to get the last value entered by user + event lost
Hi all,
I have 2 problems with Jtable class.
1 => To get the last value entered by user in a cell,
it seems that we must change the selected cell.
That is to say we can only have the previous cell's value.
Is there a simple way to get the current value of any cell ?
2 => To resolve the problem i store the values of each cell in a vector and i intercept keyboard event (!)
BUT, when i do a double click with the mouse on the Jtable, i loose keyboard events. Then, i can't intercept them.
Is it a bug of swing or am i following a wrong way ?
Thanks by anticipation for your help.You have to fire the "TableCellUpdatedEvent"
and override the getCellEditorValue in TableCellEditor to return the current value -
Query to get the Discoverer privileges granted to user / responsibility
Hello,
I am discussing the oracle applications EUL here.
I am interested to know the privileges granted to a user / responsibility from backend or any option with "eulapi" utility which can be used to list the same.
Which EUL table should I query to get the privileges granted to a user / responsinility?
Thanks,
AjayHi Ajay,
Which EUL table should I query to get the privileges granted to a user / responsinility?Go through this link you wil get what your looking for.
Re: List of Users in Admin layer under Privileges
Hope this helps you.
Best Wishes,
Kranthi. -
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
How to get the mail item opened window?
Hi,
I need to get the window of the opened mail.
Within the mailItem.Open() event tried to get the Application.ActiveExplorer() but it returns the main outlook window.
From the load of the addin tried as follows, but hwndSource always returns null.
activeWindow = _mailItem.Application.ActiveWindow()
((Microsoft.Office.Interop.Outlook.ExplorerEvents_10_Event)activeWindow).Deactivate += MyEvent
public void MyEvent()
System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcesses();
foreach (System.Diagnostics.Process process in processes)
if (process.MainWindowTitle.StartsWith (_mailItem.Subject))
IntPtr handle = process.MainWindowHandle;
System.Windows.Interop.HwndSource hwndSource = System.Windows.Interop.HwndSource.FromHwnd(handle);
System.Windows.Window window = hwndSource.RootVisual as System.Windows.Window;
Any suggestions to get the mail item opened window? Please help.
VS2010 C# with Outlook 2007.Hi Damian,
When the Open event is fired, the Inspector object
is initialized but not yet displayed.
You can handle the
NewInspector event of the Inspectors class which is fired whenever a new inspector window is
opened, either as a result of user action or through program code. Then the
Activate event of the Inspector class is fired, when an inspector becomes the active window,
either as a result of user action or through program code. -
how to install when I keep getting the following massage on windows 7 64 bit with or with firewall on and with or with virus protection on here is post " This installation package could net be opened verify that the package exist and that you can access" same when trying to install quicktime
I'd first try downloading an installer from the Apple website using a different web browser:
http://www.apple.com/quicktime/download/
If you use Firefox instead of IE for the download (or vice versa), do you get a working installer? -
I can't Start, Uninstall of Install new iTunes. I'm getting the same error message: "Window Installer Service could not be accessed". No other programs having similar problem. Any suggestions how to fix it?
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) (not for XP) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
tt2 -
How to decrypt data when you can't get the private key in Windows?
I'm very confuse. My english is poor, but I try to say my question clearly.
When browser connects to a https website which needs client certificate to authenticate the identity, the browser will send client certificate to web server.
Then the web server will use the certificate to encrypt some data and send it to browser.
Then broswer should have private key to decrypt that.
But as I know, if I install a pfx format personal certificate, I can set can't export private key, which means you can't get the private key to use it. So how can
the browser decrypt the data without private key?
By the way, what is CSP, use CSP's interface can we use CryptoAPI
to decrypt data without private key?Answer for question is "you cant"..
"How to decrypt data when you can't get the private key in Windows?"
Read more
http://msdn.microsoft.com/en-us/library/windows/desktop/aa387460(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/bb427432(v=vs.85).aspx
http://technet.microsoft.com/en-us/library/dd277320.aspx
http://en.wikipedia.org/wiki/Public-key_cryptography -
I am also unable to get the 551L working with Windows 8 Beta 1. Any advice?
I am also unable to get the 551L working with Windows 8 Beta 1 and Mac OS X 10.8 Mountain Lion Developer Preview 2. Any Advice?
It should be noted that I was previously in those Windows Beta's and I am also a member of both Microsoft Technet (Retail Subscription), and all 3 Apple Developer Programs (IOS, Mac and Safari), which is the reason why I am running Microsoft Windows 8 Beta 1 on 2 of my 3 Dell's (the oldest one has Microsoft Windows XP Service Pack 3 and Microsoft Office 2003 on it, which is the PC that I am using the 551L on), and the Mid Year 2010 Apple Mac Mini has Mac OS X 10.8 Mountain Lion Server Edition on it (something that I am technically am NOT supposed to be talking about here due to my NDA so this will be the last time I mention it here (as you can see I am known for being the type of Computer Nerd that loves Alpha and Beta Testing)! :-)
-
When I try to start iTunes, I get the message "program can't start because MSVCR80.dll is missing from your computper. Try reinstalling the program." When I try reinstalling, I get the message Error 7 (Windows Error 126)
Can you help me?????Hello Charleen,
It sounds like you are unable to reinstall iTunes because of this error message 7. I recommend the troublehsooting found in the following article that mentions that error named:
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
"iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows Error 126)”
Follow these steps to resolve the issue:
Check for .dll files
Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
Reboot your computer.
Note: Depending on your operating system, you may only have one of the listed paths.
Uninstall and reinstall iTunes
Uninstall iTunes and all of its related components.
Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
Re-download and reinstall iTunes 11.1.4.
Thank you for using Apple Support Communities.
Take care,
Sterling -
Can't get iTunes to install. When I download it, and go through installation, I get the message, Error 2, windows 2; can't find Apple Application Support, uninstall and reinstall iTunes. When I do that I get the same message again. Thank you for your assistance.
Let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
http://www.apple.com/itunes/download/
Download and install the free trial version of WinRAR:
http://www.rarlab.com/
Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
Does it install properly for you?
If instead you get an error message during the install, let us know what it says. (Precise text, please.) -
HELP!! How to get the position of active windows in the desktop
How to get the position of active windows in the desktop
You mean, active windows other than the program you're running, or windows the program puts there? And a real desktop (like where MyComputer is), or a desktop pane?
-
I recently tried to downlad the itunes update but it would not install properly and now I have no access to itunes and all my music. I get the following messages - Error7(windows error 26) and This applicaiton has failed to start because MSVCR80.dll was not found. Can anyone help me fix this issue. I have a Hewlett Packard Computer and Vista. Thanks
Similar issues here.
I purchased five movies for download and having nothing but problems getting them downloaded. I keep receiving error messages and the download stops and I have to restart it, just to get another minute worth of download with each restart. Now Apple has my money and I have nothing. -
I keep getting the error message "Restore Windows" When I click an icon on the desktop on my Mac Book Pro, it is not reaponding.
While holding down the option key, select "Go>Library" from the Finder. Navigate to the Preferences folder and you'll find "com.apple.finder.plist". Delete that file and restart.
Good luck,
Clinton
Maybe you are looking for
-
Unable to capture in 5.0
Since updating to Tiger and installing FCP 5.0, I have been unable to see video in the batch/capture window. I use decklink. I get video when using Decklink's control device, and they say that the problem is FCP. I've deleted the 5.0 prefs folder.
-
S10-e keyboard not working :x
ok, at the moment, I'm using on screen keyboard as a result of this; After a while, slowly some of my keys malfunctioned until 2 nights ago, all keys didn't work. What should I do. Please help
-
Windows backup wont start on windows 7 home premium
I have been trying to start my windows backup utility on windows 7. It starts to the loading screen that says Starting windows backup, wait while windows backup starts. It stays on this screen indefinitely as i have left the machine run for days on e
-
HttpServlet server and client concept
Hi, All I am confused about HttpServelet now.Please give me a clear concept. I have a client(httpconnection) and servlet. At client side: There are two thread to call the same servlet to get some data from servlet. It likes: public Thread1extends Thr
-
Safari is iPad's biggest problem
Ipad is supposed to be your internet gateway in the house and is a perfect format for that but I am getting very frustrated with Safari's limitations (iPad version). Many sites that work fine on my macbook are not working on the iPad, pages with scro