SAP Function Modules

ISU_INTERNET_USER_MANAGEMENT SAP Function module - Management of SU01 User! ...Create, Delete, ...







ISU_INTERNET_USER_MANAGEMENT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ISU_INTERNET_USER_MANAGEMENT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: EWEBIAC_COMMON
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISU_INTERNET_USER_MANAGEMENT - ISU INTERNET USER MANAGEMENT





CALL FUNCTION 'ISU_INTERNET_USER_MANAGEMENT' "Management of SU01 User! ...Create, Delete, ...
  EXPORTING
*   x_password =                " bapipwd       SAP User Password
*   x_alias =                   " bapialias-useralias  User Name Alias
    x_action =                  " bapiuid-action  Internet action ID
*   x_vkont =                   " ever-vkonto   Contract Account Number
*   x_gpart =                   " ekun-partner  Business Partner Number
*   x_new_password =            " bapipwd-bapipwd  New Password
*   x_username =                " bapibname-bapibname  User Name in User Master Record
  IMPORTING
    i_password =                " bapipwd
    i_logondata =               " bapilogond    User: Logon Data Transfer Structure
    i_defaults =                " bapidefaul    User: Fixed Values Transfer Structure
    i_snc =                     " bapisncu      SNC Attributes for a User
  EXCEPTIONS
    USER_NOT_EXISTS = 1         "               User Does Not Exist
    WRONG_PASS = 2              "               Incorrect Password
    USER_ALREADY_EXISTS = 3     "
    NO_USER_SENT = 4            "
    ACTION_NOT_FOUND = 5        "
    GENERAL_FAULT = 6           "
    SENT_TWO_USERS = 7          "
    ALIAS_ALREADY_EXISTS = 8    "
    CHANGE_NOT_ALLOWED = 9      "
    PASSWORD_NOT_ALLOWED = 10   "               New password not allowed
    WRONG_LOGIN_DATA = 11       "
    NO_PARTNER = 12             "
    USER_LOCKED = 13            "
    .  "  ISU_INTERNET_USER_MANAGEMENT

ABAP code example for Function Module ISU_INTERNET_USER_MANAGEMENT





The ABAP code below is a full code listing to execute function module ISU_INTERNET_USER_MANAGEMENT including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_i_password  TYPE BAPIPWD ,
ld_i_logondata  TYPE BAPILOGOND ,
ld_i_defaults  TYPE BAPIDEFAUL ,
ld_i_snc  TYPE BAPISNCU .

DATA(ld_x_password) = 'Check type of data required'.

DATA(ld_x_alias) = some text here

DATA(ld_x_action) = some text here

SELECT single VKONTO
FROM EVER
INTO @DATA(ld_x_vkont).


SELECT single PARTNER
FROM EKUN
INTO @DATA(ld_x_gpart).


DATA(ld_x_new_password) = some text here

DATA(ld_x_username) = some text here . CALL FUNCTION 'ISU_INTERNET_USER_MANAGEMENT' EXPORTING * x_password = ld_x_password * x_alias = ld_x_alias x_action = ld_x_action * x_vkont = ld_x_vkont * x_gpart = ld_x_gpart * x_new_password = ld_x_new_password * x_username = ld_x_username IMPORTING i_password = ld_i_password i_logondata = ld_i_logondata i_defaults = ld_i_defaults i_snc = ld_i_snc EXCEPTIONS USER_NOT_EXISTS = 1 WRONG_PASS = 2 USER_ALREADY_EXISTS = 3 NO_USER_SENT = 4 ACTION_NOT_FOUND = 5 GENERAL_FAULT = 6 SENT_TWO_USERS = 7 ALIAS_ALREADY_EXISTS = 8 CHANGE_NOT_ALLOWED = 9 PASSWORD_NOT_ALLOWED = 10 WRONG_LOGIN_DATA = 11 NO_PARTNER = 12 USER_LOCKED = 13 . " ISU_INTERNET_USER_MANAGEMENT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 11. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 12. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 13. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_x_password  TYPE BAPIPWD ,
ld_i_password  TYPE BAPIPWD ,
ld_x_alias  TYPE BAPIALIAS-USERALIAS ,
ld_i_logondata  TYPE BAPILOGOND ,
ld_x_action  TYPE BAPIUID-ACTION ,
ld_i_defaults  TYPE BAPIDEFAUL ,
ld_x_vkont  TYPE EVER-VKONTO ,
ld_i_snc  TYPE BAPISNCU ,
ld_x_gpart  TYPE EKUN-PARTNER ,
ld_x_new_password  TYPE BAPIPWD-BAPIPWD ,
ld_x_username  TYPE BAPIBNAME-BAPIBNAME .

ld_x_password = 'Check type of data required'.

ld_x_alias = some text here

ld_x_action = some text here

SELECT single VKONTO
FROM EVER
INTO ld_x_vkont.


SELECT single PARTNER
FROM EKUN
INTO ld_x_gpart.


ld_x_new_password = some text here

ld_x_username = some text here

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ISU_INTERNET_USER_MANAGEMENT or its description.