SAP Reports / Programs | Supplier Relationship Management | Enterprise Buyer | Enterprise/Business Partner Management(SRM-EBP-ADM) SAP SRM

BBP_UM_EXAMPLE_EMPLO_CREATION SAP ABAP Report - Program for Creating Employees with User Account







BBP_UM_EXAMPLE_EMPLO_CREATION is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter BBP_UM_EXAMPLE_EMPLO_CREATION into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT BBP_UM_EXAMPLE_EMPLO_CREATION. "Basic submit
SUBMIT BBP_UM_EXAMPLE_EMPLO_CREATION AND RETURN. "Return to original report after report execution complete
SUBMIT BBP_UM_EXAMPLE_EMPLO_CREATION VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_USERID = D .
Selection Text: P_TITLE = D .
Selection Text: P_TEL_NO = D .
Selection Text: P_TEL_EX = D .
Selection Text: P_ROOM = D .
Selection Text: P_PTO = D .
Selection Text: P_PFROM = D .
Selection Text: P_PCNUM = D .
Selection Text: P_PCINS = D .
Selection Text: P_NUMF = D .
Selection Text: P_LNAME = D .
Selection Text: P_INH_ML = D .
Selection Text: P_GTZONE = D .
Selection Text: P_GTO = D .
Selection Text: P_GFROM = D .
Selection Text: P_FNAME = D .
Selection Text: P_FLOOR = D .
Selection Text: P_FLNAME = D .
Selection Text: P_FAX_NO = D .
Selection Text: P_FAX_EX = D .
Selection Text: P_E_MAIL = D .
Selection Text: P_DATEF = D .
Selection Text: P_C_TYPE = D .
Selection Text: P_CONTRY = D .
Selection Text: P_BUILD = D .
Selection Text: P_ACA1 = D .
Selection Text: USE_EXT = With Position and User
Selection Text: P_ROLE = User Role
Selection Text: P_PASSWD = Password
Selection Text: P_ORGID = Object ID Department
Selection Text: P_MANAG = Manager Flag
Title: Program for Creating Employees with User Account
Text Symbol: 010 = Program for Creating Employees with User Account


INCLUDES used within this REPORT BBP_UM_EXAMPLE_EMPLO_CREATION

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' EXPORTING set_default_plvar = 'X' IMPORTING act_plvar = g_plvar EXCEPTIONS no_active_plvar = 1 OTHERS = 2.

BBP_OM_USR_CREATE_POSITION CALL FUNCTION 'BBP_OM_USR_CREATE_POSITION' EXPORTING iv_orgunit_id = p_orgid iv_is_mgr_position = p_manag iv_commit_flag = space IMPORTING ev_position_id = gv_position_id CHANGING cv_short = lv_short cv_stext = lv_stext.

BBP_OM_USR_CREATE_EMPLOYEE CALL FUNCTION 'BBP_OM_USR_CREATE_EMPLOYEE' EXPORTING is_employee_data = gs_emplo_data iv_commit_flag = space IMPORTING es_employee_id = gs_employee_id.

BBP_OM_USR_CREATE_USER CALL FUNCTION 'BBP_OM_USR_CREATE_USER' EXPORTING iv_username = p_userid iv_password = p_passwd iv_email = p_e_mail is_logondata = gs_usr_logondata is_defaults = gs_usr_defaults is_employee_data = gs_emplo_data.

BBP_OM_USR_UPDATE_DATABASE CALL FUNCTION 'BBP_OM_USR_UPDATE_DATABASE'.

BBP_OM_USR_ASSIGN_POSITION CALL FUNCTION 'BBP_OM_USR_ASSIGN_POSITION' EXPORTING iv_position_id = gv_position_id iv_orgunit_id = p_orgid iv_begda = sy-datum iv_endda = '99991231' iv_cut_assignments = 'X' iv_commit_flag = space.

BBP_OM_USR_ASSIGN_EMPLOYEE CALL FUNCTION 'BBP_OM_USR_ASSIGN_EMPLOYEE' EXPORTING is_employee_id = gs_employee_id iv_position_id = gv_position_id is_employee_data = gs_emplo_data iv_begda = sy-datum iv_endda = '99991231' iv_cut_assignments = 'X' iv_commit_flag = space.

BBP_OM_USR_ASSIGN_USER CALL FUNCTION 'BBP_OM_USR_ASSIGN_USER' EXPORTING is_employee_id = gs_employee_id iv_username = p_userid iv_cut_assignments = 'X' iv_commit_flag = space.

BBP_OM_USR_UPDATE_DATABASE CALL FUNCTION 'BBP_OM_USR_UPDATE_DATABASE'.

BBP_OM_USR_UPDATE_WORKPL_ADDR CALL FUNCTION 'BBP_OM_USR_UPDATE_WORKPL_ADDR' EXPORTING iv_employee_guid = gs_employee_id-guid iv_orgunit_id = p_orgid is_address = gs_address iv_commit_flag = space.

BBP_OM_USR_UPDATE_DATABASE CALL FUNCTION 'BBP_OM_USR_UPDATE_DATABASE'.

BBP_OM_USR_CREATE_EMPLOYEE_EXT CALL FUNCTION 'BBP_OM_USR_CREATE_EMPLOYEE_EXT' EXPORTING is_employee_data = gs_emplo_data is_workplace_address = gs_address iv_orgunit_id = p_orgid * IV_POSITION_ID = * IV_POSITION_SHORT = * IV_POSITION_STEXT = iv_is_mgr_position = p_manag iv_username = p_userid iv_usr_password = p_passwd iv_usr_email = p_e_mail is_usr_defaults = gs_usr_defaults is_usr_logondata = gs_usr_logondata * IV_IS_MANAGER = IMPORTING es_employee_id = ls_employee_id ev_position_id = lv_position_id ev_position_short = lv_position_short ev_position_stext = lv_position_stext.

BBP_OM_USR_UPDATE_DATABASE CALL FUNCTION 'BBP_OM_USR_UPDATE_DATABASE'.

BBPU_USER_ACTGROUPS_ASSIGN_ZBV CALL FUNCTION 'BBPU_USER_ACTGROUPS_ASSIGN_ZBV' EXPORTING username = p_userid send_notification = space TABLES activitygroups = gt_actgroups2 return = lt_return.

BBP_UM_UI_SAVE_PCARD CALL FUNCTION 'BBP_UM_UI_SAVE_PCARD' EXPORTING is_select_line = gs_pcard_usrdata it_pcard = gs_pcard_data iv_new_pcard = 'X' EXCEPTIONS card_creation_error = 1 card_change_error = 2 OTHERS = 3.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name BBP_UM_EXAMPLE_EMPLO_CREATION or its description.