cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_USER_CREATE1 Mobile and telephone

former_member199126
Participant
0 Kudos

Hi , There is a requirement to create users in SU01 by BAPI_USER_CREATE1. There we need to save the mobile and telephone number (without extension) of the user . The problem is when i give phone number in ADDRESS-TEl1_NUMBR(import param) , it is working fine.

But when i give the mobile phone number by filling ADDTEL-TELEPHONE,EXTENSION,TEL_NO(tried in multiple combinations) and set the R_3_USER to parammeters as 1,2,3 , i find it is making the problem in the ADDRESS-TEl1_NUMBR (ie the telephone number is not getting saved)

Help needed in saving both the mobile and telephone number of the user.

Accepted Solutions (1)

Accepted Solutions (1)

former_member222709
Contributor
0 Kudos

Hi Karthikeyan,

Please note that the ADDRESS structure is an import parameter and hence you can specify only 1 number (landline or mobile).

Now, to add both the numbers, there is a provision to use Table parameter 'ADDTEL'.

In this internal table you need to pass 2 lines of data,

1. with R_3_USER = ' ' or 1 for landline and the number, validity, etc.

2. with R_3_USER = 2 or 3 for mobile and the number, validity, etc.

Hope this is solution that you were looking for.

Regards,

Pranav.

former_member199126
Participant
0 Kudos

Thank you pranav.

My input was

ADDTEL-TELEPHONE (mobile) R_3_USER is 2 .

ADD-TELEPHONE (Landline) R_3_USER is 1.

It worked. But I woner why SAP has made this simple thing a bit complicated.

former_member222709
Contributor
0 Kudos

Hi Karthikeyan,

If you look at your problem from a smaller perspective then, this looks complicated.

But, if you look at it from the broader perspective, then, SAP has differentiated your contact details in 2 parts:

1. The Header Level details where you can enter the current updated data.

2. The Item data where you can keep on updating your contact data with validity and believe me, this, really helps in the long run. People change contact details frequently and hence, if you overwrite the earlier data, you might find it difficult to convince your consumer about some communication forwarded earlier.

Hope this solves your doubt.

Regards,

Pranav.

Answers (0)