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

BBP_USER_COMPARE SAP ABAP Report - Program BBP_USERCOMPARE







BBP_USER_COMPARE 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_USER_COMPARE 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_USER_COMPARE. "Basic submit
SUBMIT BBP_USER_COMPARE AND RETURN. "Return to original report after report execution complete
SUBMIT BBP_USER_COMPARE 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: UNAME = User Name
Selection Text: UGRP = User group for auth. check
Selection Text: SELENDDA = Selection period: end
Selection Text: SELBEGDA = Selection period: start
Title: Program BBP_USERCOMPARE
Text Symbol: USR = User
Text Symbol: UGR = User group
Text Symbol: PNR = Person
Text Symbol: NM2 = Name (Employee)
Text Symbol: NM1 = Name (User)
Text Symbol: FRM = From
Text Symbol: DTO = To
Text Symbol: BUP = Employee
Text Symbol: 009 = Do Not Delete User
Text Symbol: 008 = Delete User
Text Symbol: 007 = Delete SU01 User?
Text Symbol: 006 = Do Not Delete Position
Text Symbol: 005 = Delete position
Text Symbol: 004 = Also Delete Employee's Position
Text Symbol: 003 = (Overview)
Text Symbol: 002 = Without Employee
Text Symbol: 001 = No users found


INCLUDES used within this REPORT BBP_USER_COMPARE

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' IMPORTING act_plvar = gv_plvar EXCEPTIONS no_active_plvar = 1 OTHERS = 2.

RH_DETERMINE_ORG_OBJID CALL FUNCTION 'RH_DETERMINE_ORG_OBJID' EXPORTING act_search_string = searchstring org_object_type = 'CP' IMPORTING org_object_objid = marked_tab-person EXCEPTIONS OTHERS = 0.

BBP_CENTRALPERSON_GET CALL FUNCTION 'BBP_CENTRALPERSON_GET' EXPORTING iv_person_id = marked_tab-person IMPORTING ev_bu_partner_guid = lv_employee_guid ev_username = lv_bname EXCEPTIONS no_central_person = 1 no_business_partner = 2 no_id = 3 OTHERS = 4.

BUPA_NUMBERS_GET CALL FUNCTION 'BUPA_NUMBERS_GET' EXPORTING iv_partner_guid = lv_employee_guid IMPORTING ev_partner = lv_partner_id.

BBP_OM_USR_ASSIGN_USER CALL FUNCTION 'BBP_OM_USR_ASSIGN_USER' EXPORTING is_employee_id = ls_employee_id iv_username = marked_tab-bname iv_cut_assignments = 'X' iv_commit_flag = space.

BBP_OM_USR_UPDATE_DATABASE CALL FUNCTION 'BBP_OM_USR_UPDATE_DATABASE'.

BBP_CENTRALPERSON_GET CALL FUNCTION 'BBP_CENTRALPERSON_GET' EXPORTING iv_username = marked_tab-bname IMPORTING ev_person_id = lv_person_id ev_bu_partner_guid = lv_employee_guid EXCEPTIONS OTHERS = 0.

BUPA_NUMBERS_GET CALL FUNCTION 'BUPA_NUMBERS_GET' EXPORTING iv_partner_guid = lv_employee_guid IMPORTING ev_partner = lv_partner_id.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = 'Planstelle des Mitarbeiters ebenfalls löschen?'(004) iv_quickinfo_button_1 = 'Planstelle löschen'(005) iv_quickinfo_button_2 = 'Planstelle nicht löschen'(006) IMPORTING answer = lv_answer EXCEPTIONS OTHERS = 0.

BBP_OM_USR_ASSIGN_USER CALL FUNCTION 'BBP_OM_USR_ASSIGN_USER' EXPORTING is_employee_id = ls_employee_id iv_cut_assignments = 'X' iv_commit_flag = space.

BBP_OM_USR_UPDATE_DATABASE CALL FUNCTION 'BBP_OM_USR_UPDATE_DATABASE'.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = 'SU01-Benutzer löschen?'(007) iv_quickinfo_button_1 = 'Benutzer löschen'(008) iv_quickinfo_button_2 = 'Benutzer nicht löschen'(009) display_cancel_button = space IMPORTING answer = lv_answer EXCEPTIONS OTHERS = 0.

BAPI_USER_DELETE CALL FUNCTION 'BAPI_USER_DELETE' EXPORTING username = marked_tab-bname TABLES return = lt_return.

BBP_OM_USR_DELETE_EMPLOYEE_EXT CALL FUNCTION 'BBP_OM_USR_DELETE_EMPLOYEE_EXT' EXPORTING iv_employee_guid = lv_employee_guid iv_username = marked_tab-bname iv_delete_position = lv_position_delete.

SUSR_USER_SELECT_VIA_USERGROUP CALL FUNCTION 'SUSR_USER_SELECT_VIA_USERGROUP' EXPORTING ugroup = ugrp us_seark = uname TABLES users = iusr.

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' IMPORTING act_plvar = plvar EXCEPTIONS no_active_plvar = 1 OTHERS = 2.

RH_READ_INFTY_1001_EXT CALL FUNCTION 'RH_READ_INFTY_1001_EXT' EXPORTING subty = 'A208' begda = begda endda = endda TABLES i1001 = relat OBJECTS = users EXCEPTIONS OTHERS = 0.

RH_READ_INFTY_1001 CALL FUNCTION 'RH_READ_INFTY_1001' EXPORTING subty = 'B207' begda = begda endda = endda TABLES i1001 = relat_2 OBJECTS = cpersons EXCEPTIONS OTHERS = 0.

RH_READ_INFTY_1001_EXT





CALL FUNCTION 'RH_READ_INFTY_1001_EXT' EXPORTING subty = 'A208' begda = sy-datum endda = '99991231' TABLES i1001 = relat OBJECTS = users EXCEPTIONS OTHERS = 0.

RH_READ_INFTY_1001 CALL FUNCTION 'RH_READ_INFTY_1001' EXPORTING subty = 'B207' begda = sy-datum endda = '99991231' TABLES i1001 = relat_2 OBJECTS = cpersons EXCEPTIONS OTHERS = 0.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = gv_plvar otype = 'US' realo = realo ointerval = space check_stru_auth = space read_db = read_db IMPORTING short = short stext = stext EXCEPTIONS not_found = 1 OTHERS = 2.

BUP_PARTNER_DESCRIPTION_GET CALL FUNCTION 'BUP_PARTNER_DESCRIPTION_GET' EXPORTING i_partner = iv_partner IMPORTING e_description_name = lv_pname EXCEPTIONS OTHERS = 1.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = 'BP' EXCEPTIONS ok = 0 not_ok = 4.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = 'SU01' EXCEPTIONS ok = 0 not_ok = 4.



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