cancel
Showing results for 
Search instead for 
Did you mean: 

How to get user's Email address defined in SU01-communication in WD Java.

Former Member
0 Kudos

Hi all,

How to get user's Email address which is defined in SU01- communication, in WD Java?

i have used the following code

IWDClientUser clientUser = WDClientUser.getLoggedInClientUser();
	  if(clientUser != null) {
		  IUser user = clientUser.getSAPUser();
		  if(user != null) {
			  String eMailAddress = user.getEmail();
		  }
	  }

but it returns the email address which is maintained in the portal.

but for the same user no email address is defined in SU01- Communication.

my requirement is to check whether email is maintained in SU01 or not.

so i need code to get mail id of a user which is defined in SU01- communication

any suggestions will be rewarded high.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

MaheshChandra
Active Contributor
0 Kudos

Hi

standard BAPI available for user information in su01 : BAPI_GET_USER_DETAILS

create model based on this BAPI in nwds, give portal user name as input and execute, you will get email id from su01.

(creating model and executing, you will find good articles in sdn)

regards,

mahesh.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Madhu,

I think you need an RFC for this purpose, where you pass the user Id and the corresponding email address will be returned from R3.

Please sit down with the ABAP team to discuss the requirement.

Hope it helps.

Sattam.