Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 15, 2012 at 09:51 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2012 at 07:23 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded