SlideShare a Scribd company logo
1 of 11
Download to read offline
Automate user creation using SAP GUI Scripting
Applies to:
Applies to All R/3 Versions Currently Supported by SAP

Applies to SAP GUI 6.20 and future versions.

Summary
The Purpose of this document is to provide the Security Administrator with guidance on preparing for the
SAP Mass Users Creation with Roles using SAP GUI Script tools provided by the SAP. This will also consumes the
time and reduce the manual efforts.

Author: Venkata Gadi & Raghu Boddu
Created on: 20.Nov.2011

Author Bio: Venkata Gadi is a SAP Basis and Security consultant, working with Tata Consultancy services, having
extensive experience in SAP Basis & Security and GRC components.

Raghu has excellent command over SAP R/3, BI, HR, and GRC. He is good known to the community for easy to
understand articles. He has authored 30+ articles for Microsoft knowledgebase and also an xMVP in Windows shell
area (2005-2008). He also bagged the SAP SDN Community Contributor award for 2008. His exclusive documents,
FAQs, and recommendation papers are available in his blog.
Table of Contents


   Table of Contents .............................................................................................................................................................. 2
   Introduction: ...................................................................................................................................................................... 3
   How to automate user creation with SAP GUI Script........................................................................................................ 3
   Script Recording and Playback: ........................................................................................................................................ 3
   Recording your script: ....................................................................................................................................................... 4
   Preparing for the Recording ......................................................................................................................................... 4

   Recording the transaction code ................................................................................................................................... 4

   Modifying the script: ....................................................................................................................................................... 5

   How to play script after the changes: .......................................................................................................................... 8

   Script Development tools .............................................................................................................................................. 8

   Enable GUI Scripting: ....................................................................................................................................................... 9
   Further references: 10
   Community Disclaimer .................................................................................................................................................... 11
Introduction:
SAP GUI Scripting is an automation interface which is available in SAP. It enhances the capabilities of SAP GUI.
Using this interface, end users may automate repetitive tasks by recording and running macro-like scripts. It is
shipped with SAP GUI 6.20 and later versions and compatible with all R3 versions currently supported by SAP and
applications built on top of WEB AS 6.10 to 6.40

Non -Dynpro based applications (BSP, Web Dynpro) are not supported. See SAP note 58702 for known limitations.


How to automate user creation with SAP GUI Script
Script Recording and Playback:


This will allow recording the activities in SAP and playback again to repetitive the same tasks. Below are the steps:


1. Click Customize Local Layout button -        in the SAP Easy Access window

2. Select Script Recording and Playback option




“NOTE: If the Script Recording and Playback option is grayed out as shown above, follow the steps mentioned in
the Enable GUI Scripting section

3. Select Play button in the Record and Playback screen
Recording your script:

Preparing for the Recording
1.      Go to customize local layout and select Script Recording and Playback
2.      Go to button more




3.      Save your file.

4.      Press the Record button         to start recording your script
5.      Execute the steps to start recording



Recording the transaction code

1. Enter transaction code SU01




2. Enter the Username and click Create
3. Enter all the required fields (Last name is mandatory by default in SAP).
4. Goto Logon Data tab and provide password and usergroup details.

Note: These details will be encrypted and you need to modify the script once recording is done. SAP GUI
scripting will not record the passwords.

5. Goto Roles tab and assign the required roles.

6. Update any additional fields that are required, and Save the user.



7. Click the Stop Recording button        .
Modifying the script:
Now the recorded script should be modified. Open the File that was saved earlier.

After Recording SAP GUI Script Code Looks Like Below.




To make feasible you need to insert some basic VB commands to extract the data from Excel or note pad.




1: Insert below script1 to take values from Excel you have after                                  .




2: Insert below script2 after
To take values from row in excel



3: Replace this script line already available

Replaced code:




4 : Replace the below script line already available after recording.




Replaced code:




Note: Password will be encrypted like as below after initial recording of the script, please change them to display as
below

Before:




After Replaced with welcome:




5. Insert Loop after the last line of the code.




Final Script after changes looks like below and you are ready to create n number of users in SAP with Recording
and play back option.




                                                  Refer Script in Point 1 above
                                                  C:GadiBOOK1.xls refers

                                                  Excel path
Refer Script in Point 2 & 3 above




                                                                             Refer Script
                                                                             in Point 4
                                                                             above
Refer Note
Above




               Refer Script in Point 5




   Save it and play now.
How to play script after the changes:
1. Select options script recording and play back



2. Click on       Play button and select the file you saved in Recording your script (ref point 2)




Script Development tools


The script development tools will help you to troubleshoot scripting issues. To use the script development tools,

click the Local Layout button -       in the SAP Easy Access window
Enable GUI Scripting:
 To enable GUI Scripting, follow the steps mentioned below:

 1. Click the “Customize Local Layout” Icon.

 2. Click Options




 3. Enable the scripting options as shown below:




 If the scripting option still doesn’t work, ensure that the parameters in the profile parameters are activated. Follow
 the below mentioned steps:

 1. Goto RZ10 transaction code.

 2. Select Default profile from the Possible entries list of Profile.

 3. Select Extended Maintenance option and click Change.

 4. Set the parameter value to True for parameter sapgui/user_scripting (The parameter can be added with the
    value, incase if it doesn’t exist)




 5. Add parameter “sapgui/user_scripting_per_user” with value True

 5. Save and activate.
Adding the parameter sapgui/user_scripting_per_user” with value True, will do an authorization check and will
allow only the users who has authorization to the authorization object S_SCR with activity 16 (Execute).

Further references:
   •   SAP Note 983990 - SAP GUI Scripting security: Enable Scripting per system user

   •   SAP Note 480149 - New profile parameter for user scripting at the front end

   •   SAP Note 1098286 - Authorization check for user scripting

   •   SAP Note 692245 - Additional server based security options for Scripting

   •   SAP Wikis and Documents
Community Disclaimer
 Important note: sapsecurityexpert.com grants free access to the content posted. However, if you are
 redistributing, we recommend not removing the author names. Statements and opinions expressed in articles,
 reviews and other materials herein are those of the authors.

 While every care has been taken in the compilation of this information and every attempt made to present up-to-
 date and accurate information, we cannot guarantee that inaccuracies will not occur.

 sapsecurityexpert.com will not be held responsible for any claim, loss, damage or inconvenience caused as a
 result of any information within these pages or any information accessed through this site. No responsibility is
 assumed by sapsecurityexpert.com for the contents of these pages.

 All the images (SAP screens and descriptive images) are copyrighted by SAP AG, and the other images are
 copyrighted by the respective companies. sapsecurityexpert.com thanks them for allowing third party web sites
 to include their respective copyright images.

 For completed Disclaimer, refer the Disclaimer page @ www.sapsecurityexpert.com




 sapsecurityexpert.com support “Go Green” and encourage the readers to read this document only online.
 Print access has been revoked on this document.

 Authors Disclaimer

 Some part of this article is referenced from SAP Help and Wiki documents. We have presented this document as a complete
 reference document for using SAP GUI scripting for user creation since there is no such documentation available. We
 hereby acknowledge the credit for the extracted content to the real authors and we thank them for providing such an useful
 information to the community.

More Related Content

What's hot

SAP ADMINISTRATION
SAP ADMINISTRATIONSAP ADMINISTRATION
SAP ADMINISTRATIONAly Adel
 
Anil kumar sap security & GRC
Anil kumar sap security & GRCAnil kumar sap security & GRC
Anil kumar sap security & GRCAnil Kumar
 
Grc 10 training
Grc 10 trainingGrc 10 training
Grc 10 trainingsuresh
 
Lsmw step by- step
Lsmw step  by- stepLsmw step  by- step
Lsmw step by- stepCapgemini
 
081712 isaca-atl-auditing sap-grc
081712 isaca-atl-auditing sap-grc081712 isaca-atl-auditing sap-grc
081712 isaca-atl-auditing sap-grchkodali
 
SAP GRC AC 10.1 - ARM Workflows
SAP GRC AC 10.1 - ARM WorkflowsSAP GRC AC 10.1 - ARM Workflows
SAP GRC AC 10.1 - ARM WorkflowsRohan Andrews
 
Exclusive SAP Basis Training Book | www.sapdocs.info
Exclusive SAP Basis Training Book | www.sapdocs.infoExclusive SAP Basis Training Book | www.sapdocs.info
Exclusive SAP Basis Training Book | www.sapdocs.infosapdocs. info
 
Step by step lsmw tutorial
Step by step lsmw tutorialStep by step lsmw tutorial
Step by step lsmw tutorialraonivaz
 
Sap security-administration
Sap security-administrationSap security-administration
Sap security-administrationnanda nanda
 
Sap security interview question & answers
Sap security interview question & answersSap security interview question & answers
Sap security interview question & answersNancy Nelida
 
SAP Security important Questions
SAP Security important QuestionsSAP Security important Questions
SAP Security important QuestionsRagu M
 
Maximizing SAP ABAP Performance
Maximizing SAP ABAP PerformanceMaximizing SAP ABAP Performance
Maximizing SAP ABAP PerformancePeterHBrown
 
100 sap basis_interviwe_questions
100 sap basis_interviwe_questions100 sap basis_interviwe_questions
100 sap basis_interviwe_questionsbhaskarbi
 
Introduction to SAP Security
Introduction to SAP SecurityIntroduction to SAP Security
Introduction to SAP SecurityNasir Gondal
 
SAP Transport System; Step-by-step guide from concept to practical
SAP Transport System; Step-by-step guide from concept to practicalSAP Transport System; Step-by-step guide from concept to practical
SAP Transport System; Step-by-step guide from concept to practicalNasir Gondal
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questionsKranthi Kumar
 

What's hot (20)

SAP ADMINISTRATION
SAP ADMINISTRATIONSAP ADMINISTRATION
SAP ADMINISTRATION
 
Anil kumar sap security & GRC
Anil kumar sap security & GRCAnil kumar sap security & GRC
Anil kumar sap security & GRC
 
Grc 10 training
Grc 10 trainingGrc 10 training
Grc 10 training
 
Lsmw step by- step
Lsmw step  by- stepLsmw step  by- step
Lsmw step by- step
 
081712 isaca-atl-auditing sap-grc
081712 isaca-atl-auditing sap-grc081712 isaca-atl-auditing sap-grc
081712 isaca-atl-auditing sap-grc
 
SAP GRC AC 10.1 - ARM Workflows
SAP GRC AC 10.1 - ARM WorkflowsSAP GRC AC 10.1 - ARM Workflows
SAP GRC AC 10.1 - ARM Workflows
 
Exclusive SAP Basis Training Book | www.sapdocs.info
Exclusive SAP Basis Training Book | www.sapdocs.infoExclusive SAP Basis Training Book | www.sapdocs.info
Exclusive SAP Basis Training Book | www.sapdocs.info
 
Step by step lsmw tutorial
Step by step lsmw tutorialStep by step lsmw tutorial
Step by step lsmw tutorial
 
Sap security-administration
Sap security-administrationSap security-administration
Sap security-administration
 
Sap security interview question & answers
Sap security interview question & answersSap security interview question & answers
Sap security interview question & answers
 
SAP Security important Questions
SAP Security important QuestionsSAP Security important Questions
SAP Security important Questions
 
How to perform critical authorizations and so d checks in sap systems
How to perform critical authorizations and so d checks in sap systemsHow to perform critical authorizations and so d checks in sap systems
How to perform critical authorizations and so d checks in sap systems
 
SAP Security interview questions
SAP Security interview questionsSAP Security interview questions
SAP Security interview questions
 
Maximizing SAP ABAP Performance
Maximizing SAP ABAP PerformanceMaximizing SAP ABAP Performance
Maximizing SAP ABAP Performance
 
100 sap basis_interviwe_questions
100 sap basis_interviwe_questions100 sap basis_interviwe_questions
100 sap basis_interviwe_questions
 
Introduction to SAP Security
Introduction to SAP SecurityIntroduction to SAP Security
Introduction to SAP Security
 
SAP Transport System; Step-by-step guide from concept to practical
SAP Transport System; Step-by-step guide from concept to practicalSAP Transport System; Step-by-step guide from concept to practical
SAP Transport System; Step-by-step guide from concept to practical
 
Sap scripts
Sap scriptsSap scripts
Sap scripts
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questions
 
SAP Basis Overview
SAP Basis OverviewSAP Basis Overview
SAP Basis Overview
 

Viewers also liked

Automating user provisioning with SAP NW BPM
Automating user provisioning with SAP NW BPMAutomating user provisioning with SAP NW BPM
Automating user provisioning with SAP NW BPMBalakrishnan Bala B
 
NodeJSでCLI開発を楽しくするライブラリの紹介
NodeJSでCLI開発を楽しくするライブラリの紹介NodeJSでCLI開発を楽しくするライブラリの紹介
NodeJSでCLI開発を楽しくするライブラリの紹介Ryo Iinuma
 
Sap gui 720 training
Sap gui 720 trainingSap gui 720 training
Sap gui 720 trainingHari Singh
 
Sap sapscripts tips and tricks
Sap sapscripts tips and tricksSap sapscripts tips and tricks
Sap sapscripts tips and tricksKranthi Kumar
 
Why Automation is the Best Practice for SAP Changes
Why Automation is the Best Practice for SAP ChangesWhy Automation is the Best Practice for SAP Changes
Why Automation is the Best Practice for SAP ChangesDavid Milano
 
Storage Configuration Best Practices for SAP HANA TDI and EMC ScaleIO Converg...
Storage Configuration Best Practices for SAP HANA TDI and EMC ScaleIO Converg...Storage Configuration Best Practices for SAP HANA TDI and EMC ScaleIO Converg...
Storage Configuration Best Practices for SAP HANA TDI and EMC ScaleIO Converg...EMC
 

Viewers also liked (10)

Automating user provisioning with SAP NW BPM
Automating user provisioning with SAP NW BPMAutomating user provisioning with SAP NW BPM
Automating user provisioning with SAP NW BPM
 
BestPractices_SoftwareChangeMgmt
BestPractices_SoftwareChangeMgmtBestPractices_SoftwareChangeMgmt
BestPractices_SoftwareChangeMgmt
 
Cloud Computing at SAP
Cloud Computing at SAPCloud Computing at SAP
Cloud Computing at SAP
 
NodeJSでCLI開発を楽しくするライブラリの紹介
NodeJSでCLI開発を楽しくするライブラリの紹介NodeJSでCLI開発を楽しくするライブラリの紹介
NodeJSでCLI開発を楽しくするライブラリの紹介
 
Sap gui
Sap guiSap gui
Sap gui
 
Sap gui 720 training
Sap gui 720 trainingSap gui 720 training
Sap gui 720 training
 
2016_CV_SAP_PMY
2016_CV_SAP_PMY2016_CV_SAP_PMY
2016_CV_SAP_PMY
 
Sap sapscripts tips and tricks
Sap sapscripts tips and tricksSap sapscripts tips and tricks
Sap sapscripts tips and tricks
 
Why Automation is the Best Practice for SAP Changes
Why Automation is the Best Practice for SAP ChangesWhy Automation is the Best Practice for SAP Changes
Why Automation is the Best Practice for SAP Changes
 
Storage Configuration Best Practices for SAP HANA TDI and EMC ScaleIO Converg...
Storage Configuration Best Practices for SAP HANA TDI and EMC ScaleIO Converg...Storage Configuration Best Practices for SAP HANA TDI and EMC ScaleIO Converg...
Storage Configuration Best Practices for SAP HANA TDI and EMC ScaleIO Converg...
 

Similar to Automate user creation using sap gui scripting

Let start with GUIXT
Let start with GUIXTLet start with GUIXT
Let start with GUIXTKang YAyan
 
SAP AC020 - Investment Management
SAP AC020 - Investment ManagementSAP AC020 - Investment Management
SAP AC020 - Investment ManagementVannak9
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programmingSatheesh Kanna
 
Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creationyoung moon woo
 
SAP BI BO Commentary solution
SAP BI BO Commentary solutionSAP BI BO Commentary solution
SAP BI BO Commentary solutionPeter Scheffelt
 
sap abap training in chennai
sap abap training in chennaisap abap training in chennai
sap abap training in chennaisanjai rsamy
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsHicham Khallouki
 
Fox formula in sap bi integrated planning
Fox formula in sap bi integrated planningFox formula in sap bi integrated planning
Fox formula in sap bi integrated planningVenkatesh Yellamelli
 
Version management of abap programs
Version management of abap programsVersion management of abap programs
Version management of abap programsicatalysts buddy
 
Whats new BPC 10.1 NW
Whats new BPC 10.1 NWWhats new BPC 10.1 NW
Whats new BPC 10.1 NWfernadabrum
 
Sap Ui5 Overview | Sap Ui5 Architecture – Features
Sap Ui5 Overview | Sap Ui5 Architecture – FeaturesSap Ui5 Overview | Sap Ui5 Architecture – Features
Sap Ui5 Overview | Sap Ui5 Architecture – FeaturesIQ Online Training
 
SAP HANA SPS09 - Security
SAP HANA SPS09 - SecuritySAP HANA SPS09 - Security
SAP HANA SPS09 - SecuritySAP Technology
 
CRM WebClient UI for Interaction Center_C4H_CRM702_BB_ConfigGuide_EN_XX.doc
CRM WebClient UI for Interaction Center_C4H_CRM702_BB_ConfigGuide_EN_XX.docCRM WebClient UI for Interaction Center_C4H_CRM702_BB_ConfigGuide_EN_XX.doc
CRM WebClient UI for Interaction Center_C4H_CRM702_BB_ConfigGuide_EN_XX.docKrisStone4
 
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Ashish Saxena
 
Software Developer’s Project Documentation Template
Software Developer’s Project Documentation TemplateSoftware Developer’s Project Documentation Template
Software Developer’s Project Documentation TemplateSalim M Bhonhariya
 
Sap Fico Configuration Material
Sap Fico Configuration MaterialSap Fico Configuration Material
Sap Fico Configuration MaterialNaina Mohamed
 

Similar to Automate user creation using sap gui scripting (20)

Let start with GUIXT
Let start with GUIXTLet start with GUIXT
Let start with GUIXT
 
SAP AC020 - Investment Management
SAP AC020 - Investment ManagementSAP AC020 - Investment Management
SAP AC020 - Investment Management
 
How to Implement Fiori Central Hub 1610
How to Implement Fiori Central Hub 1610How to Implement Fiori Central Hub 1610
How to Implement Fiori Central Hub 1610
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programming
 
Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creation
 
SAP BI BO Commentary solution
SAP BI BO Commentary solutionSAP BI BO Commentary solution
SAP BI BO Commentary solution
 
sap abap training in chennai
sap abap training in chennaisap abap training in chennai
sap abap training in chennai
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
 
Fox formula in sap bi integrated planning
Fox formula in sap bi integrated planningFox formula in sap bi integrated planning
Fox formula in sap bi integrated planning
 
Version management of abap programs
Version management of abap programsVersion management of abap programs
Version management of abap programs
 
Sap fico fa qs(1)
Sap fico fa qs(1)Sap fico fa qs(1)
Sap fico fa qs(1)
 
Sap fico fa qs
Sap fico fa qsSap fico fa qs
Sap fico fa qs
 
Whats new BPC 10.1 NW
Whats new BPC 10.1 NWWhats new BPC 10.1 NW
Whats new BPC 10.1 NW
 
Sap Ui5 Overview | Sap Ui5 Architecture – Features
Sap Ui5 Overview | Sap Ui5 Architecture – FeaturesSap Ui5 Overview | Sap Ui5 Architecture – Features
Sap Ui5 Overview | Sap Ui5 Architecture – Features
 
SAP HANA SPS09 - Security
SAP HANA SPS09 - SecuritySAP HANA SPS09 - Security
SAP HANA SPS09 - Security
 
CRM WebClient UI for Interaction Center_C4H_CRM702_BB_ConfigGuide_EN_XX.doc
CRM WebClient UI for Interaction Center_C4H_CRM702_BB_ConfigGuide_EN_XX.docCRM WebClient UI for Interaction Center_C4H_CRM702_BB_ConfigGuide_EN_XX.doc
CRM WebClient UI for Interaction Center_C4H_CRM702_BB_ConfigGuide_EN_XX.doc
 
Abap training material
Abap training material Abap training material
Abap training material
 
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
 
Software Developer’s Project Documentation Template
Software Developer’s Project Documentation TemplateSoftware Developer’s Project Documentation Template
Software Developer’s Project Documentation Template
 
Sap Fico Configuration Material
Sap Fico Configuration MaterialSap Fico Configuration Material
Sap Fico Configuration Material
 

Recently uploaded

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 

Automate user creation using sap gui scripting

  • 1. Automate user creation using SAP GUI Scripting Applies to: Applies to All R/3 Versions Currently Supported by SAP Applies to SAP GUI 6.20 and future versions. Summary The Purpose of this document is to provide the Security Administrator with guidance on preparing for the SAP Mass Users Creation with Roles using SAP GUI Script tools provided by the SAP. This will also consumes the time and reduce the manual efforts. Author: Venkata Gadi & Raghu Boddu Created on: 20.Nov.2011 Author Bio: Venkata Gadi is a SAP Basis and Security consultant, working with Tata Consultancy services, having extensive experience in SAP Basis & Security and GRC components. Raghu has excellent command over SAP R/3, BI, HR, and GRC. He is good known to the community for easy to understand articles. He has authored 30+ articles for Microsoft knowledgebase and also an xMVP in Windows shell area (2005-2008). He also bagged the SAP SDN Community Contributor award for 2008. His exclusive documents, FAQs, and recommendation papers are available in his blog.
  • 2. Table of Contents Table of Contents .............................................................................................................................................................. 2 Introduction: ...................................................................................................................................................................... 3 How to automate user creation with SAP GUI Script........................................................................................................ 3 Script Recording and Playback: ........................................................................................................................................ 3 Recording your script: ....................................................................................................................................................... 4 Preparing for the Recording ......................................................................................................................................... 4 Recording the transaction code ................................................................................................................................... 4 Modifying the script: ....................................................................................................................................................... 5 How to play script after the changes: .......................................................................................................................... 8 Script Development tools .............................................................................................................................................. 8 Enable GUI Scripting: ....................................................................................................................................................... 9 Further references: 10 Community Disclaimer .................................................................................................................................................... 11
  • 3. Introduction: SAP GUI Scripting is an automation interface which is available in SAP. It enhances the capabilities of SAP GUI. Using this interface, end users may automate repetitive tasks by recording and running macro-like scripts. It is shipped with SAP GUI 6.20 and later versions and compatible with all R3 versions currently supported by SAP and applications built on top of WEB AS 6.10 to 6.40 Non -Dynpro based applications (BSP, Web Dynpro) are not supported. See SAP note 58702 for known limitations. How to automate user creation with SAP GUI Script Script Recording and Playback: This will allow recording the activities in SAP and playback again to repetitive the same tasks. Below are the steps: 1. Click Customize Local Layout button - in the SAP Easy Access window 2. Select Script Recording and Playback option “NOTE: If the Script Recording and Playback option is grayed out as shown above, follow the steps mentioned in the Enable GUI Scripting section 3. Select Play button in the Record and Playback screen
  • 4. Recording your script: Preparing for the Recording 1. Go to customize local layout and select Script Recording and Playback 2. Go to button more 3. Save your file. 4. Press the Record button to start recording your script 5. Execute the steps to start recording Recording the transaction code 1. Enter transaction code SU01 2. Enter the Username and click Create 3. Enter all the required fields (Last name is mandatory by default in SAP). 4. Goto Logon Data tab and provide password and usergroup details. Note: These details will be encrypted and you need to modify the script once recording is done. SAP GUI scripting will not record the passwords. 5. Goto Roles tab and assign the required roles. 6. Update any additional fields that are required, and Save the user. 7. Click the Stop Recording button .
  • 5. Modifying the script: Now the recorded script should be modified. Open the File that was saved earlier. After Recording SAP GUI Script Code Looks Like Below. To make feasible you need to insert some basic VB commands to extract the data from Excel or note pad. 1: Insert below script1 to take values from Excel you have after . 2: Insert below script2 after
  • 6. To take values from row in excel 3: Replace this script line already available Replaced code: 4 : Replace the below script line already available after recording. Replaced code: Note: Password will be encrypted like as below after initial recording of the script, please change them to display as below Before: After Replaced with welcome: 5. Insert Loop after the last line of the code. Final Script after changes looks like below and you are ready to create n number of users in SAP with Recording and play back option. Refer Script in Point 1 above C:GadiBOOK1.xls refers Excel path
  • 7. Refer Script in Point 2 & 3 above Refer Script in Point 4 above Refer Note Above Refer Script in Point 5 Save it and play now.
  • 8. How to play script after the changes: 1. Select options script recording and play back 2. Click on Play button and select the file you saved in Recording your script (ref point 2) Script Development tools The script development tools will help you to troubleshoot scripting issues. To use the script development tools, click the Local Layout button - in the SAP Easy Access window
  • 9. Enable GUI Scripting: To enable GUI Scripting, follow the steps mentioned below: 1. Click the “Customize Local Layout” Icon. 2. Click Options 3. Enable the scripting options as shown below: If the scripting option still doesn’t work, ensure that the parameters in the profile parameters are activated. Follow the below mentioned steps: 1. Goto RZ10 transaction code. 2. Select Default profile from the Possible entries list of Profile. 3. Select Extended Maintenance option and click Change. 4. Set the parameter value to True for parameter sapgui/user_scripting (The parameter can be added with the value, incase if it doesn’t exist) 5. Add parameter “sapgui/user_scripting_per_user” with value True 5. Save and activate.
  • 10. Adding the parameter sapgui/user_scripting_per_user” with value True, will do an authorization check and will allow only the users who has authorization to the authorization object S_SCR with activity 16 (Execute). Further references: • SAP Note 983990 - SAP GUI Scripting security: Enable Scripting per system user • SAP Note 480149 - New profile parameter for user scripting at the front end • SAP Note 1098286 - Authorization check for user scripting • SAP Note 692245 - Additional server based security options for Scripting • SAP Wikis and Documents
  • 11. Community Disclaimer Important note: sapsecurityexpert.com grants free access to the content posted. However, if you are redistributing, we recommend not removing the author names. Statements and opinions expressed in articles, reviews and other materials herein are those of the authors. While every care has been taken in the compilation of this information and every attempt made to present up-to- date and accurate information, we cannot guarantee that inaccuracies will not occur. sapsecurityexpert.com will not be held responsible for any claim, loss, damage or inconvenience caused as a result of any information within these pages or any information accessed through this site. No responsibility is assumed by sapsecurityexpert.com for the contents of these pages. All the images (SAP screens and descriptive images) are copyrighted by SAP AG, and the other images are copyrighted by the respective companies. sapsecurityexpert.com thanks them for allowing third party web sites to include their respective copyright images. For completed Disclaimer, refer the Disclaimer page @ www.sapsecurityexpert.com sapsecurityexpert.com support “Go Green” and encourage the readers to read this document only online. Print access has been revoked on this document. Authors Disclaimer Some part of this article is referenced from SAP Help and Wiki documents. We have presented this document as a complete reference document for using SAP GUI scripting for user creation since there is no such documentation available. We hereby acknowledge the credit for the extracted content to the real authors and we thank them for providing such an useful information to the community.