SlideShare a Scribd company logo
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)  r eport  ztest . … . AT SELECTION-SCREEN. … m essage  e 000 (38) with ‘----’   ‘---’ ‘---’ ‘---’ .  …
Message Type Syntax Message  [  A < nnn > ] ( message class )   with  < field1 >  < field2 > … 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  s election-screen. if  today  <>  sy-datum. m essage  e000(38)  with ‘ Please enter today : ’  sy-datum . endif. Start-of-selection. Write: / ‘ Today is  :’, t oday .
Debugging
Debugging Mode
Debugging Mode : Internal Table
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 ‘cust omersdata .t xt ’ 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.
File Transfer * Transferring data to a file Loop at all_customers. Transfer  all_customers  to  filename. Endloop.  * Closing a file Close dataset filename.  Endif.
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 ‘cust omersdata .t xt ’ 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 ‘cust omersdata . 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:\cust omers .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 C ALL   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:\cust omers .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_UP LOAD’ 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

More Related Content

What's hot (20)

PPT
ABAP Programming Overview
sapdocs. info
 
PPT
Modularization & Catch Statement
sapdocs. info
 
PPT
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
Garuda Trainings
 
PPT
Ab1011 module pool programming
Satheesh Kanna
 
PPTX
SAP Smart forms
Jugul Crasta
 
PDF
Table maintenance generator and its modifications
scribid.download
 
DOC
Badi document
hamisha_malik
 
PPT
abap list viewer (alv)
Kranthi Kumar
 
PPTX
SAP Modularization techniques
Jugul Crasta
 
PPTX
Object oriented approach to ALV Lists in ABAP
Noman Mohamed Hanif
 
PDF
Sap Abap Reports
vbpc
 
PDF
Bapi step-by-step
mateenjambagi
 
PPT
Module pool programming
Subhojit- Opekkhay
 
PPT
ABAP Message, Debugging, File Transfer and Type Group
sapdocs. info
 
PPT
0104 abap dictionary
vkyecc1
 
DOC
Basic Debugging
Sathish Kumar G
 
PPTX
Reports
Jugul Crasta
 
PPT
Call transaction method
Kranthi Kumar
 
DOCX
Badis
Rajesh Kumar
 
DOC
Sap abap interview questions
kssr99
 
ABAP Programming Overview
sapdocs. info
 
Modularization & Catch Statement
sapdocs. info
 
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
Garuda Trainings
 
Ab1011 module pool programming
Satheesh Kanna
 
SAP Smart forms
Jugul Crasta
 
Table maintenance generator and its modifications
scribid.download
 
Badi document
hamisha_malik
 
abap list viewer (alv)
Kranthi Kumar
 
SAP Modularization techniques
Jugul Crasta
 
Object oriented approach to ALV Lists in ABAP
Noman Mohamed Hanif
 
Sap Abap Reports
vbpc
 
Bapi step-by-step
mateenjambagi
 
Module pool programming
Subhojit- Opekkhay
 
ABAP Message, Debugging, File Transfer and Type Group
sapdocs. info
 
0104 abap dictionary
vkyecc1
 
Basic Debugging
Sathish Kumar G
 
Reports
Jugul Crasta
 
Call transaction method
Kranthi Kumar
 
Badis
Rajesh Kumar
 
Sap abap interview questions
kssr99
 

Viewers also liked (13)

PPT
Dialog Programming Overview
sapdocs. info
 
PPT
SAP Accounts Reveivable Functions | http://sapdocs.info
sapdocs. info
 
PPT
SAP Accounts Reveivable Customer Master | http://sapdocs.info
sapdocs. info
 
PPT
07.Advanced Abap
sapdocs. info
 
PPT
SAP Accounts Reveivable Introduction | http://sapdocs.info
sapdocs. info
 
PPT
HR ABAP Technical Overview | http://sapdocs.info/
sapdocs. info
 
PPT
08.Abap Dialog Programming Overview
sapdocs. info
 
PPT
ABAP Open SQL & Internal Table
sapdocs. info
 
PDF
ABAP for Beginners - www.sapdocs.info
sapdocs. info
 
PDF
HR ABAP Programming Training Material | http://sapdocs.info
sapdocs. info
 
PPT
SAP Accounts Payable Payment | http://sapdocs.info
sapdocs. info
 
PPT
Introduction to ABAP
sapdocs. info
 
PDF
SAP FICO BBP Sample Document PDF NEW!
sapdocs. info
 
Dialog Programming Overview
sapdocs. info
 
SAP Accounts Reveivable Functions | http://sapdocs.info
sapdocs. info
 
SAP Accounts Reveivable Customer Master | http://sapdocs.info
sapdocs. info
 
07.Advanced Abap
sapdocs. info
 
SAP Accounts Reveivable Introduction | http://sapdocs.info
sapdocs. info
 
HR ABAP Technical Overview | http://sapdocs.info/
sapdocs. info
 
08.Abap Dialog Programming Overview
sapdocs. info
 
ABAP Open SQL & Internal Table
sapdocs. info
 
ABAP for Beginners - www.sapdocs.info
sapdocs. info
 
HR ABAP Programming Training Material | http://sapdocs.info
sapdocs. info
 
SAP Accounts Payable Payment | http://sapdocs.info
sapdocs. info
 
Introduction to ABAP
sapdocs. info
 
SAP FICO BBP Sample Document PDF NEW!
sapdocs. info
 
Ad

Similar to Message, Debugging, File Transfer and Type Group (18)

PPTX
Sap scripts
Jugul Crasta
 
PPTX
SAP Batch data communication
Jugul Crasta
 
PPT
Lecture05 abap on line
Milind Patil
 
PPT
dokumen.tips_file-systems-and-database-systems (1).ppt
AYESHABIBI83
 
PPT
Chapter 1abapprogrammingoverview-091205081953-phpapp01
tabish
 
PPT
Abapprogrammingoverview 090715081305-phpapp02
tabish
 
PPT
Abapprogrammingoverview 090715081305-phpapp02
wingsrai
 
PPT
Chapter 1 Abap Programming Overview
Ashish Kumar
 
PPT
chapter-1abapprogrammingoverview-091205081953-phpapp01
tabish
 
PPT
Abap programming overview
k kartheek
 
PPTX
Modularisation techniques new
Jeet Thombare
 
DOCX
SAS Online Training Institute in Hyderabad - C-Point
cpointss
 
PDF
Chapter10
vishalw24
 
DOCX
Call session Method of BDC
Ravi Kanudawala
 
DOCX
VBS control structures for if do whilw.docx
Ramakrishna Reddy Bijjam
 
PDF
SAS Internal Training
Amrih Muktiaji
 
PPTX
Vba Excel Level 2
Ben Miu CIM® FCSI A+
 
Sap scripts
Jugul Crasta
 
SAP Batch data communication
Jugul Crasta
 
Lecture05 abap on line
Milind Patil
 
dokumen.tips_file-systems-and-database-systems (1).ppt
AYESHABIBI83
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
tabish
 
Abapprogrammingoverview 090715081305-phpapp02
tabish
 
Abapprogrammingoverview 090715081305-phpapp02
wingsrai
 
Chapter 1 Abap Programming Overview
Ashish Kumar
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
tabish
 
Abap programming overview
k kartheek
 
Modularisation techniques new
Jeet Thombare
 
SAS Online Training Institute in Hyderabad - C-Point
cpointss
 
Chapter10
vishalw24
 
Call session Method of BDC
Ravi Kanudawala
 
VBS control structures for if do whilw.docx
Ramakrishna Reddy Bijjam
 
SAS Internal Training
Amrih Muktiaji
 
Vba Excel Level 2
Ben Miu CIM® FCSI A+
 
Ad

More from sapdocs. info (20)

PDF
SAP PM Master Data Training Guide
sapdocs. info
 
DOCX
SAP SD Certification (C_TSCM62_66) Preparation Training Notes
sapdocs. info
 
DOCX
Variant Configuration in SAP PP: Beginner's Guide
sapdocs. info
 
PDF
SAP PP MRP Guide for Beginners
sapdocs. info
 
PDF
SAP ECC 6.0 PM Configuration Manual - www.sapdocs.info
sapdocs. info
 
PDF
SAP PM Training Manual - www.sapdocs.info
sapdocs. info
 
PDF
ABAP Basico para Consultores Funcionales
sapdocs. info
 
PDF
SAP Configuration Guide for Functional Modules (Based on IDES)
sapdocs. info
 
PDF
SAP FI-AP TCODES & MENU PATHS
sapdocs. info
 
PDF
SAP FI-AR TCODES & MENU PATHS
sapdocs. info
 
DOC
SAP CO Configuration Guide - Exclusive Document
sapdocs. info
 
DOC
SAP PP End User Document - www.sapdocs.info
sapdocs. info
 
PDF
SAP MM Configuration - Real Project Documentation
sapdocs. info
 
PDF
SAP FI AP: Configuration & End User Guide
sapdocs. info
 
PDF
SAP FI AR: End User Guide for Beginners
sapdocs. info
 
PDF
SAP FI AP: End User Guide for Beginners
sapdocs. info
 
PDF
SAP FI Asset Accounting: End User Guide for Beginners
sapdocs. info
 
PDF
Variant Configurition in SAP: Beginners Guide | www.sapdocs.info
sapdocs. info
 
PDF
Exclusive SAP Basis Training Book | www.sapdocs.info
sapdocs. info
 
PDF
SAP Plant Maintenance Training Material | www.sapdocs.info
sapdocs. info
 
SAP PM Master Data Training Guide
sapdocs. info
 
SAP SD Certification (C_TSCM62_66) Preparation Training Notes
sapdocs. info
 
Variant Configuration in SAP PP: Beginner's Guide
sapdocs. info
 
SAP PP MRP Guide for Beginners
sapdocs. info
 
SAP ECC 6.0 PM Configuration Manual - www.sapdocs.info
sapdocs. info
 
SAP PM Training Manual - www.sapdocs.info
sapdocs. info
 
ABAP Basico para Consultores Funcionales
sapdocs. info
 
SAP Configuration Guide for Functional Modules (Based on IDES)
sapdocs. info
 
SAP FI-AP TCODES & MENU PATHS
sapdocs. info
 
SAP FI-AR TCODES & MENU PATHS
sapdocs. info
 
SAP CO Configuration Guide - Exclusive Document
sapdocs. info
 
SAP PP End User Document - www.sapdocs.info
sapdocs. info
 
SAP MM Configuration - Real Project Documentation
sapdocs. info
 
SAP FI AP: Configuration & End User Guide
sapdocs. info
 
SAP FI AR: End User Guide for Beginners
sapdocs. info
 
SAP FI AP: End User Guide for Beginners
sapdocs. info
 
SAP FI Asset Accounting: End User Guide for Beginners
sapdocs. info
 
Variant Configurition in SAP: Beginners Guide | www.sapdocs.info
sapdocs. info
 
Exclusive SAP Basis Training Book | www.sapdocs.info
sapdocs. info
 
SAP Plant Maintenance Training Material | www.sapdocs.info
sapdocs. info
 

Recently uploaded (20)

PPTX
Technical Analysis of 1st Generation Biofuel Feedstocks - 25th June 2025
TOFPIK
 
PDF
Buy Facebook Accounts Buy Facebook Accounts
darlaknowles49
 
PPTX
Hackathon - Technology - Idea Submission Template -HackerEarth.pptx
nanster236
 
PPTX
Sustainability Strategy ESG Goals and Green Transformation Insights.pptx
presentifyai
 
PPTX
Phygital & Omnichannel Retail: Navigating the Future of Seamless Shopping
RUPAL AGARWAL
 
PDF
How do we fix the Messed Up Corporation’s System diagram?
YukoSoma
 
PDF
Top 10 Emerging Tech Trends to Watch in 2025.pdf
marketingyourtechdig
 
PPTX
SYMCA LGP - Social Enterprise Exchange.pptx
Social Enterprise Exchange
 
DOCX
How to Build Digital Income From Scratch Without Tech Skills or Experience
legendarybook73
 
PDF
BeMetals_Presentation_July_2025 .pdf
DerekIwanaka2
 
PDF
Flexible Metal Hose & Custom Hose Assemblies
McGill Hose & Coupling Inc
 
PDF
20250703_A. Stotz All Weather Strategy - Performance review July
FINNOMENAMarketing
 
PPTX
Micro Battery Market Size & Share | Growth - 2034
Aman Bansal
 
PPTX
Asia Pacific Tropical Fruit Puree Market Overview & Growth
chanderdeepseoexpert
 
PDF
Robbie Teehan - Owns The Pro Composer
Robbie Teehan
 
PPTX
Smarter call Reporting with Callation.pptx
Callation us
 
DOCX
TCP Communication Flag Txzczczxcxzzxypes.docx
esso24
 
PDF
The Complete Guide to SME IPO in 2025.pdf
India IPO
 
PDF
Native Sons Of The Golden West - Boasts A Legacy Of Impactful Leadership
Native Sons of the Golden West
 
PDF
_How Freshers Can Find the Best IT Companies in Jaipur with Salarite.pdf
SALARITE
 
Technical Analysis of 1st Generation Biofuel Feedstocks - 25th June 2025
TOFPIK
 
Buy Facebook Accounts Buy Facebook Accounts
darlaknowles49
 
Hackathon - Technology - Idea Submission Template -HackerEarth.pptx
nanster236
 
Sustainability Strategy ESG Goals and Green Transformation Insights.pptx
presentifyai
 
Phygital & Omnichannel Retail: Navigating the Future of Seamless Shopping
RUPAL AGARWAL
 
How do we fix the Messed Up Corporation’s System diagram?
YukoSoma
 
Top 10 Emerging Tech Trends to Watch in 2025.pdf
marketingyourtechdig
 
SYMCA LGP - Social Enterprise Exchange.pptx
Social Enterprise Exchange
 
How to Build Digital Income From Scratch Without Tech Skills or Experience
legendarybook73
 
BeMetals_Presentation_July_2025 .pdf
DerekIwanaka2
 
Flexible Metal Hose & Custom Hose Assemblies
McGill Hose & Coupling Inc
 
20250703_A. Stotz All Weather Strategy - Performance review July
FINNOMENAMarketing
 
Micro Battery Market Size & Share | Growth - 2034
Aman Bansal
 
Asia Pacific Tropical Fruit Puree Market Overview & Growth
chanderdeepseoexpert
 
Robbie Teehan - Owns The Pro Composer
Robbie Teehan
 
Smarter call Reporting with Callation.pptx
Callation us
 
TCP Communication Flag Txzczczxcxzzxypes.docx
esso24
 
The Complete Guide to SME IPO in 2025.pdf
India IPO
 
Native Sons Of The Golden West - Boasts A Legacy Of Impactful Leadership
Native Sons of the Golden West
 
_How Freshers Can Find the Best IT Companies in Jaipur with Salarite.pdf
SALARITE
 

Message, Debugging, File Transfer and Type Group

  • 1. ABAP Chapter 6 Message Debugging File Transfer Type Group
  • 3. 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) r eport ztest . … . AT SELECTION-SCREEN. … m essage e 000 (38) with ‘----’ ‘---’ ‘---’ ‘---’ . …
  • 4. Message Type Syntax Message [ A < nnn > ] ( message class ) with < field1 > < field2 > … E, W, I, S
  • 5. Messages Type - A(Abend) Message A000(38)... Program Start Selection Screen A Message Exit
  • 6. Messages Type - E(Error) Message E 000(38) .. . Program Start Selection Screen E Message New input Require
  • 7. Messages Type - W(Warning) Message W 000(38).. . Program Start Selection Screen W Message New input possible List Enter
  • 8. Messages Type - I(Information) Message I 000(38).. . Program Start Selection Screen I Message List Enter
  • 9. Messages Type - S(Success) Message S 000(38).. . Program Start Selection Screen List (Next Screen)
  • 10. Dynamic Message Report ztest1. Parameters today like sy-datum . At s election-screen. if today <> sy-datum. m essage e000(38) with ‘ Please enter today : ’ sy-datum . endif. Start-of-selection. Write: / ‘ Today is :’, t oday .
  • 13. Debugging Mode : Internal Table
  • 14. Debugging Mode : Internal Table
  • 15. Debugging Mode : Watchpoint
  • 16. Watchpoint : SAP ECC 6.0
  • 17. 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
  • 20. File Transfer (Application Server) There are 3 steps for file transfer Open File Read/Write File Close File
  • 21. File Transfer * Prepare Internal Table Data all_customers like customers occurs 0 with header line. Data msg_txt(50). Parameters filename(128) default ‘cust omersdata .t xt ’ lower case. Start-of-selection. Select * from customers into table all_customers.
  • 22. 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.
  • 23. File Transfer * Transferring data to a file Loop at all_customers. Transfer all_customers to filename. Endloop. * Closing a file Close dataset filename. Endif.
  • 25. 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 . ...
  • 26. Reading Data from OS File * Reading data from a file Parameters filename(128) default ‘cust omersdata .t xt ’ 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 .
  • 27. 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.
  • 28. Deleting OS File Parameters filename(128) default ‘cust omersdata . txt ’ lower case. START-OF-SELECTION. Delete dataset filename. If sy-subrc = 0. write: / ‘Delete OK’. Endif.
  • 29. Working with File on Presentation Server
  • 30. Download Data to PC * Download data from PC parameters filename like rlgrap-filename default ‘c:\cust omers .txt’. Data all_customers like customers occurs 0 with header line. START-OF-SELECTION. Select * from customers into table all_customres.
  • 31. Download Data to PC C ALL FUNCTION ‘DOWNLOAD’ Exporting filename = filename Tables data_tab = all_customers Exceptions file_open_error = 1 … others = 5 .
  • 32. 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.
  • 33. Upload Data from PC * Upload data to PC parameters filename like rlgrap-filename default ‘c:\cust omers .txt’. Data all_customers like customers occurs 0 with header line. START-OF-SELECTION.
  • 34. Upload Data from PC CALL FUNCTION ‘UPLOAD’ Exporting filename = filename Tables data_tab = all_customers Exceptions file_open_error = 1 … others = 5 .
  • 35. 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.
  • 36. Upload/Download Data in Background Call function ‘WS_ DOWNLOAD’ Exporting filename = filename ... and Call function ‘ WS_UP LOAD’ Exporting filename = filename ...
  • 37. Type Group : SE11
  • 38. Type Group ABAP Program
  • 40. Exercise III : User Master usr02-bname usr02-trdat adcp-tel_number
  • 41. Exercise IV : Drill-Down Report