SAP BBP_OM_USR_CREATE_EMPLOYEE_EXT Function Module for









BBP_OM_USR_CREATE_EMPLOYEE_EXT is a standard bbp om usr create employee ext SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 bbp om usr create employee ext FM, simply by entering the name BBP_OM_USR_CREATE_EMPLOYEE_EXT into the relevant SAP transaction such as SE37 or SE38.

Function Group: BBP_OM_USER
Program Name: SAPLBBP_OM_USER
Main Program: SAPLBBP_OM_USER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BBP_OM_USR_CREATE_EMPLOYEE_EXT 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 'BBP_OM_USR_CREATE_EMPLOYEE_EXT'"
EXPORTING
* IV_PARTNER = "
* IV_PURCH_GROUP_ID = "
* IV_USERNAME = "
* IV_USR_PASSWORD = "
* IV_USR_EMAIL = "
* IS_USR_DEFAULTS = "
* IS_USR_LOGONDATA = "
* IV_USER_EXISTS = ' ' "
* IV_INDIVIDUAL_WORKPLACE_ADDRES = ' ' "
IS_EMPLOYEE_DATA = "
IS_WORKPLACE_ADDRESS = "
IV_ORGUNIT_ID = "
* IV_POSITION_ID = "
* IV_POSITION_SHORT = "
* IV_POSITION_STEXT = "
* IV_IS_MGR_POSITION = "
* IV_MGR_ORGUNIT_ID = "

IMPORTING
ES_EMPLOYEE_ID = "
EV_POSITION_ID = "
EV_POSITION_SHORT = "
EV_POSITION_STEXT = "

EXCEPTIONS
CX_BBP_OM_INTERNAL_ERROR = 1 CX_BBP_OM_NOT_FOUND = 2 CX_BBP_OM_CONFLICT = 3 CX_BBP_OM_NO_AUTHORIZATION = 4
.



IMPORTING Parameters details for BBP_OM_USR_CREATE_EMPLOYEE_EXT

IV_PARTNER -

Data type: BU_PARTNER
Optional: Yes
Call by Reference: Yes

IV_PURCH_GROUP_ID -

Data type: HROBJID
Optional: Yes
Call by Reference: Yes

IV_USERNAME -

Data type: SYUNAME
Optional: Yes
Call by Reference: Yes

IV_USR_PASSWORD -

Data type: BAPIPWD
Optional: Yes
Call by Reference: Yes

IV_USR_EMAIL -

Data type: AD_SMTPADR
Optional: Yes
Call by Reference: Yes

IS_USR_DEFAULTS -

Data type: BAPIDEFAUL
Optional: Yes
Call by Reference: Yes

IS_USR_LOGONDATA -

Data type: BAPILOGOND
Optional: Yes
Call by Reference: Yes

IV_USER_EXISTS -

Data type: XFLAG
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_INDIVIDUAL_WORKPLACE_ADDRES -

Data type: XFLAG
Default: SPACE
Optional: Yes
Call by Reference: Yes

IS_EMPLOYEE_DATA -

Data type: BBPS_OM_USR_EMPLOYEE_DATA
Optional: No
Call by Reference: Yes

IS_WORKPLACE_ADDRESS -

Data type: BBPS_OM_USR_ADDR3
Optional: No
Call by Reference: Yes

IV_ORGUNIT_ID -

Data type: HROBJID
Optional: No
Call by Reference: Yes

IV_POSITION_ID -

Data type: HROBJID
Optional: Yes
Call by Reference: Yes

IV_POSITION_SHORT -

Data type: SHORT_D
Optional: Yes
Call by Reference: Yes

IV_POSITION_STEXT -

Data type: STEXT
Optional: Yes
Call by Reference: Yes

IV_IS_MGR_POSITION -

Data type: XFLAG
Optional: Yes
Call by Reference: Yes

IV_MGR_ORGUNIT_ID -

Data type: HROBJID
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for BBP_OM_USR_CREATE_EMPLOYEE_EXT

ES_EMPLOYEE_ID -

Data type: BBPS_ES_PERSON_ID
Optional: No
Call by Reference: Yes

EV_POSITION_ID -

Data type: HROBJID
Optional: No
Call by Reference: Yes

EV_POSITION_SHORT -

Data type: SHORT_D
Optional: No
Call by Reference: Yes

EV_POSITION_STEXT -

Data type: STEXT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CX_BBP_OM_INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

CX_BBP_OM_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

CX_BBP_OM_CONFLICT -

Data type:
Optional: No
Call by Reference: Yes

CX_BBP_OM_NO_AUTHORIZATION -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BBP_OM_USR_CREATE_EMPLOYEE_EXT 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_iv_partner  TYPE BU_PARTNER, "   
lv_es_employee_id  TYPE BBPS_ES_PERSON_ID, "   
lv_cx_bbp_om_internal_error  TYPE BBPS_ES_PERSON_ID, "   
lv_iv_purch_group_id  TYPE HROBJID, "   
lv_iv_username  TYPE SYUNAME, "   
lv_iv_usr_password  TYPE BAPIPWD, "   
lv_iv_usr_email  TYPE AD_SMTPADR, "   
lv_is_usr_defaults  TYPE BAPIDEFAUL, "   
lv_is_usr_logondata  TYPE BAPILOGOND, "   
lv_iv_user_exists  TYPE XFLAG, "   SPACE
lv_iv_individual_workplace_addres  TYPE XFLAG, "   SPACE
lv_ev_position_id  TYPE HROBJID, "   
lv_is_employee_data  TYPE BBPS_OM_USR_EMPLOYEE_DATA, "   
lv_cx_bbp_om_not_found  TYPE BBPS_OM_USR_EMPLOYEE_DATA, "   
lv_ev_position_short  TYPE SHORT_D, "   
lv_cx_bbp_om_conflict  TYPE SHORT_D, "   
lv_is_workplace_address  TYPE BBPS_OM_USR_ADDR3, "   
lv_iv_orgunit_id  TYPE HROBJID, "   
lv_ev_position_stext  TYPE STEXT, "   
lv_cx_bbp_om_no_authorization  TYPE STEXT, "   
lv_iv_position_id  TYPE HROBJID, "   
lv_iv_position_short  TYPE SHORT_D, "   
lv_iv_position_stext  TYPE STEXT, "   
lv_iv_is_mgr_position  TYPE XFLAG, "   
lv_iv_mgr_orgunit_id  TYPE HROBJID. "   

  CALL FUNCTION 'BBP_OM_USR_CREATE_EMPLOYEE_EXT'  "
    EXPORTING
         IV_PARTNER = lv_iv_partner
         IV_PURCH_GROUP_ID = lv_iv_purch_group_id
         IV_USERNAME = lv_iv_username
         IV_USR_PASSWORD = lv_iv_usr_password
         IV_USR_EMAIL = lv_iv_usr_email
         IS_USR_DEFAULTS = lv_is_usr_defaults
         IS_USR_LOGONDATA = lv_is_usr_logondata
         IV_USER_EXISTS = lv_iv_user_exists
         IV_INDIVIDUAL_WORKPLACE_ADDRES = lv_iv_individual_workplace_addres
         IS_EMPLOYEE_DATA = lv_is_employee_data
         IS_WORKPLACE_ADDRESS = lv_is_workplace_address
         IV_ORGUNIT_ID = lv_iv_orgunit_id
         IV_POSITION_ID = lv_iv_position_id
         IV_POSITION_SHORT = lv_iv_position_short
         IV_POSITION_STEXT = lv_iv_position_stext
         IV_IS_MGR_POSITION = lv_iv_is_mgr_position
         IV_MGR_ORGUNIT_ID = lv_iv_mgr_orgunit_id
    IMPORTING
         ES_EMPLOYEE_ID = lv_es_employee_id
         EV_POSITION_ID = lv_ev_position_id
         EV_POSITION_SHORT = lv_ev_position_short
         EV_POSITION_STEXT = lv_ev_position_stext
    EXCEPTIONS
        CX_BBP_OM_INTERNAL_ERROR = 1
        CX_BBP_OM_NOT_FOUND = 2
        CX_BBP_OM_CONFLICT = 3
        CX_BBP_OM_NO_AUTHORIZATION = 4
. " BBP_OM_USR_CREATE_EMPLOYEE_EXT




ABAP code using 7.40 inline data declarations to call FM BBP_OM_USR_CREATE_EMPLOYEE_EXT

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.

 
 
 
 
 
 
 
 
 
DATA(ld_iv_user_exists) = ' '.
 
DATA(ld_iv_individual_workplace_addres) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!