SlideShare a Scribd company logo
1 of 33
Download to read offline
© Kaufland 2016 |
ABAP CODERETREAT WEINSBERG
ABAP in Eclipse
KIS, Weinsberg, 23.07.2016
ABAP CodeRetreat Weinsberg121.07.2016
© Kaufland 2016 |
WHO WE ARE
KAUFLAND
We are more than just a successful international trading company:
We are a company where many colleagues become a team, jobs
are safe workplaces and real satisfaction
Diversity and stability
We offer a wide range of jobs with many different entry-levels and
career opportunities. Our company is continuously growing, that
makes us self-confident
Openness and friendly cooperation
We support a cooperation based on friendliness and mutual trust
ABAP CodeRetreat Weinsberg221.07.2016
© Kaufland 2016 |
WHERE WE ARE
KAUFLAND
Expansive growth, economic size
• We are successfully expanding in Germany, Poland, Czech
Republic, Slovakia, Croatia, Romania and Bulgaria
• Over 150,500 employees form our strong Kaufland team in
Europe
International cooperation and prospects
• We offer an international work environment
• We provide a wide variety of tasks in collaboration with our
international colleagues
• According to the area of deployment you will have the
opportunity to collect experience abroad, in one of our
European locations
ABAP CodeRetreat Weinsberg321.07.2016
© Kaufland 2016 | ABAP CodeRetreat Weinsberg4
KAUFLAND INFORMATION SYSTEMS
We are the IT service provider for Kaufland. Ensuring high
business performance and carrying data streams on the right track
is our daily responsibility
Keep IT simple and safe
Our objectives are to comprehensively advice our business
departments in designing their business processes and to
implement software solutions
OUR IT IN FIGURES
21.07.2016
220
SAP
Systems
40
SAP
Developers
25k Z Reports
© Kaufland 2016 |
• Eclipse started as a proprietary IBM product (IBM Visual age for Smalltalk/Java)
• Embracing the open source model IBM opened the product up
• Open Source
• It is a general purpose open platform that facilitates and encourages the development of third party
plug-ins
• Best known as an Integrated Development Environment (IDE)
• Provides tools for coding, building, running and debugging applications
• Originally designed for Java, now supports many other languages
• Good support for C, C++
• Python, PHP, Ruby, etc...
• And ABAP
• Eclipse is the strategic future ABAP Development Tool from SAP
ABAP CodeRetreat Weinsberg5
WHAT IS ECLIPSE?
21.07.2016
© Kaufland 2016 | ABAP CodeRetreat Weinsberg6
ECLIPSE IDE COMPONENTS
21.07.2016
Perspective Switch
We can switch between
several perspectives here
Editor View
This is where we edit
our source code
Menubars
Full drop down menus
plus quick access to
common functions
Project Explorer
View
This is where our projects
/ objects are listed
Windows (Views)
The windows (views) are
not firmly set but can be
arranged however you
prefer on the screen !
© Kaufland 2016 | ABAP CodeRetreat Weinsberg7
CREATING A NEW PROJECT
21.07.2016
• All code in Eclipse needs to live under a project
• To create a project: File -> New -> ABAP Project
• A new System Connection window will open, choose the SAP system in which you want to develop ABAP Objects
Hit NEXT button to enter SAP system credentials
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
CREATING A NEW PROJECT
21.07.2016
• click FINISH to create ABAP Project
Enter SAP system credentials
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
CREATING A CLASS
21.07.2016 9
We are saving the class as a $TMP package
so a transport request is not required
To create a new global class , choose any package under the ABAP project.
Right click on the package -> NEW -> ABAP Class
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
CREATING A METHOD
21.07.2016 10
Write the definition of method -> Ctrl +1 on the method name
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
CREATING A PROGRAM
21.07.2016 11
To create a ABAP program, choose any package under the ABAP project.
Right click on the package -> NEW -> ABAP program
We are saving the program as a $TMP package
so a transport request is not required
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
RUNNING CODE
21.07.2016 12
An easy way to run code is to right click on the program and select
Run As -> ABAP Application (F8)
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
RUNNING CODE
21.07.2016 13
The output of running code can be seen in a new SAP GUI editor window
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
RUNNING CODE
21.07.2016 14
Running a single method -> mark a method and F8
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
RUNNING CODE
21.07.2016 15
Enter the Import Parameters and execute the method
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
RE-RUNNING CODE
21.07.2016 16
After you run the code for the first time, you can re-run it just by selecting it from the RUN drop down menu
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
DEBUGGING CODE
21.07.2016 17
• Eclipse comes with a pretty good built-in debugger
• You can set break points in your code by double clicking in the left hand margin
break points are
represented by
these blue bubbles
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
DEBUGGING CODE
21.07.2016 18
• The first time you try to debug code you will be presented with the following dialog
• Eclipse is asking if you want to switch to a perspective that is more suited for debugging, click yes
• Eclipse has many perspectives based on what you are doing (by default we get the ABAP perspective)
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
DEBUG PERSPECTIVE
21.07.2016 19
This view shows the
current line of code
we broke on
It‘s possibe to change
the code during the
debugging !
List of breakpoints
These buttons allow you to
step through the code
Variables in scope are listed
here along with their current
values – by right clicking you
can change values of variables
as your program is running
Note new Debug
perspective – click
ABAP to return to
normal
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
CONTENT ASSIST
21.07.2016 20
Content assist is a functionality in Eclipse which allows the developer
to get context-sensitive code completion in an editor upon user request.
It can be invoked by pressing Ctrl+Space.
...
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
QUICK FIX
21.07.2016 21
Quick Fix can be used to make typing much faster
and to quickly generate code ...
press Ctrl+1 on class
Press Ctrl+1 on method
Press Ctrl+1 on parameter
Press Ctrl+1 on variable
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
REFACTORING
21.07.2016 22
Renaming a class / method that is used widely throughout a project could take a lot of time and is error-prone. But the Eclipse
refactoring wizard makes the job easier by automatically detecting all dependencies on the class / method beeing renamed and
modifying them also in the same time.
The refactoring menu can be opened by Ctrl+1
click Finish to perform the refactoring
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
REFACTORING
21.07.2016 23
Result of renaming class ZCL_ACR_01 -> ZCL_ACR_02
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
REFACTORING
21.07.2016 24
Refactoring a method (Ctrl+1)
Refactoring a field (Ctrl+1)
Refactoring a parameter of a method (Ctrl+1) ... and so on
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
REFACTORING
21.07.2016 25
Rename in source unit (Ctrl+1)
... while renaming the field the
dependencies in the source
code will be automatically
changed
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
HISTORY
21.07.2016 26
Right click on source code – Compare With – Local History / Revision History…
Revision History Local History
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
HISTORY
21.07.2016 27
Mark 2 versions and right click – Compare with Each Other
A new editor window opens with the
comparison of both versions.
This compare works also between projects
(SAP systems).
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
ABAP ELEMENT INFO
21.07.2016 28
Press F2 on any element ...
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
ABAP DOC
21.07.2016 29
• With ABAP Doc you can write your
documentation directly within your
source code using special comments
in front of a declarative statement
• This means you can document globally
available elements (like classes,
interfaces and their method and
attribute) but also local elements (like
local variables and field-symbols)
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
ABAP KEYWORDS COLORS
21.07.2016 30
Click Windows -> Preferences ...
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
TRANSPORT ORGANIZER
21.07.2016 31
With the transport organizer you can edit transports (Release, Change Owner)
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
SHORT CUTS
21.07.2016 32
Hit Ctrl + Shift + L to open
the Short cut list
Hit Ctrl + Shift + L again to edit or create Short cuts
© Kaufland 2016 | ABAP CodeRetreat Weinsberg
SHORT CUTS
21.07.2016 33
F2 Code Information Ctrl + L Goto Line
F3 Navigate to Ctrl + M Maximize Active View or Editor
F5 Refresh Ctrl + O Quic Outline
Alt + U Delete unused variables (all) Ctrl + Q Last Edit Location
Alt + F2 Show method Information Ctrl + T Quick Type Hierarchie
Alt + F8 Run an ABAP development object Ctrl + U Display Mode
Alt + PfeilOben Moves Lines Up Shift + F1 Pretty Printer
Alt + Shift + A Toggle Block Selection Ctrl + F3 Activate
Alt + Shift + B Show In Breadcrumb Ctrl + F6 Easily switch between the editor tabs (Like Tab for Windows) !!
Alt + Shift + M Extract Method › Define Method Signature Ctrl + F7 Easily switch between all eclipse views
Alt + Shift + W Show in ... Ctrl + F8 Easily switch between the perspectives
Alt + Shift + Q Show View Ctrl + Alt + H Open Call Hierarchy
Ctrl + 1 Quick Fix Ctrl + Alt + S, S Splitscreen vertikal
Ctrl + 2 + R Rename Ctrl + Alt + S, F Splitscreen zurücknehmen
Ctrl + 3 Quick Access Ctrl + Shift + A Open Development Object
Ctrl + D Delete Line Ctrl + Shift + E Switch to Editor
Ctrl + E Quick Switch Editor Ctrl + Shift + G ABAP Where-used List
Ctrl + F Find / Replace Ctrl + Shift + N New (ABAP Repository Object)
Ctrl + H Open File Search Ctrl + Shift + F2 Run ABAP Test Cockpit

More Related Content

What's hot

Test Armada Sauce Labs
Test Armada Sauce LabsTest Armada Sauce Labs
Test Armada Sauce LabsTest Armada
 
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...Sauce Labs
 
Doktool Ax Presentation
Doktool Ax PresentationDoktool Ax Presentation
Doktool Ax Presentationjaredsteadman
 
Building a culture of quality at scale
Building a culture of quality at scaleBuilding a culture of quality at scale
Building a culture of quality at scaleTest Armada
 
Continuous Testing of eCommerce Apps
Continuous Testing of eCommerce AppsContinuous Testing of eCommerce Apps
Continuous Testing of eCommerce AppsSauce Labs
 
5 step bim automation roadmap - shed manufacturers e book
5 step bim automation roadmap - shed manufacturers e book5 step bim automation roadmap - shed manufacturers e book
5 step bim automation roadmap - shed manufacturers e bookLukeHunter14
 

What's hot (6)

Test Armada Sauce Labs
Test Armada Sauce LabsTest Armada Sauce Labs
Test Armada Sauce Labs
 
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
 
Doktool Ax Presentation
Doktool Ax PresentationDoktool Ax Presentation
Doktool Ax Presentation
 
Building a culture of quality at scale
Building a culture of quality at scaleBuilding a culture of quality at scale
Building a culture of quality at scale
 
Continuous Testing of eCommerce Apps
Continuous Testing of eCommerce AppsContinuous Testing of eCommerce Apps
Continuous Testing of eCommerce Apps
 
5 step bim automation roadmap - shed manufacturers e book
5 step bim automation roadmap - shed manufacturers e book5 step bim automation roadmap - shed manufacturers e book
5 step bim automation roadmap - shed manufacturers e book
 

Viewers also liked

ABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDDABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDDABAPCodeRetreat
 
ABAPCodeRetreat - TDD Intro by Damir Majer
ABAPCodeRetreat - TDD Intro by Damir MajerABAPCodeRetreat - TDD Intro by Damir Majer
ABAPCodeRetreat - TDD Intro by Damir MajerABAPCodeRetreat
 
ABAPCodeRetreat Frankfurt 2016 - TDD with ABAP
ABAPCodeRetreat Frankfurt 2016 - TDD with ABAPABAPCodeRetreat Frankfurt 2016 - TDD with ABAP
ABAPCodeRetreat Frankfurt 2016 - TDD with ABAPABAPCodeRetreat
 
TDD in the ABAP world - sitNL 2013 edition
TDD in the ABAP world - sitNL 2013 editionTDD in the ABAP world - sitNL 2013 edition
TDD in the ABAP world - sitNL 2013 editionHendrik Neumann
 
ABAPCodeRetreat - ABAP PUSH CHANNELS and SAP FIORI
ABAPCodeRetreat -   ABAP PUSH CHANNELS and SAP FIORIABAPCodeRetreat -   ABAP PUSH CHANNELS and SAP FIORI
ABAPCodeRetreat - ABAP PUSH CHANNELS and SAP FIORIABAPCodeRetreat
 

Viewers also liked (6)

ABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDDABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDD
 
ABAPCodeRetreat - TDD Intro by Damir Majer
ABAPCodeRetreat - TDD Intro by Damir MajerABAPCodeRetreat - TDD Intro by Damir Majer
ABAPCodeRetreat - TDD Intro by Damir Majer
 
ABAPCodeRetreat Frankfurt 2016 - TDD with ABAP
ABAPCodeRetreat Frankfurt 2016 - TDD with ABAPABAPCodeRetreat Frankfurt 2016 - TDD with ABAP
ABAPCodeRetreat Frankfurt 2016 - TDD with ABAP
 
TDD in the ABAP world - sitNL 2013 edition
TDD in the ABAP world - sitNL 2013 editionTDD in the ABAP world - sitNL 2013 edition
TDD in the ABAP world - sitNL 2013 edition
 
ABAPCodeRetreat - ABAP PUSH CHANNELS and SAP FIORI
ABAPCodeRetreat -   ABAP PUSH CHANNELS and SAP FIORIABAPCodeRetreat -   ABAP PUSH CHANNELS and SAP FIORI
ABAPCodeRetreat - ABAP PUSH CHANNELS and SAP FIORI
 
1H2007 Results Full
1H2007 Results Full1H2007 Results Full
1H2007 Results Full
 

Similar to ABAPCodeRetreat 23.7.2016 - Abap in Eclipse

GitLab Frontend and VueJS at GitLab
GitLab Frontend and VueJS at GitLabGitLab Frontend and VueJS at GitLab
GitLab Frontend and VueJS at GitLabFatih Acet
 
Design System Ops
Design System OpsDesign System Ops
Design System OpsQvik
 
Evolution of GitLab Frontend
Evolution of GitLab FrontendEvolution of GitLab Frontend
Evolution of GitLab FrontendFatih Acet
 
O que fazer (ou não) quando códigos com erro estão parando a produção
O que fazer (ou não) quando códigos com erro estão parando a produçãoO que fazer (ou não) quando códigos com erro estão parando a produção
O que fazer (ou não) quando códigos com erro estão parando a produçãoJose Nunes
 
Sapphire 2013 Presentation - Streamlining SAP Transactions for Barcode Scanne...
Sapphire 2013 Presentation - Streamlining SAP Transactions for Barcode Scanne...Sapphire 2013 Presentation - Streamlining SAP Transactions for Barcode Scanne...
Sapphire 2013 Presentation - Streamlining SAP Transactions for Barcode Scanne...DeeDee Kato
 
Learn about Cloud and Scalability in SAP Hybris Commerce Technology Strategy
Learn about Cloud and Scalability in SAP Hybris Commerce Technology StrategyLearn about Cloud and Scalability in SAP Hybris Commerce Technology Strategy
Learn about Cloud and Scalability in SAP Hybris Commerce Technology StrategySAP Customer Experience
 
SAP Inside Track Munich 2018 - DevOps and Deployment Pipelines in ABAP Landsc...
SAP Inside Track Munich 2018 - DevOps and Deployment Pipelines in ABAP Landsc...SAP Inside Track Munich 2018 - DevOps and Deployment Pipelines in ABAP Landsc...
SAP Inside Track Munich 2018 - DevOps and Deployment Pipelines in ABAP Landsc...Sascha Junkert
 
Crystal Reports Review
Crystal Reports ReviewCrystal Reports Review
Crystal Reports ReviewJustin R. Rue
 
BelTech 2017 - Building Quality in the Browser
BelTech 2017 - Building Quality in the BrowserBelTech 2017 - Building Quality in the Browser
BelTech 2017 - Building Quality in the BrowserEamonn Boyle
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programmingSatheesh Kanna
 
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Srinivas Dukka
 
GitHub constellation 2017 SimCorp
GitHub constellation 2017   SimCorpGitHub constellation 2017   SimCorp
GitHub constellation 2017 SimCorpNiels Harre
 
Beginner’s guide to_sap_abap
Beginner’s guide to_sap_abapBeginner’s guide to_sap_abap
Beginner’s guide to_sap_abapAngel Inga
 
IMMERSE 2016 IST Mark Szulc Keynote
IMMERSE 2016 IST Mark Szulc KeynoteIMMERSE 2016 IST Mark Szulc Keynote
IMMERSE 2016 IST Mark Szulc KeynoteAdobeMarketingCloud
 
Global Innovation Nights - Spark
Global Innovation Nights - SparkGlobal Innovation Nights - Spark
Global Innovation Nights - SparkWorks Applications
 
DSAG Jahreskongress 2018 - DevOps and Deployment Pipelines in SAP ABAP Landsc...
DSAG Jahreskongress 2018 - DevOps and Deployment Pipelines in SAP ABAP Landsc...DSAG Jahreskongress 2018 - DevOps and Deployment Pipelines in SAP ABAP Landsc...
DSAG Jahreskongress 2018 - DevOps and Deployment Pipelines in SAP ABAP Landsc...Sascha Junkert
 

Similar to ABAPCodeRetreat 23.7.2016 - Abap in Eclipse (20)

GitLab Frontend and VueJS at GitLab
GitLab Frontend and VueJS at GitLabGitLab Frontend and VueJS at GitLab
GitLab Frontend and VueJS at GitLab
 
Design System Ops
Design System OpsDesign System Ops
Design System Ops
 
Evolution of GitLab Frontend
Evolution of GitLab FrontendEvolution of GitLab Frontend
Evolution of GitLab Frontend
 
Where is cold fusion headed
Where is cold fusion headedWhere is cold fusion headed
Where is cold fusion headed
 
Naga_Kiran
Naga_KiranNaga_Kiran
Naga_Kiran
 
O que fazer (ou não) quando códigos com erro estão parando a produção
O que fazer (ou não) quando códigos com erro estão parando a produçãoO que fazer (ou não) quando códigos com erro estão parando a produção
O que fazer (ou não) quando códigos com erro estão parando a produção
 
Abap training material
Abap training material Abap training material
Abap training material
 
Sapphire 2013 Presentation - Streamlining SAP Transactions for Barcode Scanne...
Sapphire 2013 Presentation - Streamlining SAP Transactions for Barcode Scanne...Sapphire 2013 Presentation - Streamlining SAP Transactions for Barcode Scanne...
Sapphire 2013 Presentation - Streamlining SAP Transactions for Barcode Scanne...
 
Learn about Cloud and Scalability in SAP Hybris Commerce Technology Strategy
Learn about Cloud and Scalability in SAP Hybris Commerce Technology StrategyLearn about Cloud and Scalability in SAP Hybris Commerce Technology Strategy
Learn about Cloud and Scalability in SAP Hybris Commerce Technology Strategy
 
SAP Inside Track Munich 2018 - DevOps and Deployment Pipelines in ABAP Landsc...
SAP Inside Track Munich 2018 - DevOps and Deployment Pipelines in ABAP Landsc...SAP Inside Track Munich 2018 - DevOps and Deployment Pipelines in ABAP Landsc...
SAP Inside Track Munich 2018 - DevOps and Deployment Pipelines in ABAP Landsc...
 
Crystal Reports Review
Crystal Reports ReviewCrystal Reports Review
Crystal Reports Review
 
BelTech 2017 - Building Quality in the Browser
BelTech 2017 - Building Quality in the BrowserBelTech 2017 - Building Quality in the Browser
BelTech 2017 - Building Quality in the Browser
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programming
 
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
 
GitHub constellation 2017 SimCorp
GitHub constellation 2017   SimCorpGitHub constellation 2017   SimCorp
GitHub constellation 2017 SimCorp
 
Beginner’s guide to_sap_abap
Beginner’s guide to_sap_abapBeginner’s guide to_sap_abap
Beginner’s guide to_sap_abap
 
SAP ABAP
SAP ABAP SAP ABAP
SAP ABAP
 
IMMERSE 2016 IST Mark Szulc Keynote
IMMERSE 2016 IST Mark Szulc KeynoteIMMERSE 2016 IST Mark Szulc Keynote
IMMERSE 2016 IST Mark Szulc Keynote
 
Global Innovation Nights - Spark
Global Innovation Nights - SparkGlobal Innovation Nights - Spark
Global Innovation Nights - Spark
 
DSAG Jahreskongress 2018 - DevOps and Deployment Pipelines in SAP ABAP Landsc...
DSAG Jahreskongress 2018 - DevOps and Deployment Pipelines in SAP ABAP Landsc...DSAG Jahreskongress 2018 - DevOps and Deployment Pipelines in SAP ABAP Landsc...
DSAG Jahreskongress 2018 - DevOps and Deployment Pipelines in SAP ABAP Landsc...
 

Recently uploaded

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Intelisync
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 

Recently uploaded (20)

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 

ABAPCodeRetreat 23.7.2016 - Abap in Eclipse

  • 1. © Kaufland 2016 | ABAP CODERETREAT WEINSBERG ABAP in Eclipse KIS, Weinsberg, 23.07.2016 ABAP CodeRetreat Weinsberg121.07.2016
  • 2. © Kaufland 2016 | WHO WE ARE KAUFLAND We are more than just a successful international trading company: We are a company where many colleagues become a team, jobs are safe workplaces and real satisfaction Diversity and stability We offer a wide range of jobs with many different entry-levels and career opportunities. Our company is continuously growing, that makes us self-confident Openness and friendly cooperation We support a cooperation based on friendliness and mutual trust ABAP CodeRetreat Weinsberg221.07.2016
  • 3. © Kaufland 2016 | WHERE WE ARE KAUFLAND Expansive growth, economic size • We are successfully expanding in Germany, Poland, Czech Republic, Slovakia, Croatia, Romania and Bulgaria • Over 150,500 employees form our strong Kaufland team in Europe International cooperation and prospects • We offer an international work environment • We provide a wide variety of tasks in collaboration with our international colleagues • According to the area of deployment you will have the opportunity to collect experience abroad, in one of our European locations ABAP CodeRetreat Weinsberg321.07.2016
  • 4. © Kaufland 2016 | ABAP CodeRetreat Weinsberg4 KAUFLAND INFORMATION SYSTEMS We are the IT service provider for Kaufland. Ensuring high business performance and carrying data streams on the right track is our daily responsibility Keep IT simple and safe Our objectives are to comprehensively advice our business departments in designing their business processes and to implement software solutions OUR IT IN FIGURES 21.07.2016 220 SAP Systems 40 SAP Developers 25k Z Reports
  • 5. © Kaufland 2016 | • Eclipse started as a proprietary IBM product (IBM Visual age for Smalltalk/Java) • Embracing the open source model IBM opened the product up • Open Source • It is a general purpose open platform that facilitates and encourages the development of third party plug-ins • Best known as an Integrated Development Environment (IDE) • Provides tools for coding, building, running and debugging applications • Originally designed for Java, now supports many other languages • Good support for C, C++ • Python, PHP, Ruby, etc... • And ABAP • Eclipse is the strategic future ABAP Development Tool from SAP ABAP CodeRetreat Weinsberg5 WHAT IS ECLIPSE? 21.07.2016
  • 6. © Kaufland 2016 | ABAP CodeRetreat Weinsberg6 ECLIPSE IDE COMPONENTS 21.07.2016 Perspective Switch We can switch between several perspectives here Editor View This is where we edit our source code Menubars Full drop down menus plus quick access to common functions Project Explorer View This is where our projects / objects are listed Windows (Views) The windows (views) are not firmly set but can be arranged however you prefer on the screen !
  • 7. © Kaufland 2016 | ABAP CodeRetreat Weinsberg7 CREATING A NEW PROJECT 21.07.2016 • All code in Eclipse needs to live under a project • To create a project: File -> New -> ABAP Project • A new System Connection window will open, choose the SAP system in which you want to develop ABAP Objects Hit NEXT button to enter SAP system credentials
  • 8. © Kaufland 2016 | ABAP CodeRetreat Weinsberg CREATING A NEW PROJECT 21.07.2016 • click FINISH to create ABAP Project Enter SAP system credentials
  • 9. © Kaufland 2016 | ABAP CodeRetreat Weinsberg CREATING A CLASS 21.07.2016 9 We are saving the class as a $TMP package so a transport request is not required To create a new global class , choose any package under the ABAP project. Right click on the package -> NEW -> ABAP Class
  • 10. © Kaufland 2016 | ABAP CodeRetreat Weinsberg CREATING A METHOD 21.07.2016 10 Write the definition of method -> Ctrl +1 on the method name
  • 11. © Kaufland 2016 | ABAP CodeRetreat Weinsberg CREATING A PROGRAM 21.07.2016 11 To create a ABAP program, choose any package under the ABAP project. Right click on the package -> NEW -> ABAP program We are saving the program as a $TMP package so a transport request is not required
  • 12. © Kaufland 2016 | ABAP CodeRetreat Weinsberg RUNNING CODE 21.07.2016 12 An easy way to run code is to right click on the program and select Run As -> ABAP Application (F8)
  • 13. © Kaufland 2016 | ABAP CodeRetreat Weinsberg RUNNING CODE 21.07.2016 13 The output of running code can be seen in a new SAP GUI editor window
  • 14. © Kaufland 2016 | ABAP CodeRetreat Weinsberg RUNNING CODE 21.07.2016 14 Running a single method -> mark a method and F8
  • 15. © Kaufland 2016 | ABAP CodeRetreat Weinsberg RUNNING CODE 21.07.2016 15 Enter the Import Parameters and execute the method
  • 16. © Kaufland 2016 | ABAP CodeRetreat Weinsberg RE-RUNNING CODE 21.07.2016 16 After you run the code for the first time, you can re-run it just by selecting it from the RUN drop down menu
  • 17. © Kaufland 2016 | ABAP CodeRetreat Weinsberg DEBUGGING CODE 21.07.2016 17 • Eclipse comes with a pretty good built-in debugger • You can set break points in your code by double clicking in the left hand margin break points are represented by these blue bubbles
  • 18. © Kaufland 2016 | ABAP CodeRetreat Weinsberg DEBUGGING CODE 21.07.2016 18 • The first time you try to debug code you will be presented with the following dialog • Eclipse is asking if you want to switch to a perspective that is more suited for debugging, click yes • Eclipse has many perspectives based on what you are doing (by default we get the ABAP perspective)
  • 19. © Kaufland 2016 | ABAP CodeRetreat Weinsberg DEBUG PERSPECTIVE 21.07.2016 19 This view shows the current line of code we broke on It‘s possibe to change the code during the debugging ! List of breakpoints These buttons allow you to step through the code Variables in scope are listed here along with their current values – by right clicking you can change values of variables as your program is running Note new Debug perspective – click ABAP to return to normal
  • 20. © Kaufland 2016 | ABAP CodeRetreat Weinsberg CONTENT ASSIST 21.07.2016 20 Content assist is a functionality in Eclipse which allows the developer to get context-sensitive code completion in an editor upon user request. It can be invoked by pressing Ctrl+Space. ...
  • 21. © Kaufland 2016 | ABAP CodeRetreat Weinsberg QUICK FIX 21.07.2016 21 Quick Fix can be used to make typing much faster and to quickly generate code ... press Ctrl+1 on class Press Ctrl+1 on method Press Ctrl+1 on parameter Press Ctrl+1 on variable
  • 22. © Kaufland 2016 | ABAP CodeRetreat Weinsberg REFACTORING 21.07.2016 22 Renaming a class / method that is used widely throughout a project could take a lot of time and is error-prone. But the Eclipse refactoring wizard makes the job easier by automatically detecting all dependencies on the class / method beeing renamed and modifying them also in the same time. The refactoring menu can be opened by Ctrl+1 click Finish to perform the refactoring
  • 23. © Kaufland 2016 | ABAP CodeRetreat Weinsberg REFACTORING 21.07.2016 23 Result of renaming class ZCL_ACR_01 -> ZCL_ACR_02
  • 24. © Kaufland 2016 | ABAP CodeRetreat Weinsberg REFACTORING 21.07.2016 24 Refactoring a method (Ctrl+1) Refactoring a field (Ctrl+1) Refactoring a parameter of a method (Ctrl+1) ... and so on
  • 25. © Kaufland 2016 | ABAP CodeRetreat Weinsberg REFACTORING 21.07.2016 25 Rename in source unit (Ctrl+1) ... while renaming the field the dependencies in the source code will be automatically changed
  • 26. © Kaufland 2016 | ABAP CodeRetreat Weinsberg HISTORY 21.07.2016 26 Right click on source code – Compare With – Local History / Revision History… Revision History Local History
  • 27. © Kaufland 2016 | ABAP CodeRetreat Weinsberg HISTORY 21.07.2016 27 Mark 2 versions and right click – Compare with Each Other A new editor window opens with the comparison of both versions. This compare works also between projects (SAP systems).
  • 28. © Kaufland 2016 | ABAP CodeRetreat Weinsberg ABAP ELEMENT INFO 21.07.2016 28 Press F2 on any element ...
  • 29. © Kaufland 2016 | ABAP CodeRetreat Weinsberg ABAP DOC 21.07.2016 29 • With ABAP Doc you can write your documentation directly within your source code using special comments in front of a declarative statement • This means you can document globally available elements (like classes, interfaces and their method and attribute) but also local elements (like local variables and field-symbols)
  • 30. © Kaufland 2016 | ABAP CodeRetreat Weinsberg ABAP KEYWORDS COLORS 21.07.2016 30 Click Windows -> Preferences ...
  • 31. © Kaufland 2016 | ABAP CodeRetreat Weinsberg TRANSPORT ORGANIZER 21.07.2016 31 With the transport organizer you can edit transports (Release, Change Owner)
  • 32. © Kaufland 2016 | ABAP CodeRetreat Weinsberg SHORT CUTS 21.07.2016 32 Hit Ctrl + Shift + L to open the Short cut list Hit Ctrl + Shift + L again to edit or create Short cuts
  • 33. © Kaufland 2016 | ABAP CodeRetreat Weinsberg SHORT CUTS 21.07.2016 33 F2 Code Information Ctrl + L Goto Line F3 Navigate to Ctrl + M Maximize Active View or Editor F5 Refresh Ctrl + O Quic Outline Alt + U Delete unused variables (all) Ctrl + Q Last Edit Location Alt + F2 Show method Information Ctrl + T Quick Type Hierarchie Alt + F8 Run an ABAP development object Ctrl + U Display Mode Alt + PfeilOben Moves Lines Up Shift + F1 Pretty Printer Alt + Shift + A Toggle Block Selection Ctrl + F3 Activate Alt + Shift + B Show In Breadcrumb Ctrl + F6 Easily switch between the editor tabs (Like Tab for Windows) !! Alt + Shift + M Extract Method › Define Method Signature Ctrl + F7 Easily switch between all eclipse views Alt + Shift + W Show in ... Ctrl + F8 Easily switch between the perspectives Alt + Shift + Q Show View Ctrl + Alt + H Open Call Hierarchy Ctrl + 1 Quick Fix Ctrl + Alt + S, S Splitscreen vertikal Ctrl + 2 + R Rename Ctrl + Alt + S, F Splitscreen zurücknehmen Ctrl + 3 Quick Access Ctrl + Shift + A Open Development Object Ctrl + D Delete Line Ctrl + Shift + E Switch to Editor Ctrl + E Quick Switch Editor Ctrl + Shift + G ABAP Where-used List Ctrl + F Find / Replace Ctrl + Shift + N New (ABAP Repository Object) Ctrl + H Open File Search Ctrl + Shift + F2 Run ABAP Test Cockpit