SAP BAPI_USER_INTERNET_CREATE Function Module for Create a user in the Internet









BAPI_USER_INTERNET_CREATE is a standard bapi user internet create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create a user in the Internet processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for bapi user internet create FM, simply by entering the name BAPI_USER_INTERNET_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SU_USER
Program Name: SAPLSU_USER
Main Program: SAPLSU_USER
Appliation area: S
Release date: 13-Aug-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_USER_INTERNET_CREATE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'BAPI_USER_INTERNET_CREATE'"Create a user in the Internet
EXPORTING
* ALIAS = "Internet user alias
* ROOM_NO = "Room or Apartment Number
* INHOUSE_MAIL = "Internal Mail Postal Code
* TEL1_NO = "First telephone no.: dialling code+number
* TEL1_EXT = "First telephone no.: extension
* FAX = "BAPI Reference Structure for Addresses (Contact Person)
* REF_USER = "Reference user for rights
* USERID = "User Name
* PASSWORD = "Password
* PASSWORD2 = "Repeat password
* FIRSTNAME = "Last name
* LASTNAME = "Last name
* E_MAIL = "Internet mail (SMTP) address
* TITLE_ACA = "Academic title: written form
* BUILDING = "Building (number or code)

IMPORTING
LASTNAME_ = "Last name

TABLES
RETURN = "Return Structure
.



IMPORTING Parameters details for BAPI_USER_INTERNET_CREATE

ALIAS - Internet user alias

Data type: USREFUS-USERALIAS
Optional: Yes
Call by Reference: No ( called with pass by value option)

ROOM_NO - Room or Apartment Number

Data type: BAPIADDR3-ROOM_NO
Optional: Yes
Call by Reference: No ( called with pass by value option)

INHOUSE_MAIL - Internal Mail Postal Code

Data type: BAPIADDR3-INHOUSE_ML
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEL1_NO - First telephone no.: dialling code+number

Data type: BAPIADDR3-TEL1_NUMBR
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEL1_EXT - First telephone no.: extension

Data type: BAPIADDR3-TEL1_EXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

FAX - BAPI Reference Structure for Addresses (Contact Person)

Data type: BAPIADDR3-FAX_EXTENS
Optional: Yes
Call by Reference: No ( called with pass by value option)

REF_USER - Reference user for rights

Data type: BAPIREFUS
Optional: Yes
Call by Reference: No ( called with pass by value option)

USERID - User Name

Data type: BAPIBNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

PASSWORD - Password

Data type: BAPIPWD
Optional: Yes
Call by Reference: No ( called with pass by value option)

PASSWORD2 - Repeat password

Data type: BAPIPWD
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIRSTNAME - Last name

Data type: BAPIADDR3-FIRSTNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

LASTNAME - Last name

Data type: BAPIADDR3-LASTNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_MAIL - Internet mail (SMTP) address

Data type: BAPIADDR3-E_MAIL
Optional: Yes
Call by Reference: No ( called with pass by value option)

TITLE_ACA - Academic title: written form

Data type: BAPIADDR3-TITLE_ACA1
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUILDING - Building (number or code)

Data type: BAPIADDR3-BUILDING_P
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_USER_INTERNET_CREATE

LASTNAME_ - Last name

Data type: BAPIBNAME
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_USER_INTERNET_CREATE

RETURN - Return Structure

Data type: BAPIRET2
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_USER_INTERNET_CREATE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_alias  TYPE USREFUS-USERALIAS, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_lastname_  TYPE BAPIBNAME, "   
lv_room_no  TYPE BAPIADDR3-ROOM_NO, "   
lv_inhouse_mail  TYPE BAPIADDR3-INHOUSE_ML, "   
lv_tel1_no  TYPE BAPIADDR3-TEL1_NUMBR, "   
lv_tel1_ext  TYPE BAPIADDR3-TEL1_EXT, "   
lv_fax  TYPE BAPIADDR3-FAX_EXTENS, "   
lv_ref_user  TYPE BAPIREFUS, "   
lv_userid  TYPE BAPIBNAME, "   
lv_password  TYPE BAPIPWD, "   
lv_password2  TYPE BAPIPWD, "   
lv_firstname  TYPE BAPIADDR3-FIRSTNAME, "   
lv_lastname  TYPE BAPIADDR3-LASTNAME, "   
lv_e_mail  TYPE BAPIADDR3-E_MAIL, "   
lv_title_aca  TYPE BAPIADDR3-TITLE_ACA1, "   
lv_building  TYPE BAPIADDR3-BUILDING_P. "   

  CALL FUNCTION 'BAPI_USER_INTERNET_CREATE'  "Create a user in the Internet
    EXPORTING
         ALIAS = lv_alias
         ROOM_NO = lv_room_no
         INHOUSE_MAIL = lv_inhouse_mail
         TEL1_NO = lv_tel1_no
         TEL1_EXT = lv_tel1_ext
         FAX = lv_fax
         REF_USER = lv_ref_user
         USERID = lv_userid
         PASSWORD = lv_password
         PASSWORD2 = lv_password2
         FIRSTNAME = lv_firstname
         LASTNAME = lv_lastname
         E_MAIL = lv_e_mail
         TITLE_ACA = lv_title_aca
         BUILDING = lv_building
    IMPORTING
         LASTNAME_ = lv_lastname_
    TABLES
         RETURN = lt_return
. " BAPI_USER_INTERNET_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_USER_INTERNET_CREATE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single USERALIAS FROM USREFUS INTO @DATA(ld_alias).
 
 
 
"SELECT single ROOM_NO FROM BAPIADDR3 INTO @DATA(ld_room_no).
 
"SELECT single INHOUSE_ML FROM BAPIADDR3 INTO @DATA(ld_inhouse_mail).
 
"SELECT single TEL1_NUMBR FROM BAPIADDR3 INTO @DATA(ld_tel1_no).
 
"SELECT single TEL1_EXT FROM BAPIADDR3 INTO @DATA(ld_tel1_ext).
 
"SELECT single FAX_EXTENS FROM BAPIADDR3 INTO @DATA(ld_fax).
 
 
 
 
 
"SELECT single FIRSTNAME FROM BAPIADDR3 INTO @DATA(ld_firstname).
 
"SELECT single LASTNAME FROM BAPIADDR3 INTO @DATA(ld_lastname).
 
"SELECT single E_MAIL FROM BAPIADDR3 INTO @DATA(ld_e_mail).
 
"SELECT single TITLE_ACA1 FROM BAPIADDR3 INTO @DATA(ld_title_aca).
 
"SELECT single BUILDING_P FROM BAPIADDR3 INTO @DATA(ld_building).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!