SAP Reports / Programs | Business Package for Manager Self-Service (FI) | Portal Content | Business Package for Manager Self-Service (FI)(EP-PCT-MGR-CO) SAP EP

FPB_GENERATE_PROFILE_CCMD SAP ABAP Report - Generate Profiles from Cost Center Master Record







FPB_GENERATE_PROFILE_CCMD 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 FPB_GENERATE_PROFILE_CCMD 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 FPB_GENERATE_PROFILE_CCMD. "Basic submit
SUBMIT FPB_GENERATE_PROFILE_CCMD AND RETURN. "Return to original report after report execution complete
SUBMIT FPB_GENERATE_PROFILE_CCMD 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: GD_KOKRS = Controlling Area
Selection Text: KNOTEN = Hierarchy Node
Selection Text: PROF_ID = Profile ID
Selection Text: USER = User
Title: Generate Profiles from Cost Center Master Record
Text Symbol: 001 = Profiles were generated and added to user master record
Text Symbol: 002 = Error while generating profile
Text Symbol: 004 = No users found


INCLUDES used within this REPORT FPB_GENERATE_PROFILE_CCMD

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:

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING restriction = restrict.

CALL_PROFILE_GENERATION CALL FUNCTION 'CALL_PROFILE_GENERATION' EXPORTING id_prefix = 'FPB' "#EC NOTEXT id_co_area = gd_kokrs id_profile_id = prof_id CHANGING it_resparea = lt_user_resparea EXCEPTIONS add_gen_error = 1 OTHERS = 2.

BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = id_username IMPORTING address = ls_address TABLES return = lt_message.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = ls_csks-kostl IMPORTING output = ld_kostl.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = setclass_cca shortname = gd_shortname kokrs = gd_kokrs IMPORTING setid = ld_hier EXCEPTIONS no_co_area_specified = 1 illegal_setclass = 2 OTHERS = 3.

COTB_HIERACHY_RESOLVE CALL FUNCTION 'COTB_HIERACHY_RESOLVE' EXPORTING value = ld_value hierachy = ld_hier field = field_cca kokrs = gd_kokrs IMPORTING group = ld_group EXCEPTIONS top_node_reached = 1 wrong_initialization = 2 wrong_hierarchy_name = 3 set_not_imported = 4 value_not_in_group = 5 group_not_found = 6 start_group_not_found = 7 OTHERS = 8.



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