HOW TO SAP

Step by step manual guide with screenshot for Basis, Security Authorization & Abap

Popular Posts

  • HOW TO SAP - Create RFC TCPIP connection and Register Server Program with RFCEXEC
    Execute SM59 Expand TCP/IP connections > Click Create Enter the following details. Ensure connection type is 'T' Save a...
  • HOW TO CHECK SIZE OF A CLIENT Note 118823 - CC-ADMIN: Size of a client
    SAP NOTE 118823 - CC-ADMIN: Size of a client Symptom To be able to schedule client copies and also for system planning, the size of clien...
  • How to change SAP script - SE71
    1. Firstly open SE71. Enter the Form name. 2. Click change 3. Click on Page window 4. You can now change the attributes. 5. O...

Blog Archive

  • ▼  2019 (14)
    • ▼  July (4)
      • How to change SAP script - SE71
      • STMS – Transport management system. How to do tran...
      • SAP Basis – Daily check list
      • SAP R/3 Tips and Tricks – Cheat Sheet for Intervie...
    • ►  June (8)
    • ►  May (2)
  • ►  2018 (1)
    • ►  January (1)
  • ►  2017 (65)
    • ►  December (16)
    • ►  November (18)
    • ►  October (26)
    • ►  September (1)
    • ►  August (3)
    • ►  June (1)
  • ►  2014 (1)
    • ►  August (1)
  • ►  2013 (2)
    • ►  December (1)
    • ►  March (1)
  • ►  2012 (5)
    • ►  June (3)
    • ►  February (2)
  • ►  2011 (88)
    • ►  October (3)
    • ►  September (8)
    • ►  August (8)
    • ►  July (4)
    • ►  June (14)
    • ►  May (22)
    • ►  April (11)
    • ►  March (14)
    • ►  February (2)
    • ►  January (2)
  • ►  2010 (1)
    • ►  October (1)
  • ►  2009 (17)
    • ►  October (12)
    • ►  September (1)
    • ►  August (3)
    • ►  June (1)
  • ►  2008 (20)
    • ►  January (20)
2013-2017. Powered by Blogger.
HOW TO SAP

Useful SAP Security Tcodes

October 15, 2017   Authorization, codes, security, tcodes, transaction,

Security - General tcodes

SM20
Analysis of Security Audit Log
SM19
Security Audit Configuration
STRUSTSSO2
Trust Manager for Logon Ticket
STRUST
Trust Manager
SECSTORE
Administration of Secure Storage
SM20N
Analysis of Security Audit Log
SM18
Reorganize Security Audit Log
CERTREQ
Certificate enrollment
SLAW
License Administration Workbench
WSSPROFILE
Edit Web Services Security Profile
LICENSE_ADMIN
License Administration Workbench
SM20_OLD
Security Audit Log Evaluation (Old)
CERTMAP
Certificate Assignment

Security - Audit Information System tcodes

RSPFPAR
Display profile parameter
RSUSR200
List of Users per Login Date
RSSCD100
Display Change Documents
RSUSR003
Check standard user passwords
RSCSAUTH
Maintain/Restore Authorization Group
RSUSR000
Currently Active Users
SECR
Audit Information System
RSEIDOC2
IDoc List
RSRFCTRC
RFC Trace
RSTBHIST
Table history
RSAU_SELECT_EVENTS
Display Audit Events (Batch Proc.)
RSABAPSC
Statistical Prog. Anal. for Search
RSRFCCHK
RFC destinations with logon data
RSGWLST
Accessible Gateways
RSSTAT20
Performance Analysis: Single Stats
RSSTAT10
Performance Analysis: Workload Anal.
RSWBO040
Search for Objects in Requests/Tasks
RSUSR200_PWDCHG180
Unchanged for 180 Days
RSWBOSSR
RSWBOSSR
RSPFPAR_LOGIN
Logon Rules
RSRSDEST
System Overview Output
RSINFO00_BCE_AUD_MOD
Customer Exits
RSSCD150
Display Change Documents
RSUSR007
List Users
SM30V_DDAT
Call of SM30 for View V_DDAT
RSAUDITC_BCE
Display Locked Transactions
0REP
"Start of program
RSWBO004
Set System Change Option
RBDAUD01
Statistical Evaluations for AL
SM30V_BRG
Call of SM30 for View V_BRG
RSABTPGP
Authorization Groups
RSABAUTH
Transfer of Authorization Groups
RSUSR002_AUDIT_OSCL
Users who can call OS commands
RSAUDITM_BCE_TPLGA
Transport Monitor ALOG
RSUSR002_AUDIT_UCC
Update Company Codes
RSTMSCON_VERBOSE
Verbose
RSPO0055
Installation Check: Spool
RSPFPAR_GATEWAY
SAP Gateway
RSUSR200_INITPASS
Users with Initial Password
RSPFPAR_SAPSTAR
Hardcoded SAP*
RSPFPAR_SYSLOG
Syslog Parameters
RSUSR002_AUDIT_RFC
Users who can execute RFC functions
RSAUDITM_BCE_TPLGS
Transport Monitor SLOG
RSTMSDIC
TMS: Display Configuration
RSPFPAR_SNC
SNC
RSWBO040_AUDIT_PA
Requests with PA tables
RSUSR002_AUDIT_ABAP
Users with ABAP Authorization
RSPFPAR_TABLEREC
Table Recording
RSAUDITM_BCE_IMPO
Import Overview
RSUSR002_AUDIT_UAP
Update Accounting Periods
RSSNCSRV
SNC Status of Application Server
RSPFPAR_AUTH
Authorization All
RSSWOUSR
List of Internet users
RSPFPAR_PROFGEN
Profile Generator
RSUSR200_UNUSED30
Not Logged On for 30 Days
RSPFPAR_SPOOL
Spool Parameters
RSWBO040_AUDIT_USR
Requests with USR tables
RSUSR002_AUDIT_CTS
Users who can use CTS
RSPFPAR_TABLESTAT
Table Access Statistics
RSAUDITM_BCE_SYSO
System Overview
RSUSR002_AUDIT_UCA
Update Chart of Accounts
RSTMSAMO
TMS: Alert Viewer
RSPFPAR_CALLSYSTEM
Call System
RSRFCSTX
RFC statistics
RSPFPAR_RFC
Remote Function Call
RSPFPAR_STATISTICS
Workload Statistics
RSWBO050
Analyze Objects in Orders/Tasks
RDDTDDAT_BCE
Check Table Logging

Security - Directory tcodes

LDAP
LDAP Customizing and Test
RSLDAPSYNC_USER
LDAP Synchronization of Users
LDAPMAP
Maintain LDAP Attribute Assignment
LDAPLOG
Analyze LDAP Log

Security - Secure Network Communications tcodes

SNC0
SNC Access Control List: Systems
SNC1
Generate SNC name for user
SNC4
Check canonical SNC names

Security - Secure Store and Forward tcodes

SSFA
SSF: Set Application Parameters
PSEMAINT
PSE Management
O07C
Obsolete transaction

Security - User and Authorization Management tcodes

SU01
User Maintenance
PFCG
Role Maintenance
SU53
Evaluate Authorization Check
SUIM
User Information System
SU24
Auth. Obj. Check Under Transactions
SU3
Maintain Users Own Data
SU10
User Mass Maintenance
SLICENSE
Administer SAP Licenses
SU25
Upgrade Tool for Profile Generator
SU21
Maintain Authorization Objects
PFUD
User Master Data Reconciliation
SU22
Auth. Object Usage in Transactions
SU01D
User Display
USMM
Customer measurement
SU56
Analyze User Buffer
SCUL
Central User Administration Log
SCUM
Central User Administration
SMEN
Session Manager Menu Tree Display
SU03
Maintain Authorizations
SE97
Maint. transaction call authorizatn
SUPC
Role Profiles
SU02
Maintain Authorization Profiles
SU20
Maintain Authorization Fields
SUGR
Maintain User Groups
SCUA
Central User Administration
SCUG
Transfer Users
SU2
Maintain Own User Parameters
SU52
Maintain Own User Parameters
SUCOMP
User company address maintenance
SU0
Maintain Own Fixed User Values
RSSCD100_PFCG
Change Documents for Role Admin.
SU1
Maintain Own User Address
S_BCE_68001425
Roles by Complex Criteria
S_BCE_68001398
Users According to Complex Criteria
WP3R
Follow-Up Processes for Portal Roles
S_BCE_68001400
Users According to Complex Criteria
SU12
Mass Changes to User Master Records
SU51
Maintain Own User Address
SU26
Upgrade Tool for Profile Generator
S_BCE_68001439
For user
SU50
Own data
S_BCE_68002041
Executable for Role
S_BCE_68001430
Compare Users
S_BCE_68001420
Roles by Transaction Assignment
MENU_MIGRATION
Menu Migration into New Hierarchy
S_BCE_68001402
With Unsuccessful Logons
SU99
Call report RSUSR008
SDMO
Dynamic Menu (old)
S_BCE_68001401
Critical Combinations of Auth.
S_BCE_68001423
Roles by Authorization Values
SU01_NAV
User maint. to include in navigation
S_BCE_68001429
Transactions for User
ROLE_CMP
Compare Roles
AUTH_SWITCH_OBJECTS
Switch on/off authorizations
SUUM
Global User Manager
S_BCE_68001426
Transactions for User
SUUMD
Display User Administration
SUPO
Maintain org. levels
S_BCE_68001422
Roles by Authorization Object
S_BCE_68001393
Users by address data
S_BCE_68001777
Compare Roles
RSSCD100_PFCG_USER
For Role Assignment
SU_REFUSERVARIABLE
Maintain reference user variables
LICENSE_ATTRIBUTES
Maintain License Attributes of Roles
S_BCE_68001399
Users According to Complex Criteria
SM30_SSM_VAR
Maintain Table SSM_VAR
S_BCE_68001397
Users According to Complex Criteria
SU55
Call the Session Manager menus
SU98
Call Report RSUSR008
S_BCE_68001441
For authorizations
S_BCE_68001409
Profiles According to Complex Crit.
S_BCE_68001440
For profiles
S_BCE_68001418
Roles by Role Name
SUGRD
Display user groups
SM30_SSM_RFC
Maintain Table SSM_RFC
SU24_CHECK
Switch Off Authorizations: Test
PERSREG
Personalization object
S_BCE_68001394
Users According to Complex Criteria
SM30_SSM_CUST
Maintain Table SSM_CUST
SCUC
CUA: Synchronize company addresses
S_BCE_68001405
Profiles by Authorization Name
S_BCE_68001419
Roles by User Assignment
AUTH_DISPLAY_OBJECTS
Display Active Authorization Objects
S_BCE_68001413
Auth. Objects According to Complex
S_BCE_68001427
Transactions for User
SUIM_OLD
Call AUTH Reporting Tree (Info Sys.)
S_BCE_68001395
Users According to Complex Criteria
S_BCE_68001396
Users According to Complex Criteria
S_BCE_68001431
Compare Profiles
SROLE
Export User Roles to XML doc.
S_BCE_68001412
Auth. Objects According to Complex
SUPO_PREPARE
Maintain Organizational Levels
S_BCE_68001406
Profiles by Values
S_BCE_68001410
Auth. Objects According to Complex
S_BCE_68001414
Auth. According to Complex Criteria
S_BCE_68001407
Profiles by Changes
S_BCE_68001408
Profiles by Roles
S_BCE_68001432
Compare Authorizations
S_BCE_68001416
Authorizations by Changes
S_BCE_68001436
Where-used lists
S_BCE_68001421
Roles by Profile Assignment
S_BCE_68001433
Comparisons
S_BCE_68001437
Where-used lists
S_BCE_68001434
Where-used lists
S_BCE_68001403
With Critical Authorizations
S_BCE_68001438
Where-used lists
S_BCE_68001767
By Profile Name or Text
S_BCE_68001411
Auth. Objects According to Complex
S_BCE_68001415
Authorizations by Values
S_BCE_68001435
Where-used lists
S_BCE_68001404
Profiles by Contained Profiles
S_BCE_68001424
Roles by Change Data
S_BCE_68001428
Transactions for User
S_BIE_59000199
Report cross-system information
SM30_PRGN_CUST
Maintain Table SSM_CUST
SM30_VAL_AKH
Maintain Table VAL_AKH
S_BCE_68002111
RSUSR008_009_NEW
SALE_CUA
Display ALE Customizing for CUA
SPERS_MAINT
Personalization object processing
SUGR_NAV
Maintain User Groups
S_BIE_59000198
Report cross-system information
SU83
Archive authorization docs.
SPERS_TEST
Test personalization objects
SU87
Read Authorization Change Documents

Continue Reading

Excel - remove duplicate and replace it with blanks

October 13, 2017   excel, remove duplicate, replace with blanks,

If I have data like:
A          B          C
111        asdews     iujfhg
111        oikufjf    jasddaf
112        eifjfjc    olkdkj
112        eiejdj     olokjjfki
112        ioeiurjf   oleodks
113        oeiekdkd   poldkkmd
I would like to delete all duplicates except the first instance but keep the cell blank for all subsequent duplicates. The expected result:
A          B          C
111        asdews     iujfhg
           oikufjf    jasddaf
112        eifjfjc    olkdkj
           eiejdj     olokjjfki
           ioeiurjf   oleodks
113        oeiekdkd   poldkkmd
The only way I've found to delete duplicates is the standard filter that will just remove all duplicates. I can't do this since I have the other cols like B and C that have data. The reason I need this is due to the program I need to import and it will overwrite each line with the next if it has the same ID. Since I need them to append to the same ID, not overwrite, I have to somehow manage this task. I have roughly a million lines across multiple documents to do this with so a quick method is preferable if at all possible.
(NOTE: I do have access to Excel so if this is easier or better using Excel please explain that process and I will try it there. I also don't have any problems downloading other open source software to accomplish this, as long as you can explain the method of achieving this using a suggested software.


Sub RemoveRepeatingStrings()

    Dim BaseStr As String, CurrStr As String
    Dim EndRow As Long

    EndRow = Range("A" & Rows.Count).End(xlUp).Row
    BaseStr = Range("A1").Value

    Application.ScreenUpdating = False

    For Iter = 2 To EndRow
        CurrStr = Range("A" & Iter).Value
        If CurrStr = BaseStr Then
            Range("A" & Iter).Value = vbNullString
        Else
            BaseStr = Range("A" & Iter).Value
        End If
    Next Iter

    Application.ScreenUpdating = True

End Sub


Source http://stackoverflow.com/questions/20793967/how-to-delete-duplicates-but-keep-the-first-instance-and-a-blank-cell-for-the-d



Continue Reading

Extracting Text Between Brackets with Excel Sheet

October 11, 2017   excel, forumla,
  1. There are times you will need to extract TEXT between bracket.
  2. Eg: (Userid) and extract userid to another cell.
  3. Use this formula below
    =MID(C2,FIND("(",C2)+1,FIND(")",C2)-FIND("(",C2)-1)
Continue Reading

How to get a list of userID from LDAP distribution list

October 10, 2017   distribution list, DL, group, ldap, userid,
IN a project, you may require to create user groups based on existing distribution groups in AD (active directory). You may collaborate with AD team to provide you the information. If you have access to LDAP, you may try the follow

Initial Setup:

  1. Download Softerra LDAP Administrator (free) and install.
  2. Click New to add a new profile
  3. For the hostname please ask AD team for the address.
  4. Click Next
  5. Choose currently logged on user
  6. Finish



How to search and export the details


  1. You should see the LDAP server on the left, right click and select Directory Search
  2. Enter the DL under Filter. Example of the format is cn=dl.sap_basis and click search
  3. Highlight the search result and paste it onto a notepad. You will below text
    ldap://ssvldcp01.dell.com:389/CN=DL.SAP_Basis,OU=Groups/DLs,DC=dell,DC=com
  4. Now replace <FROM_THE_SEARCH_RESULT> to the above search result
    (&(objectCategory=user)(memberOf=<FROM_THE_SEARCH_RESULT>))
  5. Final text should look like
    (&(objectCategory=user)(memberOf=CN=DL.SAP_Basis,OU=Groups/DLs,DC=dell,DC=com))
  6. Highlight and copy the text from step 5.
  7. Back to Softerra, 
  8. Paste it under Quick Search (top left) and press enter.
  9. Then paste the same text again to the filter filter. Press enter.
  10. You will have a list of UserID belonging to the DL.
  11. Now export the data. File > Export Data > CSV > Finish
  12. Open the *.CSV file with Microsoft Excel and you will get the UserID under column BD called "sAMAccountName"
Continue Reading

Top 10 SAP security implementation steps

October 08, 2017   implementation, sap, security,
1. Alignment of SAP configuration settings with organisational policies
A company’s IT security policy should specify mandatory software requirements for things such as minimum password length, password strength, number of password fails allowed before account lockout, etc.  These requirements should be followed by all applications, and SAP is no exception.  In SAP, these settings are configurable and can be controlled using system parameters. The parameters can be viewed using SAP transaction RSPFPAR.
Look for the following, which should all be set to follow the organisation’s predefined rules:
login/password_expiration_time (default 0, recommended 30)
Users are forced to change their SAP password after this number of days.
login/min_password_lng (default 3, recommended 8+)
Sets the minimum password length.
login/fails_to_session_end (default 3, recommended 3)
Number of times a user can enter an incorrect password before SAP ends the session.
login/fails_to_user_lock (default 12, recommended 5)
Number of times a user can enter an incorrect password before SAP locks the user master records from further logons.
2. Access to generic user accounts
Like a lot of other application software, SAP comes with a number of generic accounts. These are intended to be used for initial installation and setup purposes, and their passwords are well known. It is therefore critical that these IDs are secured once the initial setup activities have been completed.
The most critical setup ID is the SAP* ID.  Its status, along with that of other generic IDs, can be checked using the SAP report RSUSR003. 
The passwords of these generic IDs should be reset, and the high-privileged profiles (SAP_ALL and SAP_NEW) should be removed.  It is important to note that the SAP* account can recreate itself with a default and commonly known password when deleted.  Accordingly, it is important that the SAP* account is secured but not deleted and system parameter login/no_automatic_user_sapstar is set to = 1.
3. Allocation of wide access profiles
As well as generic IDs, SAP is also delivered with a number of high-privileged generic profiles that give wide access to the system. The allocation of these privileges should only be used in the initial setup of the system and for subsequent emergencies. At other times, support and project team users should have restricted access assigned to them that reflects their day-to-day access requirements.
The most important high-privileged access profile to be aware of in the SAP system is the SAP_ALL profile. This gives access to all transactions and authorisation objects, and, therefore, to any function or action in the SAP system. It is critical that this profile isn’t allocated on a routine basis. Similarly, the SAP_NEW profile gives access to all transactions and to all new authorisation objects.
Transaction SUIM allows detailed reporting on user access. Organisations can use the report to review the allocation of wide-access profiles to users and, using the ‘Users to Profiles’ report, can display a list of user IDs allocated to the SAP_ALL or SAP_NEW profiles.  With this information, user access can be revised and restricted according to need.
4. Support and project team access
SAP is delivered without specific profiles or roles built for support or project team members. It is therefore important to define these to ensure the access of these users is appropriately restricted. In many projects this requirement is overlooked and, consequently, project team members are assigned the SAP_ALL profile or a wide-access profile loosely based on SAP_ALL.
To ensure support and project team users have been adequately restricted, look for role specifications outlining the access requirements of these users and a set of roles defined for each group. Broadly speaking, at a minimum, roles defined for the following groups should be found:
  • Developers
  • BASIS Administrators
  • Security (Role) Administration
  • Security (User) Administration
  • Functional  / Configuration
A process should also be in place that confirms the roles are correctly defined for the organisation’s needs.
5. Appropriate segregation of duties in role design and access administration processes
Since SAP is an integrated system, there is a risk of internal fraud if incompatible responsibilities are allocated to the same individual. For example, if a user were to have privileges to maintain bank account details and execute the payment run, it might be possible for him or her to bypass controls and divert vendor payments to his or her own account.
Management and monitoring of segregation of duties (SoD) in an SAP environment is an important part of the security process. The relevant SoD risks to the organisation’s business must be defined, and compliance with these rules needs to be embedded into approval and access provisioning processes.
In order to ensure segregation of duties is incorporated into the organisation’s role design and access administration processes, a tool such as SAP GRC Risk Analysis & Remediation (RAR) should be installed to manage these risks. Manual processes can be employed as an alternative in smaller organisations, but the limitations of these processes (e.g. monitoring at role level as opposed to transaction level) should be recognised and managed.
6. Emergency and high-privileged access procedures
Roles should be defined to meet the access requirements of support and project teams on a day-to-day basis. However, it is important that these users have an escalation route available that enables them to get access to extended rights quickly when the appropriate circumstances arise: For example, to debug issues not replicable in a non-production system.  This access should be approved by the head of SAP application support (or a similar authority), and be allocated for a defined period and tracked for usage.
Emergency access procedures and processes and the use of tools such as SAP GRC Super User Privilege Management (SPM) can control and monitor the allocation and use of high-privilege access.
7. User access and housekeeping reviews
Ongoing monitoring and review is critical in order to maintain compliance with the organisation’s security policies and to meet the rigorous expectations that internal and external audits have of the SAP systems.  SAP system administration processes must include regular reviews of duplicate user IDs, generic accounts, password parameters, etc., as well as the periodic review to check that the access currently allocated is appropriate.
Whilst some of the review procedures required in an SAP environment will have activities specific to the SAP system, the majority of such procedures should be present in any well-controlled application environment.
8. Change management procedures 
Strict adherence to change-control procedures and a transport path through development, QA/test and production environments is critical to the integrity of the data held in the production environment of an SAP system. SAP has an in-built transport mechanism called Change and Transport System (CTS), and it is important that access to the key transactions used to manage the CTS is restricted to only those administration staff members that require it to perform their roles.
In addition to managing access to the relevant CTS functions, effective change management in the SAP environment will also involve the operation of more generic change management practices. These include documentation and testing of all modifications and the maintenance of an audit trail of business approvals for all changes.
9. Access to sensitive functions
As an integrated system, sensitive administration functionality and business transactions are accessed within the same environment in SAP. It is therefore critical that such sensitive functions are appropriately restricted and only the individuals responsible for these activities are able to access them.
The auditor may be able to provide a list of those functions that should be more carefully restricted, such as the following:
  • Access to maintain and create users and roles
  • Access to run operating system commands
  • Access to transport transactions and objects
  • Access to change or create programs
  • Access to open and close the system for configuration
  • Access to debug programs (allowing users to bypass authorisation checks)
10. Business ownership of security processes
Business ownership of security is vital to ensure there is adequate control placed over who can do what in an SAP system.  Only the business can understand the implications of letting a payments clerk also be in charge of paying vendor invoices or employee expense claims, so the business must define whether this activity can be performed. It is essential, therefore, that it is understood which members of staff are allowed access to each SAP function and that access is constantly controlled.
Without adequate understanding and design of the permissions structures, business approvers are not able to make informed approval decisions.  It is therefore important that the SAP role design utilised in the environment be simple enough for approvers to understand and the project include an element of training or education for approvers, both in the initial implementation and on an ongoing basis.
Conclusion
The advice above covers only the rudiments of security in an SAP deployment. However, exploring these elements is intended to demonstrate that these SAP security basics are similar to those that should be found in any well-controlled application security environment. Ultimately, SAP is just another business application and, whilst the use of specialist SAP skills is essential to getting things right the first time, it is also important that an organisation’s IT security department embrace its responsibilities in the SAP deployment and not defer all responsibility to SAP specialists.
Continue Reading
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)
Designed By: Blogger Templates | Templatelib