This In-house course was developed to meet the needs of SAP R/3 Consultants working at Capgemini. This course is designed to present a high level view of XXXX and to provide the Consultants with basic information about how to use this Functionality.
More in-depth courses have been developed to train Consultants in specific areas discussed during this course.
Your comments at the conclusion of this training session are appreciated and will help us better tailor future courses to meet your training needs.
Processing blocks that are called using the ABAP runtime system:
Event blocks
Dialog modules
Processing blocks that are called from ABAP programs:
Subroutines
Function modules
Methods
The processing blocks that you call from ABAP programs are called procedures.
As well as modularization in processing blocks, ABAP allows you to modularize source code by placing ABAP statements either in local macros or global include programs.
This kind of modularization makes ABAP programs easier to read and maintain, as well as avoiding redundancy, increasing the reusability of source code, and encapsulating data.
Splitting up ABAP programs into event blocks and dialog modules is designed to help the general flow of the programs.
Processing blocks that are called using the ABAP runtime system:
Event blocks
Dialog modules
Processing blocks that are called from ABAP programs:
Subroutines
Function modules
Methods
The processing blocks that you call from ABAP programs are called procedures.
As well as modularization in processing blocks, ABAP allows you to modularize source code by placing ABAP statements either in local macros or global include programs.
This kind of modularization makes ABAP programs easier to read and maintain, as well as avoiding redundancy, increasing the reusability of source code, and encapsulating data.
Splitting up ABAP programs into event blocks and dialog modules is designed to help the general flow of the programs.
Commonly used FM:
CALCULATE_DATE - Increase/decrease DATE by a specific number of Days/Months
CONVERT_DATE_TO_EXTERNAL - Converts date from system storage format to users specified display format
CREATE_TEXTS - Create standard texts
CURRENCY_AMOUNT_SAP_TO_DISPLAY - Convert currency value from value stored in SAP to displayed currency
CURRENCY_AMOUNT_DISPLAY_TO_SAP - Convert currency value from displayed currency value to value stored in SAP.
DATE_COMPUTE_DAY - Returns day of the week for a particular date(1=Monday, 5=Friday etc.)
DATE_TO_DAY - Returns day of the week for a particular date('Monday', 'Friday', 'Sat.')
NUMBER_GET_NEXT - Get the next unique number in a number range. Use tcode SNRO for maintaining number ranges.
READ_EXCHANGE_RATE - Retrieve exchange rate on a particular date
An important benefit in the design of an RDBMS is that it eliminates redundancy.
Tables have discrete data and associated with one another through relationships specified within the database.
For example, Sales document# is common in VBAK and VBAP. In an RDBMS, these two tables could therefore be linked by the number field, or any other field they have in common
Initialization
Processed before the presentation of the selection screen
Can be used to initialize values in the selection screen or to assign values to any parameters that appear on the selection screen
At Selection-Screen
Processing block is started after the user has specified all the criteria in the selection screen
This event can also be called on a particular parameter or select-option using At Selection-Screen on <parameter or select-option>
If an error message is displayed from this processing block then the system displays the selection screen again and wrong input fields have to be filled again.
Start-Of-Selection
Processing block is executed after processing the selection screen
All the data is selected in this block.
All the main processing on the data except for interactive reporting is handled in this block.
End-Of-Selection
Data which is selected and has been processed is printed to the screen in this block.
List Processing happens in this block
Events during List Processing
Top-of-Page.
Triggered by the first write statement in the program
It is used to have a standard header in the program for all the pages.
New-Page.
Can be used when one wants to display different data on different pages
Terminates the current page and continues output on a new page.
Will not trigger the Top-of-Page or End-of-Page. Executes on the first write statement.
End-of-Page.
It is used to have a standard footer for all the pages.
Triggered by the program if the number of records exceed the line-count of the program.
Errors are divided into two Error Classes:
Arithmetic errors
Conversion errors
Each Error Class has specific keywords that will trigger an error and these can been seen in Online help in the specific keyword documentation or in the ‘Assignment of keywords to Error Classes’ (some keywords may be found in both the ARITHMETIC_ERRROS and CONVERSION_ERRORS error classes).