SlideShare une entreprise Scribd logo
1  sur  13
ABAP Course

         Chapter 6 – Specialities for ERP software



Lecturer: André Bögelsack, UCC Technische Universität München
Author: Valentin Nicolescu, André Bögelsack
                  ABAP Course                     André Bögelsack, Valentin Nicolescu   1
Copyright 2008 UCC TU München
                              All rights reserved
   Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne
    die ausdrückliche schriftliche Genehmigung durch HCC TU München nicht gestattet. In dieser Publikation enthaltene Informationen können
    ohne vorherige Ankündigung geändert werden.
   Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® und SQL Server® sind eingetragene Marken der Microsoft Corporation.
   IBM®, DB2®, OS/2®, DB2/6000®, Parallel Sysplex®, MVS/ESA®, RS/6000®, AIX®, S/390®, AS/400®, OS/390® und OS/400® sind eingetragene
    Marken der IBM Corporation.
   ORACLE® ist eine eingetragene Marke der ORACLE Corporation.
   INFORMIX®-OnLine for SAP und Informix® Dynamic ServerTM sind eingetragene Marken der Informix Software Incorporated.
   UNIX®, X/Open®, OSF/1® und Motif® sind eingetragene Marken der Open Group.
   Citrix®, das Citrix-Logo, ICA®, Program Neighborhood®, MetaFrame®, WinFrame®, VideoFrame®, MultiWin® und andere hier erwähnte
    Namen von Citrix-Produkten sind Marken von Citrix Systems, Inc.
   HTML, DHTML, XML, XHTML sind Marken oder eingetragene Marken des W3C®, World Wide Web Consortium, Massachusetts Institute of
    Technology.
   JAVA® ist eine eingetragene Marke der Sun Microsystems, Inc.
   JAVASCRIPT® ist eine eingetragene Marke der Sun Microsystems, Inc., verwendet unter der Lizenz der von Netscape entwickelten und
    implementierten Technologie.
   SAP, SAP Logo, R/2, RIVA, R/3, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit,
    mySAP, mySAP.com und weitere im Text erwähnte SAP-Produkte und -Dienstleistungen sowie die entsprechenden Logos sind Marken oder
    eingetragene Marken der SAP AG in Deutschland und anderen Ländern weltweit. MarketSet und Enterprise Buyer sind gemeinsame
    Marken von SAP Markets und Commerce One.
   Alle anderen Namen von Produkten und Dienstleistungen sind Marken der jeweiligen Firmen.
   Die Verwendung der Screenshots wurde mit dem jeweiligen Eigner abgesprochen.




                               ABAP Course                                           André Bögelsack, Valentin Nicolescu               2
Agenda

1.   Authorizations
2.   Lock objects
3.   Logical units of work
4.   Updater




                ABAP Course            André Bögelsack, Valentin Nicolescu   3
Authorizations

•   Before starting a program user authorizations should always be
    checked
•   But: authorizations are not checked by the system
•   Every ABAP program has to check authorizations by itself
•   Different authorization levels: READ (01), CHANGE (02), DELETE
    (03) for every data set
•   Transaction: SU03




              ABAP Course                 André Bögelsack, Valentin Nicolescu   4
Locking concept

•    What happens when several users want to work on the same
     data set?  data inconsistency
•    Lock objects prevent simultaneous changes on data set
•    Beside the lock concept of the database, SAP implements its own
     lock concept
•    SAP does not use the database’s lock concept
•    Deadlock:
    – May occur when two programs wait for each other to lock data
      set
    – Rare


               ABAP Course                 André Bögelsack, Valentin Nicolescu   5
Locking concept

Modes:
1. Read lock = shared lock
   • Locks data set for reading
   • Several shared locks may exist on one data set at the same
       time
   • Prevents the SAP system from creating an exclusive lock on a
       data set
2. Write lock = exclusive lock
   • Locks data set for writing/changing
   • No shared locks, only one is allowed at the same time
   • First come, first serve

               ABAP Course                André Bögelsack, Valentin Nicolescu   6
Locking concept

Creation of a lock object:
•   Creation can be done in data
    dictionary (SE11)
•   One lock object per database
    table
•   Lock objects are generated
    automatically by using the
    primary key
•   There is only one lock object
    dealing with all lock modes



               ABAP Course           André Bögelsack, Valentin Nicolescu   7
Usage of lock objects

•    Two function modules are generated automatically when creating
     a lock object:
    – Enqueue_<lock object>  lock data set
    – Dequeue_<lock object>  unlock data set
•    Before writing/reading data set  lock data set
•    After writing/reading data set  unlock data set
•    In case of an error  unlock data set
•    Use button ‘PATTERN’ to avoid misspellings
•    Locks can be viewed and deleted in transaction SM12



               ABAP Course                André Bögelsack, Valentin Nicolescu   8
Generation of lock objects
                        Lock object
                        EZ_SPFLI




                          Activate



        Function                              Function
  ENQUEUE_ESFLIGHT                     DEQUEUE_ESFLIGHT


 Lock data set                       Unlock data set



          ABAP Course                     André Bögelsack, Valentin Nicolescu   9
ENQUEUE parameter‘s

Parameter                   Value     Meaning
mode_<tabname>              ‘S‘       Read lock (shared)
                            ‘X‘       Exclusive lock (not shared)
<lock parameter>            <value>   Field values used to lock the data set
_wait                       SPACE     If foreign lock, no new attempt
                            ‘X‘       If foreign lock, new attempt
_collect                    SPACE     Lock without local lock container
                            ‘X’       Lock with local lock container




                   ABAP Course                    André Bögelsack, Valentin Nicolescu   10
Logical unit of work (LUW)
                                     Logical unit of work (transaction)
                                                           breakdown
Process before
                                        Process after
 output (PBO)
                                       input (PAI) 100            Commit
     100
                    Dynpro
                     100

                               User input
                                                         Process before
                                                                                                           Process after
                                                          output (PBO)
                                                                                                          input (PAI) 200
                                                              200
                                                                                   Dynpro
    Scenario:                                                                       200
    What happens if a breakdown of the
    SAP system occurs in the middle of the                                                       User input
    transaction? What happens to the data?




                       ABAP Course                                  André Bögelsack, Valentin Nicolescu               11
Logical unit of work (LUW)

•    Problem:
    – New data sets are transferred into the database by each screen
    – Only if last screen of the program is reached and all data sets
        are written to the database the data are correct
•    Solution
    – Updates to database are written to the updater process
    – Only when last screen of the program is reached, the updater
        receives a trigger to write data to database (commit) or to
        dismiss (rollback)
     ensures data integrity


               ABAP Course                 André Bögelsack, Valentin Nicolescu   12
Logical unit of work (LUW)
•   Schema:                  Protocoll table
                                Data
                                  Data
                                    Data


            Data                                                         Data

                                           deletes
           1                                                                       3
       Work process                                             Work process
                                 2      5
          Program                                                      Updater

                                                                                   4
      Lock data set
                                                                     Database

               ABAP Course                   André Bögelsack, Valentin Nicolescu       13

Contenu connexe

Tendances

Understanding
Understanding Understanding
Understanding
Arun Gupta
 

Tendances (9)

Java: Finding Bugs, Fixing Bugs in IBM Domino Designer and XPages
Java: Finding Bugs, Fixing Bugs in IBM Domino Designer and XPagesJava: Finding Bugs, Fixing Bugs in IBM Domino Designer and XPages
Java: Finding Bugs, Fixing Bugs in IBM Domino Designer and XPages
 
Presenter manual oracle D2K (specially for summer interns)
Presenter manual oracle D2K (specially for summer interns)Presenter manual oracle D2K (specially for summer interns)
Presenter manual oracle D2K (specially for summer interns)
 
Understanding
Understanding Understanding
Understanding
 
01.egovFrame Training Book II
01.egovFrame Training Book II01.egovFrame Training Book II
01.egovFrame Training Book II
 
Cnc scala-presentation
Cnc scala-presentationCnc scala-presentation
Cnc scala-presentation
 
04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment Workshop04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment Workshop
 
02.egovFrame Development Environment training book
02.egovFrame Development Environment training book02.egovFrame Development Environment training book
02.egovFrame Development Environment training book
 
Oracle History #5
Oracle History #5Oracle History #5
Oracle History #5
 
Single API for library services (poster)
Single API for library services (poster)Single API for library services (poster)
Single API for library services (poster)
 

En vedette

Abap course chapter 7 abap objects and bsp
Abap course   chapter 7 abap objects and bspAbap course   chapter 7 abap objects and bsp
Abap course chapter 7 abap objects and bsp
Milind Patil
 
Abap course chapter 1 introduction and first program
Abap course   chapter 1 introduction and first programAbap course   chapter 1 introduction and first program
Abap course chapter 1 introduction and first program
Milind Patil
 
Abap course chapter 5 dynamic programs
Abap course   chapter 5 dynamic programsAbap course   chapter 5 dynamic programs
Abap course chapter 5 dynamic programs
Milind Patil
 
Lecture01 abap on line
Lecture01 abap on lineLecture01 abap on line
Lecture01 abap on line
Milind Patil
 
Lecture04 abap on line
Lecture04 abap on lineLecture04 abap on line
Lecture04 abap on line
Milind Patil
 
Abap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfilesAbap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfiles
Milind Patil
 
Abap course chapter 4 database accesses
Abap course   chapter 4 database accessesAbap course   chapter 4 database accesses
Abap course chapter 4 database accesses
Milind Patil
 
Abap course chapter 2 tools in the development environment
Abap course   chapter 2 tools in the development environmentAbap course   chapter 2 tools in the development environment
Abap course chapter 2 tools in the development environment
Milind Patil
 
Sap abap ppt
Sap abap pptSap abap ppt
Sap abap ppt
vonline
 
Abap query
Abap queryAbap query
Abap query
brtkow
 
Abap 7 02 new features - new string functions
Abap 7 02   new features - new string functionsAbap 7 02   new features - new string functions
Abap 7 02 new features - new string functions
Cadaxo GmbH
 
Comandos e funções em abap
Comandos e funções em abapComandos e funções em abap
Comandos e funções em abap
alienscorporation
 

En vedette (20)

Abap course chapter 7 abap objects and bsp
Abap course   chapter 7 abap objects and bspAbap course   chapter 7 abap objects and bsp
Abap course chapter 7 abap objects and bsp
 
Abap course chapter 1 introduction and first program
Abap course   chapter 1 introduction and first programAbap course   chapter 1 introduction and first program
Abap course chapter 1 introduction and first program
 
Abap course chapter 5 dynamic programs
Abap course   chapter 5 dynamic programsAbap course   chapter 5 dynamic programs
Abap course chapter 5 dynamic programs
 
Lecture01 abap on line
Lecture01 abap on lineLecture01 abap on line
Lecture01 abap on line
 
Introduction to ABAP
Introduction to ABAPIntroduction to ABAP
Introduction to ABAP
 
Lecture04 abap on line
Lecture04 abap on lineLecture04 abap on line
Lecture04 abap on line
 
Abap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfilesAbap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfiles
 
Abap course chapter 4 database accesses
Abap course   chapter 4 database accessesAbap course   chapter 4 database accesses
Abap course chapter 4 database accesses
 
Abap course chapter 2 tools in the development environment
Abap course   chapter 2 tools in the development environmentAbap course   chapter 2 tools in the development environment
Abap course chapter 2 tools in the development environment
 
SAP ABAP Lock concept and enqueue
SAP ABAP Lock concept and enqueueSAP ABAP Lock concept and enqueue
SAP ABAP Lock concept and enqueue
 
Sap abap ppt
Sap abap pptSap abap ppt
Sap abap ppt
 
ITSS Trainning | Curso de SAP ABAP Foundations
ITSS Trainning | Curso de SAP ABAP FoundationsITSS Trainning | Curso de SAP ABAP Foundations
ITSS Trainning | Curso de SAP ABAP Foundations
 
Abap query
Abap queryAbap query
Abap query
 
Analista programador SAP ABAP IV
Analista programador SAP ABAP IVAnalista programador SAP ABAP IV
Analista programador SAP ABAP IV
 
Qué es abap
Qué es abapQué es abap
Qué es abap
 
Web dynpro for abap
Web dynpro for abapWeb dynpro for abap
Web dynpro for abap
 
ABAP Test & Troubleshooting @SITMuc 2013
ABAP Test & Troubleshooting @SITMuc 2013ABAP Test & Troubleshooting @SITMuc 2013
ABAP Test & Troubleshooting @SITMuc 2013
 
Abap 7 02 new features - new string functions
Abap 7 02   new features - new string functionsAbap 7 02   new features - new string functions
Abap 7 02 new features - new string functions
 
Comandos e funções em abap
Comandos e funções em abapComandos e funções em abap
Comandos e funções em abap
 
View - Tutorial ABAP
View - Tutorial ABAPView - Tutorial ABAP
View - Tutorial ABAP
 

Similaire à Abap course chapter 6 specialities for erp software

Less04 database instance
Less04 database instanceLess04 database instance
Less04 database instance
Amit Bhalla
 
Adsa lab manual
Adsa lab manualAdsa lab manual
Adsa lab manual
Raja Ch
 
Ebs performance tuning session feb 13 2013---Presented by Oracle
Ebs performance tuning session  feb 13 2013---Presented by OracleEbs performance tuning session  feb 13 2013---Presented by Oracle
Ebs performance tuning session feb 13 2013---Presented by Oracle
Akash Pramanik
 

Similaire à Abap course chapter 6 specialities for erp software (20)

Don't Re-write Code to Get Better Analytics
Don't Re-write Code to Get Better AnalyticsDon't Re-write Code to Get Better Analytics
Don't Re-write Code to Get Better Analytics
 
Data guard &amp; nologging new features in 18c
Data guard &amp; nologging   new features in 18cData guard &amp; nologging   new features in 18c
Data guard &amp; nologging new features in 18c
 
openark-kit: MySQL utilities for everyday use
openark-kit: MySQL utilities for everyday useopenark-kit: MySQL utilities for everyday use
openark-kit: MySQL utilities for everyday use
 
AMIS Oracle OpenWorld 2013 Review Part 1 - Intro Overview Innovation, Hardwar...
AMIS Oracle OpenWorld 2013 Review Part 1 - Intro Overview Innovation, Hardwar...AMIS Oracle OpenWorld 2013 Review Part 1 - Intro Overview Innovation, Hardwar...
AMIS Oracle OpenWorld 2013 Review Part 1 - Intro Overview Innovation, Hardwar...
 
Less04 database instance
Less04 database instanceLess04 database instance
Less04 database instance
 
Adsa lab manual
Adsa lab manualAdsa lab manual
Adsa lab manual
 
EM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RACEM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RAC
 
Snowflake free trial_lab_guide
Snowflake free trial_lab_guideSnowflake free trial_lab_guide
Snowflake free trial_lab_guide
 
Snowflake_free_trial_LabGuide.pdf
Snowflake_free_trial_LabGuide.pdfSnowflake_free_trial_LabGuide.pdf
Snowflake_free_trial_LabGuide.pdf
 
Intro to Neo4j Ops Manager (NOM)
Intro to Neo4j Ops Manager (NOM)Intro to Neo4j Ops Manager (NOM)
Intro to Neo4j Ops Manager (NOM)
 
Ebs performance tuning session feb 13 2013---Presented by Oracle
Ebs performance tuning session  feb 13 2013---Presented by OracleEbs performance tuning session  feb 13 2013---Presented by Oracle
Ebs performance tuning session feb 13 2013---Presented by Oracle
 
Snowflake_free_trial_LabGuide.pdf
Snowflake_free_trial_LabGuide.pdfSnowflake_free_trial_LabGuide.pdf
Snowflake_free_trial_LabGuide.pdf
 
INTRODUCTION TO MACHINE LEARNING FOR MATERIALS SCIENCE
INTRODUCTION TO MACHINE LEARNING FOR MATERIALS SCIENCEINTRODUCTION TO MACHINE LEARNING FOR MATERIALS SCIENCE
INTRODUCTION TO MACHINE LEARNING FOR MATERIALS SCIENCE
 
Łukasz Romaszewski on Internet of Things Raspberry Pi and Java Embedded JavaC...
Łukasz Romaszewski on Internet of Things Raspberry Pi and Java Embedded JavaC...Łukasz Romaszewski on Internet of Things Raspberry Pi and Java Embedded JavaC...
Łukasz Romaszewski on Internet of Things Raspberry Pi and Java Embedded JavaC...
 
Ohio Linux Fest -- MySQL's NoSQL
Ohio Linux Fest -- MySQL's NoSQLOhio Linux Fest -- MySQL's NoSQL
Ohio Linux Fest -- MySQL's NoSQL
 
InduSoft Database Redundancy Webinar
InduSoft Database Redundancy WebinarInduSoft Database Redundancy Webinar
InduSoft Database Redundancy Webinar
 
Extending DevOps to Big Data Applications with Kubernetes
Extending DevOps to Big Data Applications with KubernetesExtending DevOps to Big Data Applications with Kubernetes
Extending DevOps to Big Data Applications with Kubernetes
 
Getting optimal performance from oracle e-business suite presentation
Getting optimal performance from oracle e-business suite presentationGetting optimal performance from oracle e-business suite presentation
Getting optimal performance from oracle e-business suite presentation
 
Top 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseTop 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous Database
 
Less14 br concepts
Less14 br conceptsLess14 br concepts
Less14 br concepts
 

Plus de Milind Patil

Step by step abap_input help or lov
Step by step abap_input help or lovStep by step abap_input help or lov
Step by step abap_input help or lov
Milind Patil
 
Step bystep abap_fieldhelpordocumentation
Step bystep abap_fieldhelpordocumentationStep bystep abap_fieldhelpordocumentation
Step bystep abap_fieldhelpordocumentation
Milind Patil
 
Step bystep abap_field help or documentation
Step bystep abap_field help or documentationStep bystep abap_field help or documentation
Step bystep abap_field help or documentation
Milind Patil
 
Abap slides user defined data types and data
Abap slides user defined data types and dataAbap slides user defined data types and data
Abap slides user defined data types and data
Milind Patil
 
Abap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checksAbap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checks
Milind Patil
 
Step bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecordStep bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecord
Milind Patil
 
Abap slide lockenqueuedataclustersauthchecks
Abap slide lockenqueuedataclustersauthchecksAbap slide lockenqueuedataclustersauthchecks
Abap slide lockenqueuedataclustersauthchecks
Milind Patil
 
Abap slide exceptionshandling
Abap slide exceptionshandlingAbap slide exceptionshandling
Abap slide exceptionshandling
Milind Patil
 
Step bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecordStep bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecord
Milind Patil
 
Lecture16 abap on line
Lecture16 abap on lineLecture16 abap on line
Lecture16 abap on line
Milind Patil
 
Lecture14 abap on line
Lecture14 abap on lineLecture14 abap on line
Lecture14 abap on line
Milind Patil
 
Lecture13 abap on line
Lecture13 abap on lineLecture13 abap on line
Lecture13 abap on line
Milind Patil
 
Lecture12 abap on line
Lecture12 abap on lineLecture12 abap on line
Lecture12 abap on line
Milind Patil
 
Lecture11 abap on line
Lecture11 abap on lineLecture11 abap on line
Lecture11 abap on line
Milind Patil
 
Lecture10 abap on line
Lecture10 abap on lineLecture10 abap on line
Lecture10 abap on line
Milind Patil
 
Lecture09 abap on line
Lecture09 abap on lineLecture09 abap on line
Lecture09 abap on line
Milind Patil
 
Lecture08 abap on line
Lecture08 abap on lineLecture08 abap on line
Lecture08 abap on line
Milind Patil
 

Plus de Milind Patil (20)

Step by step abap_input help or lov
Step by step abap_input help or lovStep by step abap_input help or lov
Step by step abap_input help or lov
 
Step bystep abap_fieldhelpordocumentation
Step bystep abap_fieldhelpordocumentationStep bystep abap_fieldhelpordocumentation
Step bystep abap_fieldhelpordocumentation
 
Step bystep abap_field help or documentation
Step bystep abap_field help or documentationStep bystep abap_field help or documentation
Step bystep abap_field help or documentation
 
Abap slides user defined data types and data
Abap slides user defined data types and dataAbap slides user defined data types and data
Abap slides user defined data types and data
 
Abap slides set1
Abap slides set1Abap slides set1
Abap slides set1
 
Abap slide class3
Abap slide class3Abap slide class3
Abap slide class3
 
Abap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checksAbap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checks
 
Step bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecordStep bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecord
 
Abap slide lockenqueuedataclustersauthchecks
Abap slide lockenqueuedataclustersauthchecksAbap slide lockenqueuedataclustersauthchecks
Abap slide lockenqueuedataclustersauthchecks
 
Abap slide exceptionshandling
Abap slide exceptionshandlingAbap slide exceptionshandling
Abap slide exceptionshandling
 
Step bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecordStep bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecord
 
Abap reports
Abap reportsAbap reports
Abap reports
 
Lecture16 abap on line
Lecture16 abap on lineLecture16 abap on line
Lecture16 abap on line
 
Lecture14 abap on line
Lecture14 abap on lineLecture14 abap on line
Lecture14 abap on line
 
Lecture13 abap on line
Lecture13 abap on lineLecture13 abap on line
Lecture13 abap on line
 
Lecture12 abap on line
Lecture12 abap on lineLecture12 abap on line
Lecture12 abap on line
 
Lecture11 abap on line
Lecture11 abap on lineLecture11 abap on line
Lecture11 abap on line
 
Lecture10 abap on line
Lecture10 abap on lineLecture10 abap on line
Lecture10 abap on line
 
Lecture09 abap on line
Lecture09 abap on lineLecture09 abap on line
Lecture09 abap on line
 
Lecture08 abap on line
Lecture08 abap on lineLecture08 abap on line
Lecture08 abap on line
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Abap course chapter 6 specialities for erp software

  • 1. ABAP Course Chapter 6 – Specialities for ERP software Lecturer: André Bögelsack, UCC Technische Universität München Author: Valentin Nicolescu, André Bögelsack ABAP Course André Bögelsack, Valentin Nicolescu 1
  • 2. Copyright 2008 UCC TU München All rights reserved  Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne die ausdrückliche schriftliche Genehmigung durch HCC TU München nicht gestattet. In dieser Publikation enthaltene Informationen können ohne vorherige Ankündigung geändert werden.  Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® und SQL Server® sind eingetragene Marken der Microsoft Corporation.  IBM®, DB2®, OS/2®, DB2/6000®, Parallel Sysplex®, MVS/ESA®, RS/6000®, AIX®, S/390®, AS/400®, OS/390® und OS/400® sind eingetragene Marken der IBM Corporation.  ORACLE® ist eine eingetragene Marke der ORACLE Corporation.  INFORMIX®-OnLine for SAP und Informix® Dynamic ServerTM sind eingetragene Marken der Informix Software Incorporated.  UNIX®, X/Open®, OSF/1® und Motif® sind eingetragene Marken der Open Group.  Citrix®, das Citrix-Logo, ICA®, Program Neighborhood®, MetaFrame®, WinFrame®, VideoFrame®, MultiWin® und andere hier erwähnte Namen von Citrix-Produkten sind Marken von Citrix Systems, Inc.  HTML, DHTML, XML, XHTML sind Marken oder eingetragene Marken des W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.  JAVA® ist eine eingetragene Marke der Sun Microsystems, Inc.  JAVASCRIPT® ist eine eingetragene Marke der Sun Microsystems, Inc., verwendet unter der Lizenz der von Netscape entwickelten und implementierten Technologie.  SAP, SAP Logo, R/2, RIVA, R/3, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP, mySAP.com und weitere im Text erwähnte SAP-Produkte und -Dienstleistungen sowie die entsprechenden Logos sind Marken oder eingetragene Marken der SAP AG in Deutschland und anderen Ländern weltweit. MarketSet und Enterprise Buyer sind gemeinsame Marken von SAP Markets und Commerce One.  Alle anderen Namen von Produkten und Dienstleistungen sind Marken der jeweiligen Firmen.  Die Verwendung der Screenshots wurde mit dem jeweiligen Eigner abgesprochen. ABAP Course André Bögelsack, Valentin Nicolescu 2
  • 3. Agenda 1. Authorizations 2. Lock objects 3. Logical units of work 4. Updater ABAP Course André Bögelsack, Valentin Nicolescu 3
  • 4. Authorizations • Before starting a program user authorizations should always be checked • But: authorizations are not checked by the system • Every ABAP program has to check authorizations by itself • Different authorization levels: READ (01), CHANGE (02), DELETE (03) for every data set • Transaction: SU03 ABAP Course André Bögelsack, Valentin Nicolescu 4
  • 5. Locking concept • What happens when several users want to work on the same data set?  data inconsistency • Lock objects prevent simultaneous changes on data set • Beside the lock concept of the database, SAP implements its own lock concept • SAP does not use the database’s lock concept • Deadlock: – May occur when two programs wait for each other to lock data set – Rare ABAP Course André Bögelsack, Valentin Nicolescu 5
  • 6. Locking concept Modes: 1. Read lock = shared lock • Locks data set for reading • Several shared locks may exist on one data set at the same time • Prevents the SAP system from creating an exclusive lock on a data set 2. Write lock = exclusive lock • Locks data set for writing/changing • No shared locks, only one is allowed at the same time • First come, first serve ABAP Course André Bögelsack, Valentin Nicolescu 6
  • 7. Locking concept Creation of a lock object: • Creation can be done in data dictionary (SE11) • One lock object per database table • Lock objects are generated automatically by using the primary key • There is only one lock object dealing with all lock modes ABAP Course André Bögelsack, Valentin Nicolescu 7
  • 8. Usage of lock objects • Two function modules are generated automatically when creating a lock object: – Enqueue_<lock object>  lock data set – Dequeue_<lock object>  unlock data set • Before writing/reading data set  lock data set • After writing/reading data set  unlock data set • In case of an error  unlock data set • Use button ‘PATTERN’ to avoid misspellings • Locks can be viewed and deleted in transaction SM12 ABAP Course André Bögelsack, Valentin Nicolescu 8
  • 9. Generation of lock objects Lock object EZ_SPFLI Activate Function Function ENQUEUE_ESFLIGHT DEQUEUE_ESFLIGHT  Lock data set  Unlock data set ABAP Course André Bögelsack, Valentin Nicolescu 9
  • 10. ENQUEUE parameter‘s Parameter Value Meaning mode_<tabname> ‘S‘ Read lock (shared) ‘X‘ Exclusive lock (not shared) <lock parameter> <value> Field values used to lock the data set _wait SPACE If foreign lock, no new attempt ‘X‘ If foreign lock, new attempt _collect SPACE Lock without local lock container ‘X’ Lock with local lock container ABAP Course André Bögelsack, Valentin Nicolescu 10
  • 11. Logical unit of work (LUW) Logical unit of work (transaction) breakdown Process before Process after output (PBO) input (PAI) 100 Commit 100 Dynpro 100 User input Process before Process after output (PBO) input (PAI) 200 200 Dynpro Scenario: 200 What happens if a breakdown of the SAP system occurs in the middle of the User input transaction? What happens to the data? ABAP Course André Bögelsack, Valentin Nicolescu 11
  • 12. Logical unit of work (LUW) • Problem: – New data sets are transferred into the database by each screen – Only if last screen of the program is reached and all data sets are written to the database the data are correct • Solution – Updates to database are written to the updater process – Only when last screen of the program is reached, the updater receives a trigger to write data to database (commit) or to dismiss (rollback)  ensures data integrity ABAP Course André Bögelsack, Valentin Nicolescu 12
  • 13. Logical unit of work (LUW) • Schema: Protocoll table Data Data Data Data Data deletes 1 3 Work process Work process 2 5 Program Updater 4  Lock data set Database ABAP Course André Bögelsack, Valentin Nicolescu 13