SAP Reports / Programs | Basis Components | Security | ABAP Authorization and Role Management(BC-SEC-AUT-PFC) SAP BC

SAPPROFC_NEW SAP ABAP Report - Roles: Mass generation of profiles







SAPPROFC_NEW is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program checks which activity groups still do not have a current authorization profile...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 SAPPROFC_NEW into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

SUPC - Role Profiles


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 SAPPROFC_NEW. "Basic submit
SUBMIT SAPPROFC_NEW AND RETURN. "Return to original report after report execution complete
SUBMIT SAPPROFC_NEW 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: TEXT_ON = Display role texts
Selection Text: SEL_SHT = Role
Selection Text: SEL_CRE = Last changed by
Selection Text: PRT_PFL = Also roles to be adjusted
Selection Text: PRT_GEN = Only roles that can be genertd
Selection Text: PRT_BER = Also roles w/o auth. data
Selection Text: PRT_ALL = All roles
Selection Text: CHG_ON = Creation and change date
Selection Text: AUTO_GEN = Generate automatically
Title: Roles: Mass generation of profiles
Text Symbol: 200 = No. of profiles:
Text Symbol: 201 = In the Background
Text Symbol: 202 = Online
Text Symbol: 203 = Generate authorization profiles
Text Symbol: 300 = Status
Text Symbol: 301 = Profile
Text Symbol: 302 = Created
Text Symbol: 303 = Modified
Text Symbol: 304 = StatusText
Text Symbol: T01 = Which roles do you want to output?
Text Symbol: T02 = Generate all profiles to be generated?
Text Symbol: T09 = Presentation in the list
Text Symbol: T11 = Additional restrictions
Text Symbol: 001 = Role
Text Symbol: 002 = Created
Text Symbol: 003 = Changed
Text Symbol: 004 = Text
Text Symbol: 005 = Status
Text Symbol: 006 = OK
Text Symbol: 007 = Warning
Text Symbol: 008 = Error
Text Symbol: 009 = Profile can be generated
Text Symbol: 010 = Roles with Non-Current Profiles
Text Symbol: 011 = Also Roles to Be Compared
Text Symbol: 012 = Also Roles with no Authorization Data
Text Symbol: 013 = All Roles
Text Symbol: 014 = Roles with Current Profiles for New Generation
Text Symbol: 015 = Display Data When Created and Changed





Text Symbol: 016 = Display Role Texts
Text Symbol: 100 = Profile generated
Text Symbol: 101 = No authorization data
Text Symbol: 102 = No profile name exists
Text Symbol: 103 = Data incorrect
Text Symbol: 104 = To Be Compared
Text Symbol: 106 = Selected for Generation
Text Symbol: 112 = No current profile


INCLUDES used within this REPORT SAPPROFC_NEW

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:

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = 'SUPC' EXCEPTIONS ok = 0 not_ok = 1 OTHERS = 2.

PRGN_POPUP_TO_DECIDE CALL FUNCTION 'PRGN_POPUP_TO_DECIDE' EXPORTING textline1 = text-200 textline2 = text text_option1 = text-201 text_option2 = text-202 titel = text-203 IMPORTING answer = antwort EXCEPTIONS OTHERS = 1.

SIMPLE_BATCH_JOB_SUBMIT CALL FUNCTION 'SIMPLE_BATCH_JOB_SUBMIT' EXPORTING program = 'SAPPROFG_NEW' EXCEPTIONS submit_failed = 1 OTHERS = 2.

PRGN_ACTIVITY_GROUP_MAINTAIN CALL FUNCTION 'PRGN_ACTIVITY_GROUP_MAINTAIN' EXPORTING activity_group = objid action = fcode EXCEPTIONS activity_group_not_found = 1 OTHERS = 2.

PGRN_CHECK_COLLECTIVE_AGR CALL FUNCTION 'PGRN_CHECK_COLLECTIVE_AGR' EXPORTING activity_group = objid EXCEPTIONS activity_group_does_not_exist = 1 activity_group_is_collective = 2 OTHERS = 3.

PRGN_ACTIVITY_GROUP_ENQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_ENQUEUE' EXPORTING activity_group = objid EXCEPTIONS foreign_lock = 1 transport_check_problem = 2 OTHERS = 3.

SUPRN_PROFILE_GENERATOR CALL FUNCTION 'SUPRN_PROFILE_GENERATOR' EXPORTING act_objid = objid maintain = maint EXCEPTIONS dialog_cancelled = 1 objid_not_found = 2 no_authority = 3 OTHERS = 4.

PRGN_ACTIVITY_GROUP_DEQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_DEQUEUE' EXPORTING activity_group = objid.

PRGN_CHECK_PROFILE_STATUS CALL FUNCTION 'PRGN_CHECK_PROFILE_STATUS' EXPORTING activity_group = mark-objid IMPORTING recommended_action = recommended_action profile_generation_necessary = profile_generation_necessary led_color = led_color invalid_activity_group = invalid_activity_group no_authorization_data = no_authorization_data profile_name = cv_agrprof EXCEPTIONS OTHERS = 1.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = iv_icon info = iv_tooltip IMPORTING result = xv_result EXCEPTIONS icon_not_found = 1 outputfield_too_short = 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 SAPPROFC_NEW or its description.