SAP Reports / Programs

RBUS4101 SAP ABAP Report - Program for object type BUS4101: EC user







RBUS4101 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 RBUS4101 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 RBUS4101. "Basic submit
SUBMIT RBUS4101 AND RETURN. "Return to original report after report execution complete
SUBMIT RBUS4101 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Program for object type BUS4101: EC user


INCLUDES used within this REPORT RBUS4101

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:

BBP_USER_GET_DETAIL CALL FUNCTION 'BBP_USER_GET_DETAIL' EXPORTING username = username IMPORTING * LOGONDATA = * DEFAULTS = address = address * COMPANY = * SNC = * LOCKSTATE = * CPADDRESS = * PASSWORD = * VERIFYPWD = * CPCENTRAL = * CPPERSON = * CPADTEL = * CPADFAX = * CPADTTX = * CPADTLX = * CPADSMTP = * CPADRML = * CPADX400 = * CPADRFC = * CPADPRT = * CPADSSF = * CPADURI = * CPADPAG = * CPAD_REM = * CPCOMREM = * CP_INHOUSE_ADDRESS = * BUPA_CENTRAL = TABLES * PARAMETER = * PROFILES = * ACTIVITYGROUPS = return = return * ADDTEL = * ADDFAX = * ADDTTX = * ADDTLX = * ADDSMTP = * ADDRML = * ADDX400 = * ADDRFC = * ADDPRT = * ADDSSF = * ADDURI = * ADDPAG = * ADDCOMREM = .

RH_GENERATE_POSITION_AT_ORG * CALL FUNCTION 'RH_GENERATE_POSITION_AT_ORG' * EXPORTING * IS_MANAGER = ISMANAGER * ACT_JOB = ACTJOB * ACT_ENDDA = ACTENDDA * ACT_BEGDA = ACTBEGDA * ACT_HOLDER_TYPE = ACTHOLDERTYPE * ACT_HOLDER = ACTHOLDER_OBJ * ACT_ORGUNIT = ACTORGUNIT * ACT_PLVAR = ACTPLVAR * IMPORTING * ACT_POSITION = ACTPOSITION * EXCEPTIONS * ORGUNIT_NOT_VALID = 1001 * HOLDER_NOT_VALID = 1002 * NO_ACTIVE_PLVAR = 1003 * ERROR_TO_GET_NEW_NUMBER = 1004 * ERROR_DURING_INSERT = 1005 * HOLDER_ALREADY_ASSIGNED = 1006 * OTHERS = 01.

BBP_USR01_DELETE CALL FUNCTION 'BBP_USR01_DELETE' EXPORTING user_id = userid user_type = usertype EXCEPTIONS error_deleting_user01 = 1001 OTHERS = 01.

BBP_GET_USER CALL FUNCTION 'BBP_GET_USER' EXPORTING userid = userid user_type = usertype IMPORTING userdata = userdata EXCEPTIONS user_not_found = 1001 OTHERS = 01.

RH_READ_OBJECT * CALL FUNCTION 'RH_READ_OBJECT' * EXPORTING * ENDDA = ENDDA * LANGU = LANGU * OINTERVAL = OINTERVAL * STORE = STORE * CHECK_STRU_AUTH = CHECKSTRUAUTH * READ_DB = READDB * PLVAR = PLVAR * OTYPE = OTYPE * OBJID = OBJID * BEGDA = BEGDA * ISTAT = ISTAT * REALO = REALO * IMPORTING * SHORT = SHORT * STEXT = STEXT * TISTAT = TISTAT * TLANGU = TLANGU * OBEG = OBEG * OEND = OEND * OSTAT = OSTAT * HISTO = HISTO * TABLES * EXISTENCE = EXISTENCE * EXCEPTIONS * NOT_FOUND = 1001 * OTHERS = 01.

BBP_CHANGE_PASSWORD_BY_WF CALL FUNCTION 'BBP_CHANGE_PASSWORD_BY_WF' EXPORTING userid = userid user_type = usertype EXCEPTIONS error_change_password = 1001 OTHERS = 01.

BBP_DELETE_PASSWORD CALL FUNCTION 'BBP_DELETE_PASSWORD' EXPORTING userid = userid user_type = usertype EXCEPTIONS user_not_exist_in_usr01 = 1001 OTHERS = 01.

SWX_GET_MANAGER CALL FUNCTION 'SWX_GET_MANAGER' TABLES actor_tab = actortab ac_container = accontainer EXCEPTIONS nobody_found = 1001 OTHERS = 01.

BBP_GET_USER CALL FUNCTION 'BBP_GET_USER' EXPORTING userid = userid user_type = usertype IMPORTING userdata = userdata EXCEPTIONS user_not_found = 1001 OTHERS = 01.

BBP_CREATE_USER_WF2 CALL FUNCTION 'BBP_CREATE_USER_WF2' EXPORTING end_date = enddate wfagent2 = wfagent2 pcdat_from = pcdatfrom pcdat_to = pcdatto approval1 = approval1 approval2 = approval2 loc_currcy = loccurrcy start_date = startdate user_id = userid orgunit_id = orgunitid data_bbp_usr01 = databbpusr01 * PASSWORD_P = PASSWORDP is_manager = ismanager orgunit_name = orgunitname orgunit_address = orgunitaddress TABLES it_role = itrole EXCEPTIONS OTHERS = 01.

BBP_GENERATE_PASSW_MAIL CALL FUNCTION 'BBP_GENERATE_PASSW_MAIL' EXPORTING requester = request.

BBP_READ_ATTRIBUTES CALL FUNCTION 'BBP_READ_ATTRIBUTES' EXPORTING iv_user = sy-uname iv_scenario = 'BBP' it_attr_list = lt_attr_list[] IMPORTING et_attr = gt_attrib_tab1[] EXCEPTIONS object_id_not_found = 1 no_attributes_requested = 2 attributes_read_error = 3 OTHERS = 4.

BBP_ALERT_INTERNAL_APP * CALL FUNCTION 'BBP_ALERT_INTERNAL_APP' * EXPORTING * msgid = 'BBP_WFL' * msgno = 25 * msgarg1 = lv_error_fb * msgarg2 = lv_error_place * msgarg3 = lv_sysubrc.

BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = object-key-username TABLES return = return addsmtp = mailadress.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datlo foreign_amount = help_data-approval_limit foreign_currency = help_data-currency local_currency = p_data-currency IMPORTING local_amount = help_data-approval_limit EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

SUSR_USER_AGR_ACTIVITYGR_GET CALL FUNCTION 'SUSR_USER_AGR_ACTIVITYGR_GET' EXPORTING user_name = object-key-username * WITH_TEXT = ' ' TABLES user_activitygroups = acvtivg * EXCEPTIONS * USER_NAME_NOT_EXIST = 1 * OTHERS = 2 .

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datlo foreign_amount = help_data-spending_limit foreign_currency = help_data-currency local_currency = ps_data-currency IMPORTING local_amount = help_data-spending_limit EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

BBP_PD_USER_BUDGET_ATTRIBUTES CALL FUNCTION 'BBP_PD_USER_BUDGET_ATTRIBUTES' EXPORTING IV_USER = object-key-username IMPORTING EV_USER_BUDGET_DEFINED = p_budget_data-user_budget EV_CURRENCY = p_budget_data-currency EV_USER_BUDGET_PERIOD = p_budget_data-period EXCEPTIONS USER_BUDGET_NOT_FOUND = 1 OTHERS = 2.

BBP_READ_ATTRIBUTES





CALL FUNCTION 'BBP_READ_ATTRIBUTES' EXPORTING iv_user = username iv_scenario = 'BBP' it_attr_list = lt_attr_list[] IMPORTING et_attr = gt_attrib_tab[] EXCEPTIONS object_id_not_found = 1 no_attributes_requested = 2 attributes_read_error = 3 OTHERS = 4.

BBP_ALERT_INTERNAL_APP CALL FUNCTION 'BBP_ALERT_INTERNAL_APP' EXPORTING msgid = 'BBP_WFL' msgno = 25 msgarg1 = lv_error_fb msgarg2 = lv_error_place msgarg3 = lv_sysubrc.

BBP_OM_DETERMINE_COMPANY CALL FUNCTION 'BBP_OM_DETERMINE_COMPANY' EXPORTING i_user_id = object-key-username IMPORTING e_orgunit = lv_company_org EXCEPTIONS no_company_found = 1 attribute_company_not_found = 2 no_partner_function_found = 3 no_business_partner_found = 4 OTHERS = 5.

BBP_USR01_DELETE CALL FUNCTION 'BBP_USR01_DELETE' EXPORTING user_id = lv_userid user_type = 'B2B_USER' EXCEPTIONS error_deleting_user01 = 01 OTHERS = 02.

SWX_GET_MANAGER CALL FUNCTION 'SWX_GET_MANAGER' TABLES actor_tab = lt_approver ac_container = lt_ac_container EXCEPTIONS nobody_found = 1 OTHERS = 2.

SWX_GET_MANAGER CALL FUNCTION 'SWX_GET_MANAGER' TABLES actor_tab = lt_approver ac_container = lt_ac_container EXCEPTIONS nobody_found = 1 OTHERS = 2.

BBP_PROCDOC_GETDETAIL CALL FUNCTION 'BBP_PROCDOC_GETDETAIL' EXPORTING i_object_id = lv_object_id i_object_type = lv_object_type IMPORTING e_header = ls_header.

BBP_PDH_WFL_WI_FROM_OBJECT_GET CALL FUNCTION 'BBP_PDH_WFL_WI_FROM_OBJECT_GET' EXPORTING iv_object_id = lv_object_id iv_object_type = lv_object_type iv_guid = lv_guid iv_only_active_wi = 'X' IMPORTING ev_workitem_id = lv_main_wi_id.

BBP_PDH_WFL_MAINWI_FROM_WI_GET CALL FUNCTION 'BBP_PDH_WFL_MAINWI_FROM_WI_GET' EXPORTING iv_workitem_id = lv_workitem_id IMPORTING ev_main_workitem_id = lv_main_wi_id.

BBP_WFL_DIN_APPR_CONTAINER_GET CALL FUNCTION 'BBP_WFL_DIN_APPR_CONTAINER_GET' EXPORTING IV_MAIN_WORKITEM_ID = lv_main_wi_id IV_READ_FROM_DB = 'X' IMPORTING EV_WI_CONTAINER_HANDLE = lv_wi_container_handle TABLES ET_APPROVAL_AGENTS = approverlist.

BBP_WFL_DIN_APPR_BY_RULE_GET CALL FUNCTION 'BBP_WFL_DIN_APPR_BY_RULE_GET' EXPORTING IV_TASK = task IV_OBJECT_ID = lv_object_id IV_GUID = lv_guid IV_OBJECT_TYPE = lv_object_type IV_ACTUAL_APPROVAL_INDEX = 0 IMPORTING EV_NO_FURTHER_APPROVAL = lv_no_further_approval.

SUSR_USER_AGR_ACTIVITYGR_GET CALL FUNCTION 'SUSR_USER_AGR_ACTIVITYGR_GET' EXPORTING user_name = lv_user_name with_text = ' ' TABLES user_activitygroups = acvtivg.

BBP_PDH_WFL_WI_FROM_OBJECT_GET CALL FUNCTION 'BBP_PDH_WFL_WI_FROM_OBJECT_GET' EXPORTING IV_OBJECT_ID = lv_object_id iv_object_type = 'BUS2121' IMPORTING EV_WORKITEM_ID = lv_wi_id.

BBP_WFL_DIN_APPR_CONTAINER_GET CALL FUNCTION 'BBP_WFL_DIN_APPR_CONTAINER_GET' EXPORTING IV_MAIN_WORKITEM_ID = lv_wi_id IV_READ_FROM_DB = 'X' IMPORTING EV_ACTUAL_APPROVAL_INDEX = lv_help_appr_index TABLES ET_APPROVAL_AGENTS = lt_approval_agents.

BBP_PDH_WFL_WI_FROM_OBJECT_GET CALL FUNCTION 'BBP_PDH_WFL_WI_FROM_OBJECT_GET' EXPORTING IV_OBJECT_ID = lv_object_id iv_object_type = 'BUS2121' IMPORTING EV_WORKITEM_ID = lv_wi_id.

BBP_WFL_DIN_APPR_CONTAINER_GET CALL FUNCTION 'BBP_WFL_DIN_APPR_CONTAINER_GET' EXPORTING IV_MAIN_WORKITEM_ID = lv_wi_id IV_READ_FROM_DB = 'X' IMPORTING EV_ACTUAL_APPROVAL_INDEX = lv_help_appr_index TABLES ET_APPROVAL_AGENTS = lt_approval_agents.

SAP_WAPI_FORWARD_WORKITEM CALL FUNCTION 'SAP_WAPI_FORWARD_WORKITEM' EXPORTING workitem_id = lv_workitem_id user_id = lv_new_processor_user.



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 RBUS4101 or its description.