ABAP and Stuff MINS298c-01 Fall 1998. Overview Control Break Logic in ABAP Nested Selects Debugger Extended Check Runtime Comparisons.

Slides:



Advertisements
Similar presentations
SAP Performance & Tuning Bonus material for 201 ABAP Interview Questions Material code : BM02 Author.
Advertisements

ABAP Chapter 5 Modularization Catch Statement.
 SAP AG CSU Chico MINS298c Fall 1998 Three Levels of ABAP Dictionary Chapter 5 & 6.
ABAP/4 PROGRAMMING Internal Table 講 師:呂 昇 燦 2000 年 9 月 26 日.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Data Structures: A Pseudocode Approach with C
Introduction to the ABAP Data Dictionary
Mark Dixon Page 1 05 – Database Design: Sub-forms.
Example Presentation Something to Show. Basic Title & Content Point to be made Number One Point to be made Number Two Point to be made Number Three.
General Computer Science for Engineers CISC 106 Lecture 21 Dr. John Cavazos Computer and Information Sciences 04/10/2009.
University of Southern California Enterprise Wide Information Systems ABAP/ 4 Programming Language Instructor: Richard W. Vawter.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
How to Debug VB .NET Code.
Flow of Control MINS298c Fall 1998 Chapter 9. Overview ABAP Programming Structures for: –Iteration –Decisions Control Flow –If … Then –Do & While loops.
Guidelines for working with Microsoft Visual Studio 6.
Chapter 12: Advanced Topics: Exception Handling Visual Basic.NET Programming: From Problem Analysis to Program Design.
ABAP Chapter 3 Open SQL Internal Table. SAP System : 3 Tier Client/Server DB Server SAP Application Server SAP GUI Presentation Server SAP GUI.
Control Break Report ALV Report
Programming Intro Problem Solving: 1)Understand the problem This often involves breaking the problem into manageable pieces 2) Develop a plan May develop.
ABAP/4 Course. General n Workbench n Program maintenance n Screen Painter n Menu Painter n Transactions n ABAP/4 Query n Translation menu.
SAP ABAP DemoNawin's Training Acadamy1. Enterprise Wide Information Systems ABAP/ 4 Programming Language Mr. RG Nawin Krishna, Bsc(cs);Msc(psychology);MBA(HR);SAP(HCM/HR),
BİL528 – Bilgisayar Programlama II Making Decisions, Loops, Debugging, Designing Objects Using Classes 1.
User Dialog Overview. Update Statement TABLES customers. SELECT SINGLE * FROM customers WHERE id = 1. IF sy-subrc = 0. customers-name = ‘John’. UPDATE.
Introduction to ABAP Selection Screens. Slide 2 Screens (Types) There are three types of screens Selection screens get parameter input for reports List.
Testing and Debugging Session 9 LBSC 790 / INFM 718B Building the Human-Computer Interface.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
The C# language fundamentals ( II ) Po Feng, Tsai.
Making Good Code AKA: So, You Wrote Some Code. Now What? Ray Haggerty July 23, 2015.
Data Structures and Debugging Dr. Nancy Warter-Perez June 18, 2003.
ITEC3612 Enterprise Architecture and Resource Planning (Lab) ABAP Programming (2)
Forms and Subforms 5.02 Understand database queries, forms, and reports used in business.
Main Title Here Additional copy here, additional copy here, additional copy here, additional copy here, additional copy here. ADD YOUR WEB ADDRESS HERE.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
SELECT-OPTIONS. SELECT-OPTIONS Syntax TABLES customers. SELECT-OPTIONS id FOR customers-id. START-OF-SELECTION.
SAP DEVELOPMENT BASICS Bohuslav Tesar. TRAINING OVERVIEW Amazing life of ABAP developer ;) SAP introduction ABAP basics ABAP Reporting.
Debug in Visual Studio Windows Development Fundamentals LESSON 2.5A.
5.01 Understand Different Types of Programming Errors
Decision Statements, Short- Circuit Evaluation, Errors.
Introduction to ABAP/4 A dvanced B usiness A pplication P rogram – Release 4 Why Use ABAP? –Programming language of SAP –Main purpose is to provide additional.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
An introduction to the debugger And jGrasp editor-syncrasies (ideosyncrasies)
1 Advanced.Net Debugging Using Visual Studio, R# and OzCode IT Week, Summer 2015.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
SAP Tuning 실무 SK㈜ ERP TFT.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
ABAP Workbench Fundamentals
CHAPTER 4 DECISIONS & LOOPS
Using Advanced Functions and Conditional Formatting
5.01 Understand Different Types of Programming Errors
© 2016, Mike Murach & Associates, Inc.
CprE 185: Intro to Problem Solving (using C)
Component 1.6.
Recent trends in estimation methodologies
Intermediate Programming with GroupWise® C3POs™
CS1101X Programming Methodology
Computer Programming I
ABAP Objects Abap Proxy
Chapter 5 Repetition.
5.01 Understand Different Types of Programming Errors
Debugging with Eclipse
Debuggers.
Program Design Introduction to Computer Programming By:
Subroutines and Functions
DEBUGGING JAVA PROGRAMS USING ECLIPSE DEBUGGER
Iteration: Beyond the Basic PERFORM
Tonga Institute of Higher Education
jGRASP editor-syncrasies (idiosyncrasies)
Building Queries using the Principle of Simplest Query (POSQ)
Main Title Here ADD YOUR WEB ADDRESS HERE
Data Hazard Example (no stalls).
Presentation transcript:

ABAP and Stuff MINS298c-01 Fall 1998

Overview Control Break Logic in ABAP Nested Selects Debugger Extended Check Runtime Comparisons

Control Breaks Made Easy Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP. Terr Region Total A B C

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

Control Breaks Made Easy Terr Region Total A B C Data: TR_TAB like TERR_REGION occurs 0 with header line. LOOP AT TR_TAB. AT FIRST. WRITE: ‘ Terr Region Total’. ENDAT. AT NEW Terr. VLINE. Sub = 0. WRITE Terr. ENDAT. ADD Count to Sub. WRITE: Region, Count. AT END OF Region. WRITE: Sub. ADD Sub to Total. ENDAT. AT LAST: WRITE: Total. ENDAT. ENDLOOP.

On Change Of You control the logic Example Perform Headings LOOP AT TR_TAB ON CHANGE OF Region Perform Region_Break. ON CHANGE OF Terr Perform Region_Break. Perform Terr_Break. ENDLOOP. Perform Region_Break. Perform Terr_Break. Perform Footings.

Nested Selects (p236) What is the outcome of the following nested selects Example Select * From Customers Select * From Bookings Where Customerid = Customer-id and order_date = ‘ ’. Write: / customers-name, bookings-fldate. Endselect. What can you tell about the relationship between the Tables?

Debugger (p597) Allows you to –watch program execute step by step –check contents of fields tables –change contents –establish breakpoints

Extended Check (p596) Catches inconsistencies –unreachable code –uncalled subroutines notifies you of potential problems may explain unexpected results

Runtime Comparisons Given that there are many ways to accomplish the same thing in ABAP, SAP provides a means to compare them side by side. Predefined comparisons Can put own code in Use SE30 to run comparisons