Académique Documents
Professionnel Documents
Culture Documents
com
You are here → / Sapnuts.com / Courses / SAP ABAP / Modularization techniques in SAP ABAP / Using exceptions in Function Modules in SAP
SAP
Last Updated: August 10th 2017 by Ashok Kumar Reddy
A+ A-
Exceptions: Exceptions are used to catch certain type of errors in Function Modules.
Continuation to the previous lesson Creating and using of Function Modules in SAP ABAP , we add an
exception for no input.
In the previous example, we are getting material details for a material input, now we add an exception to
check whether the input is provided or not.
Go to 'Exceptions' tab and add NO_MATNR under Exception and short text.
SAP Introduction
Data Dictionary
ALV Reports
Sapscripts
Smartforms
A popup will open, just click on 'Save' without giving any value. Batch Data Communication
Enhancements in SAP
BADI in SAP
Name *
Name
Email *
Mobile *
Select Courses *
SAP ABAP
https://www.sapnuts.com/courses/core-abap/modularization-in-abap/function-exceptions.html 2/4
3/8/2019 Using exceptions in Function Modules in SAP - Modularization techniques in SAP ABAP | Sapnuts.com
Comments
Comments
Submit
REPORT ZSAPN_GET_MATERIAL.
START-OF-SELECTION.
Excute the program without giving any input, we will get an error message.
Learner Questions
Was this lesson helpful to you? Yes No 106 People out of 109 think this lesson helpful
https://www.sapnuts.com/courses/core-abap/modularization-in-abap/function-exceptions.html 3/4
3/8/2019 Using exceptions in Function Modules in SAP - Modularization techniques in SAP ABAP | Sapnuts.com
Lesson Navigation
What are Function Modules ? How to create a Function Module in SAP ? ←Previous Chapter
Next Chapter → Using changing and table parameters in Function Modules in SAP
? Support About Feedback Privacy Terms & Conditions Report Abuse © SURAPU TECHNOLOGY SERVICES PVT LTD Google Twitter Facebook Version: V.2.0
https://www.sapnuts.com/courses/core-abap/modularization-in-abap/function-exceptions.html 4/4