PFCG_ORGFIELD_CREATE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Profile Generator: Creating a New Org...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter PFCG_ORGFIELD_CREATE into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: TESTMODE = Test Mode
Selection Text: FIELD = Field
Title: Profile Generator: Create New Org. Level Field
Text Symbol: 114 = Transport Recording for Profiles of Changed Roles
Text Symbol: 113 = Transport Recording for Changed Roles
Text Symbol: 112 = Transport Recording for Changed Default Values
Text Symbol: 111 = Transport Recording for Organizational Level Definition
Text Symbol: 110 = Transport Recording
Text Symbol: 100 = Standard Selection
Text Symbol: 046 = Roles with New Organizational Level
Text Symbol: 045 = Application with New Organizational Level in SU24
Text Symbol: 031 = You are missing the following authorizations:
Text Symbol: 030 = Error
Text Symbol: 029 = Warning
Text Symbol: 028 = OK
Text Symbol: 027 = Status
Text Symbol: 026 = Field
Text Symbol: 025 = Value (To)
Text Symbol: 024 = Value (From)
Text Symbol: 019 = Locked By User
Text Symbol: 018 = Test Mode
Text Symbol: 017 = New Organizational Level
Text Symbol: 016 = Execution
Text Symbol: 015 = Client
Text Symbol: 014 = System
Text Symbol: 011 = Authorization
Text Symbol: 010 = Object
Text Symbol: 009 = Authorization field is not permitted as an organizational field:
Text Symbol: 008 = Collected Values from Role
Text Symbol: 007 = Processing Role
Text Symbol: 006 = Adjust Authorization Default Values (SU24 Data)
Text Symbol: 005 = Create Organizational Level Field
Text Symbol: 004 = Field is already an organizational level
Text Symbol: 002 = Field is not used in objects.
Text Symbol: 001 = Do not execute the report in client 000
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
PRGN_CHECK_SYSTEM_TYPE CALL FUNCTION 'PRGN_CHECK_SYSTEM_TYPE' EXCEPTIONS sap_system = 1.
SUSR_POPUP_LIST_WITH_TEXT CALL FUNCTION 'SUSR_POPUP_LIST_WITH_TEXT' EXPORTING text1 = ls_text list_column_headers = ls_col_head TABLES popup_list_7 = lt_err_out_d.
PRGN_ACTIVITY_GROUP_ENQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_ENQUEUE' EXPORTING activity_group =
-agr_name EXCEPTIONS foreign_lock = 1 transport_check_problem = 2 OTHERS = 3.
PRGN_ACTIVITY_GROUP_DEQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_DEQUEUE' EXPORTING activity_group =
-agr_name.
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = iv_icon info = iv_text IMPORTING result = xv_icon EXCEPTIONS OTHERS = 0.
F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'FIELD' dynpprog = 'PFCG_ORGFIELD_UPDATE' dynpnr = '1000' dynprofield = 'FIELD' value_org = 'S' TABLES value_tab = lt_xufield EXCEPTIONS OTHERS = 0.
AUTH_FIELD_GET_INFO CALL FUNCTION 'AUTH_FIELD_GET_INFO' EXPORTING fieldname = ps_usorg-field langu = sy-langu IMPORTING datel = ls_dfies-rollname lng = ls_dfies-outputlen rc = ld_subrc text = ls_dfies-fieldtext inttype = ls_dfies-inttype.
AUTH_FIELD_GET_INFO CALL FUNCTION 'AUTH_FIELD_GET_INFO' EXPORTING fieldname = ps_usorg-field langu = cd_langu_d "get german field text IMPORTING datel = ls_dfies-rollname lng = ls_dfies-outputlen rc = ld_subrc text = ls_dfies-fieldtext inttype = ls_dfies-inttype.
AUTH_FIELD_GET_INFO CALL FUNCTION 'AUTH_FIELD_GET_INFO' EXPORTING fieldname = ps_usorg-field langu = cd_langu_e "get english field text IMPORTING datel = ls_dfies-rollname lng = ls_dfies-outputlen rc = ld_subrc text = ls_dfies-fieldtext inttype = ls_dfies-inttype.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = pd_tx percentage = pd_succ.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'. "to avoid duprec on MySQL
SU2X_CHANGE_DOCUMENTS_WRITE CALL FUNCTION 'SU2X_CHANGE_DOCUMENTS_WRITE' EXPORTING i_table_name = 'USOBT_C' i_tcode = 'PFCG_ORGFIELD_NEW' TABLES it_old = lt_usobt_c_before it_new = lt_usobt_c EXCEPTIONS OTHERS = 0.
PRGN_ACTIVITY_GROUP_ENQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_ENQUEUE' EXPORTING activity_group =
-agr_name EXCEPTIONS foreign_lock = 1 transport_check_problem = 2 OTHERS = 3.
PRGN_ACTIVITY_GROUP_DEQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_DEQUEUE' EXPORTING activity_group =
-agr_name.
PRGN_1251_SAVE_FIELD_VALUES CALL FUNCTION 'PRGN_1251_SAVE_FIELD_VALUES' EXPORTING activity_group = ps_agr-agr_name TABLES field_values = lt_1251_all.
PRGN_1252_SAVE_ORG_LEVELS CALL FUNCTION 'PRGN_1252_SAVE_ORG_LEVELS' EXPORTING activity_group = ps_agr-agr_name TABLES org_levels = lt_1252.
PRGN_UPDATE_DATABASE CALL FUNCTION 'PRGN_UPDATE_DATABASE'.
PRGN_SET_ACTGROUP_TIMESTAMP CALL FUNCTION 'PRGN_SET_ACTGROUP_TIMESTAMP' EXPORTING activity_group = ps_agr-agr_name EXCEPTIONS activity_group_does_not_exist = 0 OTHERS = 0.
CALL FUNCTION 'DB_COMMIT'.
SUPRN_PROFILE_GENERATOR CALL FUNCTION 'SUPRN_PROFILE_GENERATOR' EXPORTING act_objid =
-agr_name maintain = 'S' EXCEPTIONS OTHERS = 0.
PRGN_ACTIVITY_GROUPS_TRANSPORT CALL FUNCTION 'PRGN_ACTIVITY_GROUPS_TRANSPORT' EXPORTING WITH_PROFILES = p_t_agrp * IMPORTING * REQUEST_NAME = TABLES ACTIVITY_GROUPS = lt_Agr_define EXCEPTIONS TRANSPORT_CANCELED_OR_PROBLEM = 1 ACTION_CANCELED = 2 ROLE_DOES_NOT_EXIST = 3 TRANSPORT_FAILED = 4 OTHERS = 5.
TR_REQUEST_CHOICE CALL FUNCTION 'TR_REQUEST_CHOICE' EXPORTING iv_suppress_dialog = ld_no_dialog iv_request_types = 'K' iv_request = ld_trkorr it_e071 = it_e071 it_e071k = it_e071k IMPORTING es_request = ls_request EXCEPTIONS invalid_request = 1 invalid_request_type = 2 user_not_owner = 3 no_objects_appended = 4 enqueue_error = 5 cancelled_by_user = 6 recursive_call = 7 OTHERS = 8.
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 PFCG_ORGFIELD_CREATE or its description.