ABAP Chapter 6 Message Debugging File Transfer Type Group.

Slides:



Advertisements
Similar presentations
ABAP Chapter 5 Modularization Catch Statement.
Advertisements

1 Input/Output and Debugging  How to use IO Streams  How to debug programs.
Visit : Call Us: US: , India:
Visit : Call Us: US: , India:
ABAP/4 PROGRAMMING Internal Table 講 師:呂 昇 燦 2000 年 9 月 26 日.
Utilizing the GDB debugger to analyze programs Background and application.
With Microsoft Excel 2007 Comprehensive 1e© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2007 Comprehensive.
ABAP Chapter 2 Report Statement Write & Format Statement Flow Control in ABAP Manipulating Character Data Report Driven : Page Report (List Header)
Enhanced Vision controllers SD Cards Utilities. What can I do with an SD card? Use SD Ladder functions to: Log data to OS defined file - up to 2 millions.
Simple ABAP/4 for trouble shooting May 25th, 2004.
 SAP AG CSU Chico Searching and Selecting Data from R/3 ABAP/4 class Gail Corbitt - Fall 1998.
FILE TRANSFER PROTOCOL Short for File Transfer Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for transferring.
Chapter 9: Advanced SQL and PL/SQL Topics Guide to Oracle 10g.
True BASIC Ch. 6 Practice Questions. What is the output? PRINT X LET X = -1 PRINT X FOR X = 4 TO 5 STEP 2 PRINT X NEXT X PRINT X END.
Linux+ Guide to Linux Certification, Second Edition
Shell Programming, or Scripting Shirley Moore CPS 5401 Fall August 29,
ABAP Chapter 3 Open SQL Internal Table. SAP System : 3 Tier Client/Server DB Server SAP Application Server SAP GUI Presentation Server SAP GUI.
0 UMN 2011 ERP Terapan ABAP Introduction Session # 8.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
ABAP/4 Course. General n Workbench n Program maintenance n Screen Painter n Menu Painter n Transactions n ABAP/4 Query n Translation menu.
Week 7 Working with the BASH Shell. Objectives  Redirect the input and output of a command  Identify and manipulate common shell environment variables.
Shell Scripting Introduction. Agenda What is Shell Scripting? Why use Shell Scripting? Writing and Running a Shell Script Basic Commands -ECHO - REM.
Agenda Using vi Editor Starting vi Session Command / Input Modes Entering Text Editing Text Saving vi Session Aborting Editing Session.
0 UMN 2011 ERP Terapan Dialogs Programming Session # 11.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification Chapter Eight Working with the BASH Shell.
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.
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
Indexed and Relative File Processing
ITEC3612 Enterprise Architecture and Resource Planning (Lab) ABAP Programming (2)
Module 6: Debugging a Windows CE Image.  Overview Debug Zones IDE Debug Setup IDE Debug Commands Platform Builder Integrated Kernel Debugger Other Debugging.
Chapter 15 Introduction to PL/SQL. Chapter Objectives  Explain the benefits of using PL/SQL blocks versus several SQL statements  Identify the sections.
5 1 Data Files CGI/Perl Programming By Diane Zak.
Report Layout Report Heading Report Body Column Heading Report Title.
Chapter 9: Advanced SQL and PL/SQL Guide to Oracle 10g.
ABAP Programming MINS298c Fall Overview Hiding in ABAP Primitive Pagination ABAP does Windows Making Messages Assignments.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
Shell Scripting – Putting it All Together. Agenda Escaping Characters Wildcards Redirecting Output Chaining and Conditional Chaining Unnamed and Named.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
ABAP/4 PROGRAMMING Data Dictionary(1) 講 師:呂 昇 燦. Data Browser - SE16 ABAP Workbench tool for displaying information about table entries. You use the Data.
1 EXCEL Interface Northern Arizona University College of Business.
SELECT-OPTIONS. SELECT-OPTIONS Syntax TABLES customers. SELECT-OPTIONS id FOR customers-id. START-OF-SELECTION.
File Handling in QBASIC
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
SAP DEVELOPMENT BASICS Bohuslav Tesar. TRAINING OVERVIEW Amazing life of ABAP developer ;) SAP introduction ABAP basics ABAP Reporting.
Quick Test Professional 9.2. Testing Process Preparing to Record Recording Enhancing a Test Debugging Running the Test and Analyzing the Results Reporting.
Oracle10g Developer: PL/SQL Programming1 Objectives Named program units How to identify parameters The CREATE PROCEDURE statement Creating a procedure.
CIT 590 Intro to Programming Files etc. Agenda Files Try catch except A module to read html off a remote website (only works sometimes)
ABAP 楊子青 Dialog2-1 Screen Element for Output n Text Fields –Dynamic Screen Modifications n Status Icons n Group Boxes n 實例.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
FILES AND EXCEPTIONS Topics Introduction to File Input and Output Using Loops to Process Files Processing Records Exceptions.
0 1. Upgrade 에 따른 File Controlling Issue - SAP 에서는 향후 ‘WS_’ 로 시작하는 기존의 Function Module 들을 사용하지 말고 CL_GUI_FRONTEND_SERVICES Class 의 Method 를 사용할 것을 권고함.
Xxx Presentation, No 1 Copyright © TAC AB Engineering Classic Networks1.
SPECTO TRAINING contact us: , mail :
ABAP Workbench Fundamentals
Dept. of Information Systems St. Francis Xavier University
Creating Data Base & Sql Data Source
Chapter 2: The Visual Studio .NET Development Environment
COMPUTER ACCOUNTING WITH QUICKBOOKS 2015
Download/Upload Receipts
SAP ABAP Online Training
Final Project: Read from a csv file and write to a database table
Upload/Download Receipts
Topics Introduction to File Input and Output
Chapter 7 Files and Exceptions
Creating Data Base & Sql Data Source
CPS120: Introduction to Computer Science
Topics Introduction to File Input and Output
Screen Elements for Input/Output
Presentation transcript:

ABAP Chapter 6 Message Debugging File Transfer Type Group

Message in ABAP

User Messages  If user has entered inconsistent values,you output a dialog message with MESSAGE statement  Dialog messages are stored in table T100 (Transaction : SE91) report ztest. …. AT SELECTION-SCREEN. … message e000(38) with ‘----’ ‘---’ ‘---’ ‘---’. …

Message Type Message Type Syntax Message [ A ](message class) with … E, W, I, S

Messages Type - A(Abend) Message A000(38)... Program Start Selection Screen A Message Exit

Messages Type - E(Error) Message E 000(38)... Program Start Selection Screen E Message New input Require

Messages Type - W(Warning) Message W 000(38)... Program Start Selection Screen W Message New input possible List Enter

Messages Type - I(Information) Message I 000(38)... Program Start Selection Screen I Message List Enter

Messages Type - S(Success) Message S 000(38)... Program Start Selection Screen List (Next Screen)

Dynamic Message Report ztest1. Parameters today like sy-datum. At selection-screen. if today <> sy-datum. message e000(38) with ‘Please enter today :’ sy-datum. endif. Start-of-selection. Write: / ‘Today is :’, today.

Debugging

Debugging Mode

Debugging Mode : Internal Table

Debugging Mode : Watchpoint

Watchpoint : SAP ECC 6.0

How to Set Debugging Mode  If you want to test transaction,enter /h in the command field,press ENTER and execute the transaction  Set breakpoints in the program Utilities->Breakpoints->Set  Uses BREAK-POINT statement

ABAP Practice

File Transfer

File Transfer (Application Server)  There are 3 steps for file transfer Open File Read/Write File Close File

File Transfer * Prepare Internal Table Data all_customers like customers occurs 0 with header line. Data msg_txt(50). Parameters filename(128) default ‘customersdata.txt’ lower case. Start-of-selection. Select * from customers into table all_customers.

File Transfer * Opening a file Open dataset filename for output in text mode encoding default message msg_txt. If sy-subrc <> 0. Write: ‘File cannot be opened.Reason :’,msg_txt. else.

* Transferring data to a file Loop at all_customers. Transfer all_customers to filename. Endloop. * Closing a file Close dataset filename. Endif. File Transfer

Transaction : AL11

File Transfer (Appending Data) * Opening a file Open dataset filename for appending in text mode encoding default message msg_txt. If sy-subrc <> 0. Write: ‘File cannot be opened.Reason :’,msg_txt. else....

Reading Data from OS File * Reading data from a file Parameters filename(128) default ‘customersdata.txt’ lower case. Data msg_txt(50). Data all_customers like customers occurs 0 with header line. Start-of-selection. Open dataset filename for input in text mode encoding default message msg_txt. If sy-subrc <> 0. Write: ‘File cannot be opened.Reason :’,msg_txt. else.

Reading Data from OS File Do. Read dataset filename into all_customers. if sy-subrc <> 0. Exit. endif. Append all_customers. Enddo. Close dataset filename. Endif.

Deleting OS File Parameters filename(128) default ‘customersdata.txt’ lower case. START-OF-SELECTION. Delete dataset filename. If sy-subrc = 0. write: / ‘Delete OK’. Endif.

Working with File on Presentation Server

Download Data to PC * Download data from PC parameters filename like rlgrap-filename default ‘c:\customers.txt’. Data all_customers like customers occurs 0 with header line. START-OF-SELECTION. Select * from customers into table all_customres.

Download Data to PC CALL FUNCTION ‘DOWNLOAD’ Exporting filename = filename Tables data_tab = all_customers Exceptions file_open_error = 1 … others = 5.

Download Data to PC Case sy-subrc. When 1. Write: ‘Error when file opened’. When 2. Write: ‘Error during data transfer’. … When 0. Write: / ‘Data Download Finish’. Endcase.

Upload Data from PC * Upload data to PC parameters filename like rlgrap-filename default ‘c:\customers.txt’. Data all_customers like customers occurs 0 with header line. START-OF-SELECTION.

Upload Data from PC CALL FUNCTION ‘UPLOAD’ Exporting filename = filename Tables data_tab = all_customers Exceptions file_open_error = 1 … others = 5.

Upload Data from PC Case sy-subrc. When 1. Write: ‘Error when file opened’. When 2. Write: ‘Error during data transfer’. … When 0. Insert customers from table all_customers. … Endcase.

Upload/Download Data in Background Call function ‘WS_DOWNLOAD’ Exporting filename = filename... and Call function ‘WS_UPLOAD’ Exporting filename = filename...

Type Group : SE11

Type Group ABAP Program

Exercise IV

Exercise III : User Master usr02-bname usr02-trdat adcp-tel_number

Exercise IV : Drill-Down Report