This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
List of Topics
•
Objectives
•
Inactive Sources
•
Interactive Reporting
•
Module Pool Programming
•
Data Interfaces
4-ABAP Development Tools.2
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Module Map
•
Objectives
•
Inactive Sources
•
Interactive Reporting
•
Module Pool Programming
•
Data Interfaces
4-ABAP Development Tools.3
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Learning Objectives
•
Learn about Inactive Sources
•
Review changes to Interactive Reporting components
•
Learn new enhancements in Module Pool Programming
– Screen Painter
– Tabstrips
•
Understand the Data Interface enhancements
– Data Transfer Workbench
– Batch Input Recorder
4-ABAP Development Tools.4
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Module Map
•
Objectives
•
Inactive Sources
•
Interactive Reporting
•
Module Pool Programming
•
Data Interfaces
4-ABAP Development Tools.5
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Inactive Sources
•
As of release 4.6, new functionality for inactive sources
has been introduced
•
This enhancement provides developers with a separate
local view of the R/3 Repository and is the basis for a
"local runtime system”
•
Changes to development objects can be tested within
this local system without disturbing the wider
development environment
4-ABAP Development Tools.6
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Inactive Sources: Terminology
•
There are three essential new terms used in the context
of inactive sources:
– Active version: The database version of a
development object used to generate the runtime
object
– Inactive version: A saved database version of a
database object that does not affect the runtime
object (even after regeneration)
– Worklist: The set of all inactive versions of
development objects belonging to a particular user
4-ABAP Development Tools.7
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Inactive Sources - Object Status
4-ABAP Development Tools.8
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Inactive Sources: Procedure
•
Objects are always saved as inactive versions
– When you create or change a development object and
then save it, an inactive version is written to the
database
•
Inactive objects are included in the user's worklist
– Development objects that have been edited and saved
are placed in the worklist of the developer responsible
– Each user has their own worklist, which other users
cannot access directly
4-ABAP Development Tools.9
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Activating Objects
•
It is possible to activate the following:
– Entire worklist
– Selected objects
– Components of one object (classes in ABAP Objects)
•
Prerequisites:
– Before activating an object, the system checks the
syntax of the entire object (main program, function
group, or class)
– Any syntax errors are displayed in a list
4-ABAP Development Tools.10
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Overview of Inactive Objects
•
It is possible to display various sets of inactive
development objects within the system
•
The following functions are available:
Activate the selected objects
Display all inactive objects belonging to a
request in the Workbench Organizer
Display the worklist for a specified user
Display all inactive sub-objects for a main
program or function group
Display all inactive objects in the system
4-ABAP Development Tools.11
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Effect of inactive sources
•
Save
•
Saves the object in an inactive version without a syntax check. Enters the
object in your worklist.
•
Activate
•
Creates an active version from the existing inactive version. If an object
contains components (like classes in ABAP Objects), you can activate
individual components.
Before activating the object, the system checks the syntax of the entire
object, then creates an active version, generates a runtime version, and
deletes the corresponding entry from your worklist.
•
Generate
•
Creates a new runtime version from the existing active version. Unlike the
'Activate' function, this function only generates a new load version.
4-ABAP Development Tools.12
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Effect of inactive sources
•
Display Active/Inactive Sources
•
If an object exists in both active and inactive versions, you can switch
between the versions in the ABAP Workbench tools.
•
Delete
•
Both active and inactive versions are deleted.
•
Note that when you delete components of a global class in the Class Builder,
they reappear in your worklist with the "Delete" icon. They are not finally
deleted or removed from your worklist until you activate the relevant objects.
•
Copy
•
The system uses the active version of the source object, except in the
Function Builder, where it asks you which version you want to copy if both an
active and an inactive version exist). The new copy is always inactive.
4-ABAP Development Tools.13
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Effect of inactive sources
•
Rename
•
Applies to both the active and inactive versions of an object.
•
Syntax check
•
Uses your worklist.
•
Execute
•
A runtime object can only be generated from a syntactically-correct active
version. The inactive version of an executable program can be run from the
ABAP Editor. If you execute a program from the object list, there must be an
active version.
•
Transport
•
Only active objects can be transported. You cannot release a transport
request until all objects have been activated
4-ABAP Development Tools.14
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Effect of inactive sources
•
Object list (SE80)
•
Displays all active and inactive objects. If an inactive version exists, the object is
highlighted.
•
Where-used list
•
Like the object list, the where-used list is global, not user-specific. It is based on all
objects.
•
Navigation
•
Navigation is user-specific, and takes your worklist into account. If an inactive
version of an object exists and the object is in your worklist, you will see that
inactive version. Otherwise, the active version is always displayed. This does not
apply only to navigation in the various ABAP Workbench tools, but also from the
object list or from a where-used list.
•
Debugging
•
The Debugger always displays the active version of an object.
4-ABAP Development Tools.15
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Module Map
•
Objectives
•
Inactive Sources
•
Interactive Reporting
•
Module Pool Programming
•
Data Interfaces
4-ABAP Development Tools.16
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Calling Additional Selection Screens
SELECTION-SCREEN:
BEGIN OF SCREEN 1100.“Definition of additional selection
“screen, not 1000 (reserved for
“standard selection screen)
[…..]
AT SELECTION-SCREEN.
“event whenever selection screen
CASE sy-dynnr.
“is called (standard or other).
WHEN ‘1100’.
[…..]
END-OF-SELECTION.
IF ……..
CALL SELECTION-SCREEN 1100.
”dynamic call of additional screen
4-ABAP Development Tools.17
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Menu Painter GUI Enhancements
Activate
Copy
Status
Copy User
Interface
4-ABAP Development Tools.18
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
Rename
Interface
ABAP Development Tools
Menu Painter
•
As of release 4.0 it is
possible to create up to
35 pushbuttons in the
application toolbar
•
Names have been
extended for function
codes, status names,
titles and texts
4-ABAP Development Tools.19
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Menu Painter
•
As of release 4.6, the Menu Painter is fully integrated with
the new version of the ABAP Workbench
•
As well as its inclusion in the new design and navigation
of the Object Navigator, the Menu Painter also contains
the following new features:
– Inactive sources
– Templates for constructing context menus
– Defining application toolbars with fixed positioning
(from release 4.5A)
– Separators in application toolbars
4-ABAP Development Tools.20
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Merge List Functions
•
The “Merge List Functions”
icon in the Function Key
assignment section of the
“Maintain Status” screen
retrieves the standard SAP
function codes
4-ABAP Development Tools.21
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Module Map
•
Objectives
•
Inactive Sources
•
Interactive Reporting
•
Module Pool Programming
•
Data Interfaces
4-ABAP Development Tools.22
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Screen Painter GUI Enhancements
Next Object
Defined Length
Tabs
Position
(Line, Column)
Field Format
Screen Element
Dictionary Object
Scrollable
Height
4-ABAP Development Tools.23
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Screen Painter
•
As of release 4.6 the screen painter has been enhanced
to make it easier to use:
– Tabstrip control
– Enhanced editor functions
4-ABAP Development Tools.24
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Screen Painter
•
As of release 4.6, the Screen Painter is included in the
Object Navigator
•
The Screen Painter also contains the following new
features:
– Status display for inactive sources
– Consistent forward and backward navigation
– Dropdown list boxes for input/output fields, table
controls (as of release 4.5A)
– Function codes for checkboxes and radio buttons
– Custom container (as of release 4.5A)
4-ABAP Development Tools.25
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Tabstrips
•
A tab is an area on a screen in which you can include
several screens (tab pages) within a sub-screen
•
The user switches between the tab pages using the push
buttons on the top of the tab
•
Tabstrips allow users to access multiple subscreens on
one normal screen
4-ABAP Development Tools.26
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Tabstrips
•
Graphical Screen Painter is particularly desirable when
creating tabstrips because of the intricacy involved
•
The actual tabstrip objects DO NOT display information
to the user
•
Tabstrips must have subscreen areas painted onto them,
which in turn hold subscreens that display information to
the user
4-ABAP Development Tools.27
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Creating Tabstrips
•
To customize tabstrips, complete the following steps:
– Begin with a normal type screen
– Paint a tabstrip onto the normal screen
– Paint one or more (depending on the type of tabstrip) subscreen areas onto
the tabstrip
4-ABAP Development Tools.28
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Subscreens
•
Subscreens are created the same way normal screens
and modal dialog boxes are created
•
Subscreens are called by other screens in your program
– This allows for a more dynamic program since
different groups of screen elements can be displayed
on one screen
•
Subscreens are called in flow logic using the following
syntax:
•
CALL SUBSCREEN <subscreen area name >
INCLUDING <program name> ‘<subscreen #>’.
4-ABAP Development Tools.29
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
New Function Type
Function Code
Type ‘ ’
•
Type ‘E’
Type ‘S’
Type ‘P’
Type ‘T’
As of release 4.0 function type “P” is available
– Used only in local GUI logic (i.e., when creating tabstrip controls)
4-ABAP Development Tools.30
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Selection Screens as Subscreens
TABLES: SPFLI.
SELECTION-SCREEN BEGIN OF SCREEN 101 AS
AS SUBSCREEN
SUBSCREEN.
SELECT-OPTIONS: s_carr FOR spfli-carrid,
s_conn FOR spfli-connid.
SELECTION-SCREEN END OF SCREEN 101.
SELECTION-SCREEN BEGIN OF SCREEN 102 AS
SUBSCREEN.
AS SUBSCREEN
SELECT-OPTIONS: ...
PARAMETERS:
...
SELECTION-SCREEN END OF SCREEN 102.
SELECTION-SCREEN BEGIN OF SCREEN 103 AS
AS SUBSCREEN
SUBSCREEN.
PARAMETERS:
...
SELECT-OPTIONS: ...
SELECTION-SCREEN END OF SCREEN 103.
Subscreen 101
4-ABAP Development Tools.31
Subscreen 102
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
Subscreen 103
ABAP Development Tools
Defining A Tabstrip Control on the
Selection Screen
SELECTION-SCREEN
...
SELECTION-SCREEN
SELECTION-SCREEN
...
SELECTION-SCREEN
BEGIN OF SCREEN 101 AS SUBSCREEN.
END OF SCREEN 101.
BEGIN OF SCREEN 102 AS SUBSCREEN.
END OF SCREEN 102.
SELECTION-SCREEN
SELECTION-SCREEN BEGIN
BEGIN OF
OF TABBED
TABBED BLOCK
BLOCK blockname
blockname FOR
FOR
SELECTION-SCREEN
TAB
(length)
tabname1
USER-COMMAND
SELECTION-SCREEN TAB (length) tabname1 USER-COMMAND
SELECTION-SCREEN
SELECTION-SCREEN TAB
TAB (length)
(length) tabname2
tabname2 USER-COMMAND
USER-COMMAND
SELECTION-SCREEN
SELECTION-SCREEN END
END OF
OF BLOCK
BLOCK blockname.
blockname.
INITIALIZATION.
INITIALIZATION.
tabname1= =TEXT-001.
TEXT-001.
tabname1
tabname2 == TEXT-002.
TEXT-002.
tabname2
"TEXT-001DE:
EN:Verbindung
Connection
"TEXT-001
"TEXT-002 DE:
EN: Flug
Flight
"TEXT-002
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Custom subscreens
•
SAPMV45A screen 8309 - Additional Data B
4-ABAP Development Tools.33
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Context Menus
List
Edit
Goto
Extras
Envir.
System Help
Screen area
Box
Subscreen area
Subscreen area
Box in the box
Area in the box
Elements that do not have their
own menu inherit the area menu
4-ABAP Development Tools.34
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Creating a Context Menu
<Program name>
Program object types
Fields
Create
GUI status
BASE
BOOK
STATUS_100
Create Status
Program
Status
xxxxx
SUB130
Status attribute
Short text
Status type
4-ABAP Development Tools.35
Table Control Subscreen
Dialog status
Dialog box
Context menu
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Creating a Context Menu:
Assigning Functions
Context menu
Context Menu for the Table Control Subscreen
Code Text
Sort
LIST
> SRTD
SRTU
Descending
Ascending
Booking list
Function list
F4
M1
M1
BACK
EXIT
4-ABAP Development Tools.36
M1
INFO
M1
M1
DETL
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
*------------------------------*** INCLUDE SAPBC410CONDF01
*------------------------------on_ctmenu_rbgframe
Context Menu Form
ON_CTMENU_ RBGFRAME
...
FORM
USING p_menu TYPE REF TO cl_ctmenu.
...
ENDFORM.
Screen Attributes
on_ctmenu_sub130
General Attributes
...
Context Menu Form
ON_CTMENU_ SUB130
4-ABAP Development Tools.37
FORM
USING p_menu TYPE REF TO cl_ctmenu.
...
ENDFORM.
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Using the Context Menu
Flight
Flight
FORM on_ctmenu_sub130
USING p_menu TYPE REF TO cl_ctmenu.
CALL METHOD cl_ctmenu=>load_gui_status
EXPORTING program = sy-cprog
status = 'SUB130'
menu
= p_menu.
ENDFORM.
4-ABAP Development Tools.38
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Module Map
•
Objectives
•
Inactive Sources
•
Interactive Reporting
•
Module Pool Programming
•
Data Interfaces
4-ABAP Development Tools.39
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Data Transfer Workbench
•
The Data Transfer Workbench supports the automatic
transfer of data from legacy systems into the R/3 System
•
The Workbench provides access to the standard
programs as well as the necessary tools for transferring
data
•
The Workbench is particularly useful for large amounts of
data
– It guarantees that data is transferred efficiently and
ensures that data in the R/3 System is consistent
4-ABAP Development Tools.40
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Data Transfer Workbench
•
The Data Transfer
Workbench provides the
following functions:
– Administration and
organization of data
transfer projects
– Tools for analyzing the
required SAP structures
– Integration of standard
data transfer programs
– Registration and
integration of your own
data transfer programs
– Various techniques to
load data into R/3
4-ABAP Development Tools.41
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Data Transfer Workbench
4-ABAP Development Tools.42
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Initial Data Transfer File
•
Before transferring the data automatically into the
system, first convert the data from the legacy system into
a suitable format
– This initial file contains the relevant fields in the
length and sequence specified by the structure
– Use the data transfer file to see the fields of a transfer
object in the R/3 System and the structure in which
the data should be delivered
•
By choosing Transfer object Create init file, it is
possible to create an empty transfer file for test purposes
4-ABAP Development Tools.43
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Editing the Data Transfer File
•
The Editor provides
functionality to
change a data
transfer file
– Particularly
useful for
editing transfer
data during the
test (before the
data is actually
transferred)
4-ABAP Development Tools.44
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Testing the Data
•
It is possible to start data transfer objects that support
input directly on-line
•
It is possible to create a data transfer file for test
purposes using data that already exists in R/3 for the
following records:
– G/L account master records
– Material masters
– Sales documents
– Routing
– Personnel planning
4-ABAP Development Tools.45
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
BDC_INSERT
•
Post local is a new 4.0 parameter in the BDC_INSERT function
module
CALL FUNCTION ‘BDC_INSERT’
EXPORTING
TCODE
= <transaction code>
TABLES
DYNPROTAB
table>
= <bdc internal
EXCEPTIONS
INTERNAL_ERROR
=1
...
OTHERS
4-ABAP Development Tools.46
= 5.
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Batch Input Recorder
•
The Batch Input Recorder allows the user to record
transactions while they are being manually entered
•
The user can then create a batch input session to be
executed at a later time
•
Once the transaction is recorded, a batch input program
can be generated
– This program is then available for modification by the
programmer in order to meet customer requirements
4-ABAP Development Tools.47
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Batch Input Recorder
•
The batch input recorder
tool can serve as a good
base for creating a batch
input session
•
It allows the programmer to
gather information on a
specific transaction(s) such
as screen numbers, field
names and values and then
stores it in a form of a log or
a batch input program
4-ABAP Development Tools.48
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.
ABAP Development Tools
Module Review
•
Objectives
•
Inactive Sources
•
Interactive Reporting
•
Module Pool Programming
•
Data Interfaces
4-ABAP Development Tools.49
This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to
other employees of PricewaterhouseCoopers.