FM to get mail id from user name
Hi
I need a Function module which will give me the mail id for the
user name .
Regards
Vikas
Edited by: vikas maurya on Jan 18, 2008 7:33 AM
Hi vikas,
better use the below Bapi s.
BAPI_USER_GET_DETAIL (4.6C) use both.
Here is the code from 4.6C
CALL FUNCTION 'SUSR_USER_READ'
EXPORTING
USER_NAME = USERNAME_
WITH_TEXT =
IMPORTING
USER_LOGONDATA = LOGONDATA_
USER_DEFAULTS = DEFAULTS_
USER_ADDRESS = USER_ADDRESS
TABLES
USER_PARAMETERS = PARAMETER
EXCEPTIONS
USER_NAME_NOT_EXISTS = 1
INTERNAL_ERROR = 2
OTHERS = 3.
and them
CALL FUNCTION 'ADDR_PERS_COMP_GET_COMPLETE'
EXPORTING
ADDRNUMBER = USER_ADDRESS-ADDRNUMBER
ADDRHANDLE =
PERSNUMBER = USER_ADDRESS-PERSNUMBER
pershandle =
IMPORTING
ADDR3_COMPLETE = ADDR3_COMPLETE
EXCEPTIONS
PARAMETER_ERROR = 1
ADDRESS_NOT_EXIST = 2
PERSON_NOT_EXIST = 3
INTERNAL_ERROR = 4
OTHERS = 5.
ADDR3_COMPLETE contains e-mail address.
kindly reward me if it's ok
Similar Messages
-
I get an intermittent " Cannot Get Mail. The user name or Password is incorrect" I haven,t touch any settings. Any ideas?
That usually means that the mail server is busy and rejects the Mail App's request for a mail update.
-
HT1222 Can not get mail . The user name or passwords is incorrect
Can not get e-mail . It states that the user name is incorrect and pass-word is incorrect
Did you check your settings and make sure that the information is correct?
-
Sometimes when I am not at home and I Am trying to get my email I get a pop up that says "cannot get mail because user I'd or password is incorrect". But they are entered correctly.
My Gmail account did the same to me, I had just downloaded pictures from my camera memory card and thought it had something to do with it. My son said his Gmail has done this to him off and on for three years. He said he just leaves it and comes back a hour or more later and it works fine. I tried to change my password and got my whole Gmail account snarled up in a big fur ball!! It took two weeks to get it all straightened out. I will try leaving it alone next time or just start a new account. Good Luck
-
I just upgraded to iPhone 5 and every time I try to.add my aol email account, I get the message that my username or password is incorrect so I can't get mail. Does anyone know how to fix this?
Go here, do this:
http://www.google.com/accounts/DisplayUnlockCaptcha
See if that fixes things. -
My gmail account has stopped working on my iphone, saying the user name or password is incorrect, but both are definitely correct. I have tried restarting the phone, deleting the account and setting it up again, and checked that I can log on through safari. It had been working fine until this morning! Any ideas how to fix this?
Turn off 2 step authentication on your gmail account in a browser. It should work fine afterwards.
-
TS3899 Cannot get mail because gmail user name or password is incorrect
Need assistance in trying to get mai
Try going to settings then go to mail and then click sign out and then sign back in. That may work.
-
HT2623 Can not get mail. Message, user name or password is incorrect
I have not changed settings but have this message and I cannot receive my emails
Did you check your settings and make sure that the information is correct?
-
We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.
About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone. Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc. This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...
-
My phone will not send emails even after the IOS 8 update. I continue to get the message of user name or password for my email are incorrect.
Did you try to delete the mail account, restart the phone and add the mail account again?
iOS: Setting up an email account
This article provides morse tips, if you can't connect or you receive an error in Mail. -
Subject
My gmail says I cannot recieve mail because my user name or password sure not correct they are correct what should I dosetting>mail>click on your gmail account>delete account> add account> re add your gmail account
-
Is it possible to get the active directory user name of the person
Is it possible to get the active directory user name of the person who is logged onto a windows computer, when they are using your coldfusion site, the same way asp pages can do that?
SECOND TRY TO POST THIS REPLY
You have to turn on "Windows Integrated Security" and turn off anonymous login in the IIS web server, once that condition is met the cgi.AUTH_USER variable will be popluated with the domain/username of the user logged into the cient computer.
If the user is using a windows browser on a windows client computer this will be done silently in the background. Otherwise they will normally be presented with a login dialog box by the browser. -
Set NameFor unit of work & get the Uow from that name
Hai
Its possible to give Name (or Id ) For Unit of Work after some time get Back the unit of work from the Name (or Id ) its possible
Eg
UnitOfWork uow = .
uow.setName(sample);
after some time
get the unit of work from the name (sample)
Thanks in advanceHello Chris,
Thanks for the quick response
In our Application I have the two layers Layer1 & layer2
In the Layer1 I did the following work
1) Business validation
2) Make the call to layer2 (for Insert, update, delete, fetch)
In layer2 I have TopLink coding (for Insert, update, delete, fetch)
I want to do Insert, update, delete in single Transaction.
Each and every operation (Insert, update & delete) is separate call to Layer2 from Layer1
So I must start the transaction (UOW) in Layer1 to commit and rollback.
For Eg: To delete the object, I need the UOW in layer2. But the UOW present on layer 1
unitOfWork.deleteObject(employee);
According to our Framework specification we dont want to transfer the unit of work from Layer1 to Layer2.
So I plan to give the name for UOW & get the UOW from that Name
Give the solution for this ..
Thanks in advance -
How to get/capture log-on user name on PC (work station)
Hi,
Colud anyone give me how to get/capture log-on user name on my PC (work station)?
I need to get the infomation by using a function module.
Kind regards,
HisaoHi,
TH_USER_INFO shows me terminal ID, IP address and other information. howerver it does't show me log-on user name of OS.
Kind regards,
Hisao -
How to get project GUID from project name?
How to get project GUID from project name in Campaign mgmt ?
hello,
have a look in table CGPL_PROJECT.
regards,
Frédéric
Maybe you are looking for
-
AirDrop has stopped working after upgrading to Yosemite
Hi , We have recently upgraded OS to Yosemite and after that our AirDrop stopped working .. could some one please help us to get this fixed . So far we have enabled/checked the Bluetooth sharing , file sharing etc but that did not help . Any help is
-
Dates getting wiped from Service Plan line item
Hi All, We are currently facing an issue in the dates management on the service contracts. When we create a service contract and without saving if we change start date at the header we come across the following issues 1) Date rule gets wipes out from
-
Add/Delete elements from viewcontaineruielement in web dynpro abap
Dear all, Please let me know how to Add/Delete elements from viewcontaineruielement in web dynpro abap? I have copied a viewcontaineruielement from another program and now i dont want few elements from that viewcontaineruielement in my view. Please g
-
Storing scanned documents in 10g
Dear Colleagues I have 2 questions:- (1) I want to know how to configure webutility to retrieve a scanned document in an Oracle 10g Form (what is the the format of this scanned document). (2) What will be the data type of the field in the database th
-
Connected to wifi but no internet connection
I have a very peculiar issue: since today at noon, my ipad stopped to work on the wireless network. lauching safari will result in a connection error, same for mail or for any other app that uses internet, but the wifi is alive and kicking, i have an