ABAP Outputs
ABAP Outputs
(ABAP)
DDIC
Data dictionary
INTRODUCTION
What is DDIC
DDIC stands for Data Dictionary it is a central repository to store and
maintain the data globally.
Why we go for DDIC?
The data which is created in the DDIC is gobally available.
We can achieve DDL operations(create, delete, update, rollback)
What is T code for DDIC?
SE11.
Objects
Database Table
Views
Data type
Domain
Type group
Search help
Lock object
Database table
It is one of object in the DDIC, data is stored in the from of rows and
columns.
We can create the table in two approach
1 Top Buttom approach : by creating the data element(Direct method)
2 Buttom top approach : by creating the domain
There are 3 types of tables
1 Transparent table.
2 Pool Table
3 Cluster Table
Database table
We should not use the reverse keywords for sepcifing the field name
Every table should have atleast one key field/ primary key and can be
up to 16 pk
It have data element which gives the sementic(description) information
about the fields.
Also have the domain which gives technical as well as sementic info.
Technical settings
Technical settings which gives the information where the data and table
is stored.
Data Class which specifies the physical storage of the data in the table
It has types like:
APPL01(Master Data)
APPL02(Transaction Data)
APPL03(Organizational data)
Buffer
Stores the tempaory data of the table
DB Table
Views
Based on the given input we will fetch [read or get] data from data base
and display in a predefined format.
Types of reports
1 classical report
2 interactive report
3 ALV report
Classical Reports
A classic report is a program that generates a single list, which must contain all of the
required detail information
1) This procedure may result in extensive lists from which the user has to pick the
relevant data.
2) For background processing, this is the only possible method. After starting a
background job, there is no way of influencing the program.
3) The desired selections must be made beforehand and the list must provide detailed
information.
4) For dialog sessions, there are no such restrictions.
5) The user is present during the execution of the program and can control and
manipulate the program flow directly.
6) To be able to use all advantages of the online environment, classical reporting was
developed into interactive reporting.
Events
Load of program
Initialization
at selection screen
At selection on field
At selection screen on output
At selection on help request
At selection on value request
start of selection
end of selection
top of page
end of page
CLASSICAL REPORT OUTPUT USING
ALL THE EVENTS
Selection screen Output Screen
Interactive Report:
What is Modularization?
Modularization is a technique where the code is divided into smaller
blocks
Advantages :
Reusability
Avoid redundancy
Modularization techniques
Mainly we have
1 Includes
2 Function Modules
3 Subroutines
Includes
Syntax:
Include<Program_name>.
T code is Se80
Function Group are the container for the Function Modules.
Up to 99 function modules we can store in the function modules
These function modules are stored in the INCLUDE L<fgrp>UXX
Function Modules
Function Modules are created in SE37.
Function modules are reusable components that are defined in the functional library
Tabs /Components
1 Attributes : general info
2 Import : the input parameter is declared
3 Export : the output parameter is declared
4 Changing : both input and output parameter are declared
5 Tables : for internal table
6 exceptions : to throw the error or exceptions
7 Source Code : where the logic is written
Subroutines
Main Window: It is used for the continues output such as table output
Secondary Window: It is used for output with a fixed length
Copy Window: It is also a kind of special secondary window which is
used for making pages as copy or original
Final Window: It is a kind of special secondary window used for details
which are needed to be processed only at the end of processing form.
Upload the Logo
Steps:
1 go to se78 t code.
2 Click on graphics
3 Click on import Button
4 upload the picture which is in the bitmap format
5 save and exit.
6 Goto smartforms and create a graphics within the window
7 Now set the resolution according to window
Types of Text
Invoice
Requirements
What is done?
Requriements Output
DATA MIGRATION
TECHNIQUE
Data Migration
BDC supports to transfer the data using the screens. To support this approach we should
record the process in SAP system using SHDB T-code.
To upload the data we have to record the screen of the data creation of the same.
To upload the data we use the ‘GUI_UPLOAD’ Function Module.
To download the data we use the ‘GUI_DOWNLOAD’ Function Module.
Types
1 CALL TRANSACTION METHOD
2 SESSION METHOD.
Call transaction method
Syntax :
Call transaction ‘T-CODE’ using internal_table mode ‘processing_mode’
update ‘update_mode’ message into msg_itab.
There is a structure which holds the data of BDC ‘BDCDATA’.
Function Module to store the message ‘Message_TEXT_BUILD’
Processing Modes :
A : All Screens which shows the screen by screen processing
N : No screen which dosnt shows any screens and shows the output.
E: Error which show the error if any screen have one in BDC
Update Modes :
A: Asynchronous (Commit Work):
The called transaction does not wait for any update just process .
This results in the faster execution of the data transfer
S:Synchronous (Commit work and wait):
This will wait for update from the process, then the further will proceeded .
Comparatively slower.
Messages:
str : BDCMSG
output
Session Method
Classical BAdi
Kernel BAdi
Kernel BAdi or New BAdi
Follow the steps to find the BAdi then create the new implementation for
the same BAdi and then create the class and specify the standard
definition name.
Difference between
Classical BAdi Kernel BAdi/New BAdi
To find classical BAdi we use To find the new BAdi we use
CL_EXITHANDLER and CALL_BADI or GET_BADI method.
GET_INSTANCE method. Enhancement spot is container for new
We don’t see any enhancement spot Badi.
Multiple implementation at time is not Can give the multiple implementation at
possible time
We don’t get to see option like fall-back We have fall-back class option
class
Converting from Classical to Kernel
BAdi
MPP
Module Pool Pragramming
MPP
Module Pool Programming (MPP), also known as Dialog Programming, is used to create
custom interactive applications in SAP ABAP.
Components of Module Pool Programming:
Screens: The graphical interface where users interact with the application.
Flow Logic: Code that controls the sequence of events on screens (processed in PBO and
PAI modules).
ABAP Code: Includes processing logic, typically written in FORM routines and called
within the flow logic.
Transactions: Allow users to navigate to the module pool program.
Steps to Create a Module Pool
Program:
Create a Program: Use transaction SE80 to create a new program of type
"Module Pool".
Define Screens: Create screens within the program and design the layout using
the Screen Painter.
Write Flow Logic: Define Process Before Output (PBO) and Process After Input
(PAI) logic for the screens.
Write ABAP Code: Implement FORM routines that are called in the flow logic.
Create Transactions: Use transaction SE93 to create a transaction code that
users can use to execute the module pool program.
Screen 2 ff
MPP Requriement
THANK YOU