Professional Documents
Culture Documents
SAP Documentation :
_______________________________________________________
EDI EDI
SAP ERP
sub :
system VAN sub system NON -
SAP
It is a set of software Package which facilities integration of information
related to different areas of an originations.
The company behind R/3 is SAP AG, Found by four former IBM
employees in 1972. The company’s headquarters are in Walldorf , a small German town.
The company name , SAP stands for System, Application, Products in data Processing.
SAP
IDES
(Internal Demo Production
Educational System)
_________________________________________________________
Niki B. Vashi Page no. : Page 1 of 59
SAP Documentation :
_______________________________________________________
SAP R3 System :
Back Ground :
_________________________________________________________
Niki B. Vashi Page no. : Page 2 of 59
SAP Documentation :
_______________________________________________________
N – Numeric
C – Character
I – Integer
F – Float
P – Packed Decimal
D- Date
T– Time
X-- Hexa Decimal
String - Variable length of record data type.
_________________________________________________________
Niki B. Vashi Page no. : Page 3 of 59
SAP Documentation :
_______________________________________________________
Data Element :
It is an object which holds the domain information , field Label information and
provides document to field.
Domain :
It is and object hold the technical attributes of a field .
Like: Data type and Length
View :
I sis and object which holds some specific form multiple tables. A view object
can’t hold any data.
Lock object :
Two type of lock avable in the ABAP/4.
ENQUE is for careate lock and it is start from ez or ey
DEQUR is for relace the lock and it is strart from DZ or DY.
_________________________________________________________
Niki B. Vashi Page no. : Page 4 of 59
SAP Documentation :
_______________________________________________________
Internal Table :
It is and object which holds multiple records as long your program is under
execution.
Syntax: 1
Data : Begin of < Internal Table Name> occurs <Values>,
<Field 1>
<Field 2>
End of <Internal Table Name>
Syntax: 2
Data : <Internal Table name> Type / Like <Stretcher type>/ <Stretcher
Object> Occurs < Value > With Header Line.
_________________________________________________________
Niki B. Vashi Page no. : Page 5 of 59
SAP Documentation :
_______________________________________________________
Procedures :
Procedures are local to client. There is two types of procedures in ABAP/4
1. Internal procedures
2. External procedures
Internal procedures:
This procedure declaration and calling will be with in the report
program.
External procedures:
The declaration is maintained under surboutine pool object. And
calling the procedure will be under a report program.
Form First_Pro.
ENDFORM.
========================
_________________________________________________________
Niki B. Vashi Page no. : Page 6 of 59
SAP Documentation :
_______________________________________________________
Syntax For Declaration of Procedure (If procedure is with parameters) :
<Block of Statements>.
Endform.
Form First_Pro x y z .
<Block of Statements>
ENDFORM.
========================
_________________________________________________________
Niki B. Vashi Page no. : Page 7 of 59
SAP Documentation :
_______________________________________________________
Functions :
Function returns a value. Function handle exceptions. Functions are client
independent. There is two type of function in the ABAP/4
1.) Normal function module.
2.) remote function module.
Normal function module : It is global to there server and can be accessed in any
clients. We can pass there parameters either pass by value or pass by reference.
Function Group :
_________________________________________________________
Niki B. Vashi Page no. : Page 8 of 59
SAP Documentation :
_______________________________________________________
Macro :
It is and object which is smaller to your processor where we can use lass
not of statements in the macro declaration part. In order to improve the performance of
your program use the macro instead of processor.
Data Sets :
Data set is execute application at the server level. Data set is user for
import Export the data form text file. If user want to execute at the local level then user
predefine function WS_ Upload and WS_DOWNLOAD.
_________________________________________________________
Niki B. Vashi Page no. : Page 9 of 59
SAP Documentation :
_______________________________________________________
Check Box :
If Check Box is checked then its return ‘X’ and if it is uncheck then its return
‘ ‘ or space.
Syntax:
<Name of Check Box> As Checkbox
Example :
Education as checkBox
Option Button :
If Check Box is checked then its return ‘X’ and if it is uncheck then its return
‘ ‘ or space.
Syntax:
<Name of Check Box> As Checkbox
Example :
OptGender as checkBox
Select –Options :
To Create a Special value and values w can assign to the special data
objects in the selection screen. It is act like a internal table.
Syntax :
Select-option <name of select option> for <table name-field name)
<name of select option> - low = <value> it is refer a low value of select-
option.
_________________________________________________________
Niki B. Vashi Page no. : Page 10 of 59
SAP Documentation :
_______________________________________________________
Joins :
Joins are use to get the data from different database table with special
columns to the internal table. There are tow types of joins available in the ABAP/4
1.) Inner joins
2.) Outer Joins
Inner Joins :
It is going to whose data available in both tables with a special fields.
Outer Join :
It is use to get the data from different table and prevent with given to
master and any data which data available in child table going to reactive.
_________________________________________________________
Niki B. Vashi Page no. : Page 11 of 59
SAP Documentation :
_______________________________________________________
Report :
It is and object which gats data from different table and perform process
and grantee the output to a list according to client requirements without modifying the
database. There are 5 types of report in the ABAP/4.
1.) Classical Report
2.) Interactive Report
3.) LDB Report (Logical Data base Report)
4.) SQL Query Reports.
5.) ALV Reports(SAP List Viewer Report)
Classical Report:
It is used to data from different database table and perform process
and garnet output in a signal List.
1.) Initialization
2.) At Selection-Screen.
3.) At Selection-Screen on <Field Name>.
4.) Start-of-Selection
5.) Top-of-Page.
6.) End-of-Page.
7.) End-of-Selection.
Initialization Event :
This event is fired when user execute this program for the first time .
At-Selection-Screen :
This event is basically for checking for the value entered by the user for
the
fields of the selection screen.
Start-of-Selection :
This event is the first for you list. Once all the event are fired for selection
screen the data is retrieved from the database. Whatever user want to do, when ypur
report starts, is done in this event.
_________________________________________________________
Niki B. Vashi Page no. : Page 12 of 59
SAP Documentation :
_______________________________________________________
Top-of-Page :
This event is fired when first write statement or whenever new page is
triggered. Advantage of using this event is that, whatever you write under this event is
applicable to all the pages header.
End-of-Page :
This event is fired when end of page is reached. Advantage of using this
event is that, whatever you write under this event is applicable to all the pages footers.
_________________________________________________________
Niki B. Vashi Page no. : Page 13 of 59
SAP Documentation :
_______________________________________________________
Interactive Reports :
It is an object which garnet the output in multiple list with detail list. In
Interactive report we can maintain 20 Sub list and 1 basic list. It means we can maintain
total 21 list in the interactive report.
At Line-Selection :
When user double clicking on the basic list or and secondary list triggers
the event AT-Line-Selection.
HIDE technique :
When user double clicks on the any list user wants to displaying the
detailed information related to that particular carried on secondary list. Hence need to
store the clicked carried in some variable. So that you can access this carried for the next
list.
HIDE COMMAND temporarily store the content of clicked field in system areas.
Syntax :
HIDE <Fields >.
At User-Command :
When user press a button and by giving some value in the command field
and pressing enter key at that time this event is fired.
_________________________________________________________
Niki B. Vashi Page no. : Page 14 of 59
SAP Documentation :
_______________________________________________________
Type Pool :
It is used for all the detractive structure and internal tables are be matins
under your type pool object. So that any other report object can assign by just calling type
poll object in related report program.
SLIS is the predefine type pool object under this type poll object you
can find detractive structure types that are use for creating the ALV objects.
Block ALV :
It is use where user can view different tables information in the single list
with different page.
Reuse_alv_block_list_int is predefine function for block ALV report.
Reuse_avl_blick_list_appent is predefine function for keep data into internal
table buffer.
Resue_alv_block_list_display is predefine function fro display block
information to the output.
Hiracle ALV :
It is use to display the data in hiracle manner. In this report we can
only use 2 tables.
Resuse_alv_block_list_hs_append is predefine function for this report
Key info object is going to matins relation ship in the 2 tables.
_________________________________________________________
Niki B. Vashi Page no. : Page 15 of 59
SAP Documentation :
_______________________________________________________
Interactive phase in this step user enters the data , which needs to be inserted
or deleted or modified on to the screen. There can be single screen or multiple
screens depending upon the transaction. So this step can consist of single step
or multiple steps. In this phase you prepare database record.
SUpdate phase. This phase process the database record and updates the
databae table. Actual updation of database table takes placein this phase.
All transaction are associated with transaction code . and all these codes
are stored in a table called TSTC.
Screen Painter :
It is use for set lay out and manation business logic . maximum no of
screen we can define is 9999 for each application. It is start from 0000 to 9999.
Message Class :
It is use to define messages into the application. We can use same message
class into different application. Maximum no of message in one message class is 10000
it is start from 0000 to 9999.
Menu Painter :
It is use for designee a menu for application .T.Code for menu painter is
SE41.
_________________________________________________________
Niki B. Vashi Page no. : Page 16 of 59
SAP Documentation :
_______________________________________________________
Module pool Program :
It is an object which is not attached to the screen painter plays important
role in the transaction. Normally for report on like executable programs are written but
for transaction module pool programs are written . The module pool program contains
only modules to handle various associated with screen and data declaration stamens.
This event is responsible for processing of screen after the user enters the
data and clicks the button. The processing of screen can include displaying another
screen, or just displaying list or quitting the transaction itself and many more things.
Usually it is displaying another screen. This operations can be carried out in the PAI
event.
_________________________________________________________
Niki B. Vashi Page no. : Page 17 of 59
SAP Documentation :
_______________________________________________________
Steps to create Transaction :
Create module pool
Screen painter
o In the screen give program name and screen number
Note : program name and module pool name should be
same.
Write flow logic for each screen.
Write code for all the events in module pool program.
Check for any error in screen and flow logic.
Generate each and every component of screen
Single screen can be tested using Screen Painter.
Create transaction code through object browser.
o T.code it is SE93.
Generate the transaction code.
User can execute the transaction by entering the transaction code in the
commend filed.
_________________________________________________________
Niki B. Vashi Page no. : Page 18 of 59
SAP Documentation : _______________________________________________________
_________________________________________________________
Niki B. Vashi Page no. : Page 19 of 59
SAP Documentation : _______________________________________________________
BDC is user for the data conversations from the current system to the SAP R/3 system.
BDC Methods :
1.) Call transaction
2.) Session method
3.) Direct Input method.
4.) LSMW [Legacy system migration work bench.]
Ws_upload function
Legacy Internal Mapping BDC SAP SAP R/3
Table Code Data Application Database
system
system
Staps for Call Transaction Method :
_________________________________________________________
Niki B. Vashi Page no. : Page 20 of 59
SAP Documentation : _______________________________________________________
_________________________________________________________
Niki B. Vashi Page no. : Page 21 of 59
SAP Documentation :
_______________________________________________________
3.) Declaring internal Table :
The data from internal table is not transferred directly to database table, it has to go
through transaction. You need to pass data to particular screen and particular screen-
field. Data is passed to transaction in particular format hence the need for batch data
input structure.
The batch input structures stores the data that is to be entered into
SAP System and the actions that are necessary to process the data.
This structure is BDCDATA.
The BDCDATA structure which can contain the batch input data for only a single run
of a transaction.
4.) Transferring data from local file to internal table with us of WS_UPLOAD
function.
5.) Population of BDCDATA
Syntex :
Call transaction <T.Code of Dilog program> using BDSDATA Mode
<Mode Name>
Three types of Mode avable in the Call transaction method.
1.) A –Forground.
2.) N- No display. / Background
3.) E- Display When Error.
_________________________________________________________
Niki B. Vashi Page no. : Page 23 of 59
SAP Documentation :
_______________________________________________________
_________________________________________________________
Niki B. Vashi Page no. : Page 24 of 59
SAP Documentation : _______________________________________________________
Session Method :
Session
Ws_upload function
Legacy Internal Mapping BDC SAP SAP R/3
Table Code Data Application Database
system
system
1.) BDC_OPEN_GROUP
2.) BDC_INSERT
3.) BDC_CLOSE_GROUP
_________________________________________________________
Niki B. Vashi Page no. : Page 25 of 59
SAP Documentation : _______________________________________________________
_________________________________________________________
Niki B. Vashi Page no. : Page 26 of 59
SAP Documentation :
_______________________________________________________
It is an tool which update data from legacy system to R/3 system without writing
any code.
Methods in LSMW
1.) Direct Input.
2.) Batch Input.
3.) IDCO
4.) BAPI ( Business application programming inter face.)
SAP Business Workflow can be used to define business processes that are
not yet mapped in the R/3 System. These may be simple release or approval
procedures, or more complex business processes such as creating a material
master and the associated coordination of the departments involved. SAP
Business Workflow is particularly suitable for situations in which work processes
have to be run through repeatedly, or situations in which the business process
requires the involvement of a large number of agents in a specific sequence.You
can also use SAP Business Workflow to respond to errors and exceptions in other,
existing business processes. You can start a workflow when predefined events
occur, for example an event can be triggered if particular errors are found during
an automatic check.SAP provides several workflows that map predefined business
processes. These workflows do not require much implementation. For an
overview of these SAP workflows, refer to Workflow Scenarios in Applications.
Integration
SAP Business Workflow uses the existing transactions and functions of the
R/3 System and does not change the functions. You can combine the existing
functions of the R/3 System to form new business processes with SAP Business
Workflow. The workflow system takes over control of the business processes. If
you are already using SAP Organizational Management, you can use the
organizational structure created there to have the relevant agents carry out the
individual activities. It is possible to have an activity carried out by a position.
This ensures that the respective occupiers of the position can carry out the
individual activities during execution of the workflow. This means that personnel
changes in your organization are taken into account immediately in the execution
of a workflow.
_________________________________________________________
Niki B. Vashi Page no. : Page 29 of 59
SAP Documentation :
_______________________________________________________
Features
Workflow Scenarios
Many SAP applications support process control via SAP Business
Workflow and you can therefore use the preconfigured workflow scenarios in
different situations. The scenarios can either be implemented without any changes
or used for your business processes after minor adjustments. These workflow
scenarios reduce implementation time significantly and have been optimally
configured for the respective application functions. Many workflow scenarios are
integrated in IDES (International Demonstration and Education System). It is
_________________________________________________________
Niki B. Vashi Page no. : Page 30 of 59
SAP Documentation :
_______________________________________________________
possible to simulate the business processes of a model company in this fully-
configured system.
_________________________________________________________
Niki B. Vashi Page no. : Page 31 of 59
SAP Documentation :
_______________________________________________________
Features
The term "workflow scenario" describes the whole range of options which
are available for supporting workflow functionality in an application. The
workflow scenarios can be divided into three categories:
Creating events
Events are created to report status changes for an application object and to
allow a reaction to the changes.
_________________________________________________________
Niki B. Vashi Page no. : Page 32 of 59
SAP Documentation :
_______________________________________________________
Work items are displayed to the user for execution in their Business
Workplace. Work items are instances of a workflow at runtime. Their are various
types of work item. Only certain types are displayed in the Business Workplace.
Tasks :
_________________________________________________________
Niki B. Vashi Page no. : Page 33 of 59
SAP Documentation :
_______________________________________________________
An object type describes the data with which you want to work in a
workflow, for example the object type Material . An object is an individual data
record of an object type. Attributes are defined for an object type, which make up
its data record (for example, material name or material number). Each object type
has methods, in which activities are defined, which can be executed with the data
(for example, create material). The transactions and functions of the R/3 System
can be called in a method as can your own transactions or other applications. The
last important component of an object type are its events. These describe the
status changes that an object can undergo (for example, material deleted or
material changed). A workflow can be started by an event of this kind being
triggered. The Business Object Repository provides an overview of all object
types in the R/3 System. You can use or extend the existing object types as well
as create new object types.
A standard task contains a task description (long text) and the connection
to the application logic via the method for a business object. Before a standard
task can be used live, the assignment of the standard task to the possible agents
must be maintained. The standard tasks provided by SAP are generally used as
steps in a workflow template. The tasks are available as "modules" which you can
use for your own developments.
_________________________________________________________
Niki B. Vashi Page no. : Page 34 of 59
SAP Documentation :
_______________________________________________________
Role Documentation
You use this part of the documentation if you:
Have one of the workflow roles defined in the role-based procedure model
Have little or no experience using SAP Business Workflow
Want to get an overview of the main functions of SAP Business Workflow
Reference Documentation
You use this part of the documentation if you:
Require a comprehensive overview of all functions of SAP Business
Workflow
Are interested in detailed information
Want to look up a particular subject
_________________________________________________________
Niki B. Vashi Page no. : Page 35 of 59
SAP Documentation :
_______________________________________________________
Application
Message Control
Business Business Business
Rule Rule Rule
Business Business
Rule Rule
_________________________________________________________
Niki B. Vashi Page no. : Page 36 of 59
SAP Documentation :
_______________________________________________________
The Benefits of Message Control. :
Message control is a service module, and applications call the message control
services using standard function modules of Message control. A list of applications
commonly used in EDI process and enabled for Message Control follows.
Billing
Delivery schedule
Purchasing
Purchasing outline agreement
Request for quote.
Sales
Shipping
Transportation
_________________________________________________________
Niki B. Vashi Page no. : Page 37 of 59
SAP Documentation :
_______________________________________________________
Application
The Output type - An output type defines the characteristics and attributes of the
output.
The Condition Table – The Condition table specifies the key fields for a business
rule.
_________________________________________________________
Niki B. Vashi Page no. : Page 38 of 59
SAP Documentation :
_______________________________________________________
are checked to propose an output.
Application
Communication
Access
Structure
Condition
Record
Message Control
Output
values
NAST
Entries
Status
Message Processing
_________________________________________________________
Niki B. Vashi Page no. : Page 39 of 59
SAP Documentation :
_______________________________________________________
What is ALE?
Architecture of ALE :
Application layer :
This layer provides ALE with an interface to R/3 to originate or
receive messages containing data to or from external (or other R/3) systems.
Distribution layer :
The distribution layer filters and converts messages containing data
based on predefined or custom-defined rule sets. These conversions may
occur to ensure compatibility between different releases of R/3 and R/2.
Communications layer :
ALE communications are carried out both synchronously and
synchronously.
_________________________________________________________
Niki B. Vashi Page no. : Page 40 of 59
SAP Documentation :
_______________________________________________________
Advantages of ALE :
•ALE is the strategic architecture for R/3 “loose coupling” with legacy and third-party
applications and is a Business Framework key element. It provides a message-based
architecture for asynchronous integration of Business Framework components, including
Business Components, Business Objects, and BAPIs.
Components of ALE :
• Legacy System.
• Message type
• IDOC type
• Customer Distribution Model
• Filter object type and filter objects
• Change pointers
• Ports
• Process codes.
• Partner profile.
• Message Control
A message type :
It characterizes the data sent across systems and relates to the structure of
the data called an IDOC type (see below). For example, MATMAS is a message
type for Material Master, and INVOIC is a message type for an Invoice (Billing
Document).
_________________________________________________________
Niki B. Vashi Page no. : Page 41 of 59
SAP Documentation :
_______________________________________________________
object containing the data of a particular message type. IDOCs are data containers
with intelligence built in.
_________________________________________________________
Niki B. Vashi Page no. : Page 42 of 59
SAP Documentation :
_______________________________________________________
The Customer Distribution Model :
It is a tool that stores information about the flow of messages across
various systems.
Change pointers :
They are R/3 objects that mark changes to SAP master data. Change
pointers are managed by mechanisms in a Shared Master Data (SMD) tool and are
based on Change Document (CD) objects. CD objects record the changes
occurring to master data at a field level. These changes are stored in tables
CDHDR (header table) and CDPOS (detail table).
A port :
Process codes :
They are used in ALE and EDI to identify the function module or API.
Each process code is associated with a message type. Outbound process codes are
stored in table TEDE1, while inbound process codes are stored in TEDE2. Use
transaction WE41 to display outbound process codes and WE42 to display
inbound codes
Message control :
A partner profile :
It is an identifier for a system used for communicating messages. There are four
types of partner profiles: KU for Customer, LI for Vendor, B for Bank, and LS for
Logical System. KU, LI, and B are used for EDI partners, while LS is used for
ALE communications
_________________________________________________________
Niki B. Vashi Page no. : Page 43 of 59
SAP Documentation :
_______________________________________________________
Idoc Definition :
ALE uses IDocs to exchange data between logical systems. Non SAP-systems can
use IDocs as the standard interface for data transfer. IDocs are created by
message types and (object) methods when data is to be distributed. The message
type is the format in which the data for a specific business process is transmitted
electronically.
_________________________________________________________
Niki B. Vashi Page no. : Page 44 of 59
SAP Documentation :
_______________________________________________________
Structure :
• The contents, structure, sender, receiver and current status of the IDoc are
defined
in the IDoc header.
• The status records show the history of the processing steps applied to the IDoc.
_________________________________________________________
Niki B. Vashi Page no. : Page 45 of 59
SAP Documentation :
_______________________________________________________
In the example shown the IDoc contains a header segment that has to be the first segment
of the message. Thereafter there must be at least one additional item. The following
conditions apply:
•Each item must be followed by at least one sub-item and at most 99.
•Up to 9999 text segments can appear after an item’s sub-items (optional).
•The last segment in a message must be an accumulation segment
(ACCUM).
Message Types :
_________________________________________________________
Niki B. Vashi Page no. : Page 46 of 59
SAP Documentation :
_______________________________________________________
_________________________________________________________
Niki B. Vashi Page no. : Page 47 of 59
SAP Documentation :
_______________________________________________________
_________________________________________________________
Niki B. Vashi Page no. : Page 48 of 59
SAP Documentation :
_______________________________________________________
Start outbound program
Application
Data
Outbound ALE
Program
Application
Repository
Master
IDOC
CIdoc
CIdoc CIdoc CIdoc
Communication Layer
_________________________________________________________
Niki B. Vashi Page no. : Page 49 of 59
SAP Documentation :
_______________________________________________________
Inbound Processing
using a direct function module Application
Repository
IDOC
IDOC
IDOC IDOC
Direct Input
Function module or
CALL transaction
Posting Program
RBDAPP01
Application
IDocs
IDOC_INBOUND_ASYNCHRONOUS
Communication Idoc
from remote system
_________________________________________________________
Niki B. Vashi Page no. : Page 50 of 59
SAP Documentation :
_______________________________________________________
_________________________________________________________
Niki B. Vashi Page no. : Page 51 of 59
SAP Documentation :
_______________________________________________________
Quote Vendor
Customer
Purchase Order
Order
Purchasing Order Acknowledgement Management
Purchase Order
Change Manufacturing
Shipment Notice
Receiving Shipping
Carrier
Shipment Bill of
Status Lading
Billing
Invoice
Accounts
Payable Accounts
Receivable
Account Information
Remittance Advice
Customer EFT Supplier
Payment Data Bank Bank
Account Information
_________________________________________________________
Niki B. Vashi Page no. : Page 52 of 59
SAP Documentation :
_______________________________________________________
Vendor Customer
Application Application
Program Program
Business
document Business
document
Value -
Added
Translator Network Translator
EDI message EDI message
_________________________________________________________
Niki B. Vashi Page no. : Page 53 of 59
SAP Documentation :
_______________________________________________________
Differences between ANSIX12 / EDIFACT :
EDIFACT uses the same segment in multiple places , where as ANSI has
a specific use for each segment.
Trade Partners :
The trading partners can be any combination of organization or business types.
Application program : AP’s are responsible for generating and processing data
in business documents
_________________________________________________________
Niki B. Vashi Page no. : Page 54 of 59
SAP Documentation :
_______________________________________________________
The SAP EDI process comprises two distinct process
_________________________________________________________
Niki B. Vashi Page no. : Page 55 of 59
SAP Documentation :
_______________________________________________________
EDI-
DB
Enabled
repository
application
App doc
Selectio
n
progra idoc
m
VAN
Outboun
d trigger
program Idoc
EDI sub
file
System
Edi
doc
_________________________________________________________
Niki B. Vashi Page no. : Page 56 of 59
SAP Documentation :
_______________________________________________________
The application document just created is formatted to an IDoc format. The data
in the application document format is suitable for the application modules, screens and
internal programs. A document in an IDoc format is suitable for processing by EDI
components.
_________________________________________________________
Niki B. Vashi Page no. : Page 57 of 59
SAP Documentation :
_______________________________________________________
EDI-
DB
Enabled
repository
application
App doc
Posting
progra
m idoc
VAN
Inbound
trigger
program Idoc
EDI sub
file
System
Edi
doc
_________________________________________________________
Niki B. Vashi Page no. : Page 58 of 59
SAP Documentation :
_______________________________________________________
1. The EDI transmission is received.
Edi documents are received from business partner via the VAN. These documents
are in one of the EDI standard formats.
The document is converted into an Idoc format suitable for SAP applications. The
process is carried out at the EDI subsystem level.
_________________________________________________________
Niki B. Vashi Page no. : Page 59 of 59