Beruflich Dokumente
Kultur Dokumente
How To
Contents
Using Elementary GUI Elements in R/3 ................................................................32
Manually or Automatically Transferring Data ......................................................33
Starting an SAP Program .....................................................................................311
Identifying Business Object Fields .....................................................................313
Providing the Flat File Structure in C, COBOL, PL/1, or RPG ..........................318
Using Excel to Create an ASCII File ....................................................................321
Creating the Flat File with ABAP .........................................................................322
Starting a Batch Input Session............................................................................323
Transferring Data via Direct Input .......................................................................328
Moving Files From a PC to an Application Server.............................................334
Using Customer-Defined Flat File Structures and Transfer Programs ...........337
Displaying or Editing a Flat File ..........................................................................340
Maintaining Physical Filename for Logical Filenames......................................341
Using the Data Transfer Workbench...................................................................345
Using a CATT Recording for Initial Data Transfer .............................................358
Recording a Batch Input ......................................................................................362
31
Chapter 3: How To
Using Elementary GUI Elements in R/3
2
3
2. Command
Transaction codes
are entered into
this field. Choose
Enter after typing
a command.
3.
Possible entries
This arrow is on
the right-hand
side of a field.
Clicking this tab
allows you to see
the last-entered
values.
32
Release 4.0B-4.5x
Chapter 3: How To
Manually or Automatically Transferring Data
Transaction Codes
Menu paths and transaction codes are two ways to access a specific screen in the R/3 System.
Following a menu path is intuitive, but entering a transaction code is usually faster. If you are
given a menu path, the corresponding transaction code is listed as an Alternative to the
menu path. See the following example:
1. Choose Tools
Administration
Spool Spool
Administration.
Alternative:
To enter the transaction code in the example above, enter /nSPAD in the Command field and
choose Enter (the green check) or press Enter on your keyboard. Entering /n before the
transaction code allows you to move from one screen to another. For example, if you are in
the User Maintenance screen and wish to send a system message, enter /nSM02 (not SM02) in
Command. You will proceed to the System Message window without exiting the User
Maintenance window.
When using /n you will leave the actual transaction without a warning and unsaved data
will be lost.
Depending on your GUI customizing, error messages may also be seen in the bottom line
of your screen.
33
Chapter 3: How To
Manually or Automatically Transferring Data
Flat File
for Data
Transfer
SAP Data
Transfer
Manual
Entry
R/3 System
Online transaction
Flat File
for own
Program
Customer specific
Transfer
34
Release 4.0B-4.5x
Chapter 3: How To
Manually or Automatically Transferring Data
The manual option allows you to either transfer all data before starting R/3 or to enter the
data when it is needed. For example, you can enter the data for all the open purchase orders
(POs) prior to your productive start, or you can enter each open PO prior to the
corresponding goods receipt. In this example, the ramifications to consider when entering
data are:
! Materials Requirements Planning (MRP) cannot access data, which can result in an item
being purchased twice.
! Receiving clerks can create POs.
! An invoice can be entered before a goods receipt, which can result in a non-referenced
posting and a reference loss or the information.
To understand the advantages and disadvantages of using manual input for a specific
business object, please see your SAP consultant.
35
Chapter 3: How To
Manually or Automatically Transferring Data
<500
5012,500
2,50010,000
>10,000
Weight
see note 1
2 or 3
4, 5, or 6
>6
Good
Fair
Poor
Little
Average
Extensive
Few
Average
Many
Simple
Average
Complex
Extra-complex
1 or 2
3 to 5
6 to 10
> 10
Simple
Average
Complex
Extra-complex
Yes
No
Yes
No
Total score:
Notes:
1. If the number of objects is less than 500, the legacy data is complex, the SAP input is complex, and an
SAP standard data transfer program exists, an automatic conversion is the best solution. Otherwise, a
legacy data report and manual data input should be used.
2. A score of 5 or less indicates that a manual conversion is the most cost-effective solution.
3. A score between 5 and 10 indicates that either a manual conversion or an automated conversion may be
a cost-effective solution, but the evaluation factors should be carefully reviewed before deciding a
recommended course of action.
36
Release 4.0B-4.5x
Chapter 3: How To
Manually or Automatically Transferring Data
Good
Average
Poor
Simple
Average
Complex
Extra-complex
Simple
Average
Complex
Extra-complex
Priority:
High
Medium
Low
37
Chapter 3: How To
Manually or Automatically Transferring Data
Form Label
Description
Data to be converted
Requested by
Date
Number of objects
Number of files
38
Release 4.0B-4.5x
Chapter 3: How To
Manually or Automatically Transferring Data
Form Label
Description
Priority
Preliminary recommendation
of conversion method
39
Chapter 3: How To
Manually or Automatically Transferring Data
Form Label
Description
Projected cost
Book cost to
Cost accepted by
Refer to minutes of
The conversion evaluation matrix and the justification form are on a file on the diskette inside
the back cover of this guidebook.
310
Release 4.0B-4.5x
Chapter 3: How To
Starting an SAP Program
3
2
After the program is started, you will see its selection screen.
311
Chapter 3: How To
Starting an SAP Program
5. Choose Execute.
312
Release 4.0B-4.5x
Chapter 3: How To
Identifying Business Object Fields
313
Chapter 3: How To
Identifying Business Object Fields
314
Release 4.0B-4.5x
Chapter 3: How To
Identifying Business Object Fields
10
By repeating this procedure you will identify all mandatory fields. If you complete this
process for the material master's first screen you will recognize the industry type (MBRSH)
and the material type (MTART) fields as mandatory entries. The material number (MATNR)
is only mandatory if you use an external number assignment. To use the SAP standard data
transfer programs, provide this data in the corresponding fields of the required flat file
structure. To see which record structures are used, see the section of the Use the Data Transfer
Workbench later this chapter, or refer to chapter 2 for that business object.
From release 4.5A it is possible, to record the relevant fields of the online transaction that
must be supplied in the transfer file. The advantage of this is that you can automatically
identify fields in the transfer file. You can access this function from the Data Transfer
Workbench central initial screen by choosing Goto Record fields. When you enter the
transaction code, the system calls the online transaction and processes it after you have
entered the field values. The fields are recorded in the background. When the recording is
complete, the system displays these as a list that contains the fields that were entered and
the following information on each field:
- Short text of the screen field
- Field value of the screen field
- Field identification of the screen field
- The corresponding record layout description.
You can call part of the F1 help from the list generated.
315
Chapter 3: How To
Identifying Business Object Fields
316
Release 4.0B-4.5x
Chapter 3: How To
Identifying Business Object Fields
On the next screen, you will see Field names (the first column) and Short text (in the righthand-side column). Browse through the fields by clicking Page Up or Page Down.
6. Print the
6
definitions by
choosing Table
Print.
317
Chapter 3: How To
Providing the Flat File Structure in C, COBOL, PL/1, or RPG
1
2
318
Release 4.0B-4.5x
Chapter 3: How To
Providing the Flat File Structure in C, COBOL, PL/1, or RPG
6. Choose Copy.
319
Chapter 3: How To
Providing the Flat File Structure in C, COBOL, PL/1, or RPG
7. Enter a filename
(for example,
C:\strucdef.t
xt).
8. Choose Execute or
press F8.
You can now use
the file to copy
the definitions
into your
conversion
program.
The Identifier in TSRCG field prevents you from manually entering all table names. Enter
one of the following:
! ALL-DEBI for all data transfer records for customer master (FI-DEBI is used for only
the specific FI record structures).
! ALL-KREDI for all transfer structures for the vendor master (FI-KREDI for only the
specific FI record structures).
! FI-BELE for all structures involved in the transfer of posting documents.
! MM-MM for the structures associated with the MM.
! AM-ANLA for the assets transfer structures.
! CS-BOM for the transfer structures relevant for bills of material.
! FI-SAKO for the structures involved in the transfer of GL accounts.
Improved Integration of the Generator for Advanced Programming Languages. Until
Release 4.5A to export the data structure into a different programming language
(COBOL, PL/1, C, RPG) you had to specify the corresponding table names. From Release
4.5A, the system automatically reads the structures of the objects so that you do not need
to enter them.
320
Release 4.0B-4.5x
Chapter 3: How To
Using Excel to Create an ASCII File
4. Choose OK.
321
Chapter 3: How To
Creating the Flat File with ABAP
Now you have a flat file of your legacy data with the correct structure.
5. In Notepad, open
the file you just
created.
322
Release 4.0B-4.5x
Chapter 3: How To
Starting a Batch Input Session
323
Chapter 3: How To
Starting a Batch Input Session
On the screen above, you can reduce the number of sessions to be shown on the next screen
by entering the following selection criteria:
! Session name
! Creation date
! Status criteria
If you just created the session, enter todays date and select To be processed. In this example,
no selection criteria were selected.
3. Choose Process.
This action begins
the session as
3
determined by
your cursor
position.
4. Select
Process/foreground.
5. Choose Process or
press Enter.
324
Release 4.0B-4.5x
Chapter 3: How To
Starting a Batch Input Session
! Background
This option
causes all
processing to
occur in the
background. The
log provides
detailed
information of
what happened.
6. In our example, we selected Process/foreground. On each screen, your flat file data is
automatically loaded into the appropriate fields.
7. Press Enter to move from screen to screen until you get the completion or an error
message. The screens you see are usually the same screens that you would see in the
online transaction.
To see if your data works properly, select Foreground or Error only. To transfer the data or to
check the performance of the transfer, select Background. To end a transaction, enter /bend
in the command line when you process the BI session.
In the BGR00 session header, the XKEEP field determines what happens with the BI session
after it is successfully processed. If the field is empty, the session was deleted and the log is
not available. If you enter an X in the XKEEP field, the session is not automatically deleted;
you can view the log, correct each problem, and then manually delete the session.
2. Choose Log.
325
Chapter 3: How To
Starting a Batch Input Session
2. Choose Session.
1
326
Release 4.0B-4.5x
Chapter 3: How To
Starting a Batch Input Session
5. Choose Screen.
This is a technical view. To see
the data as it appears on the
transaction, choose Screen.
327
Chapter 3: How To
Transferring Data via Direct Input
328
Release 4.0B-4.5x
Chapter 3: How To
Transferring Data via Direct Input
2. Choose Execute.
3. Entering a date is
optional.
You will then see
the Direct Input
screen.
Creating a Variant
If you do not have a variant for the data transfer program of the material master or the FI
accounting documents, create one. A variant stores all the information you want to enter for
a report on the selection screen, and allows you to start the program without re-entering
that information. The DI administration program starts the data transfer program by using a
variant.
329
Chapter 3: How To
Transferring Data via Direct Input
330
Release 4.0B-4.5x
Chapter 3: How To
Transferring Data via Direct Input
6
4
6. Choose Continue.
7. Enter a description.
8. Choose Save.
9. Choose OK.
331
Chapter 3: How To
Transferring Data via Direct Input
Job Definition
The job definition is the second prerequisite before you can run DI with the DI administration program.
The job description is necessary to schedule the data transfer program run with the correct variant.
1. In the Direct Input Administration
screen, click Define job.
332
Release 4.0B-4.5x
Chapter 3: How To
Transferring Data via Direct Input
Restarting a Job
Restart a job if termination problems occurred during data transfer. Before you restart the job, look at the
job log and correct any problems that may have caused the error.
1. Position the cursor on a job.
333
Chapter 3: How To
Moving Files From a PC to an Application Server
4. Choose OK.
334
Release 4.0B-4.5x
Chapter 3: How To
Moving Files From a PC to an Application Server
Using FTP
1. Start MS-DOS Prompt.
2. Enter ftp and pnsfo113 (the
application servers name).
6. Press Enter.
335
Chapter 3: How To
Moving Files From a PC to an Application Server
11
336
13
15
17
Release 4.0B-4.5x
Chapter 3: How To
Using Customer-Defined Flat File Structures and Transfer Programs
19
21
337
Chapter 3: How To
Using Customer-Defined Flat File Structures and Transfer Programs
Do not enter new fields or other fields in Z-structures, because you can adversely affect the
transfer of the SAP-required fields and the entire data transfer process. If you need additional
fields, please contact your SAP consultant.
4
3
338
Release 4.0B-4.5x
Chapter 3: How To
Using Customer-Defined Flat File Structures and Transfer Programs
6. Choose Enter.
6
Based on your SAP correction and transport system settings, a different popup screen may appear.
7. Select Structures.
8. Choose Change.
10
339
Chapter 3: How To
Displaying or Editing a Flat File
Do not delete any required fields (for example, never delete STYPE). Deleting required
fields prevents your flat file from working successfully.
To delete consecutive fields, use the block selection option on the Edit menu to mark the
data before you delete it.
If you create or delete the ZMMH1 structure, restart program RMDATING to activate your
changes.
340
Release 4.0B-4.5x
Chapter 3: How To
Maintaining Physical Filename for Logical Filenames
341
Chapter 3: How To
Maintaining Physical Filename for Logical Filenames
3
4
Before proceeding, find out if your business object requires client-dependent or clientindependent filename maintenance. Read the Caution textbox below to see the type of
filename maintenance your business object requires:
Listed below are the logical filenames in the R/3 standard system. Maintain these
filenames with the Additional client-dependent file name maintenance transaction:
! MM: MATERIAL_MASTER_BTCI
! Stocks: MM_INVENTORY_MANAGEMENT_GOODS_MOVEMENT
! Reservations: MM_INVENTORY_MANAGEMENT_RESERVATION
Below are the logical filenames in the standard system that you can maintain with Clientindependent maintenance of file names and paths:
! Bill of Material: CS_BI_VARIANT_BOM_CREATE
! Characteristics: CHARACTERISTIC
! Classes: CLASS_CREATE
! Classification: CLASSIFICATION
! Documents Info Records: CV_BI_DOCUMENT_INFO_RECORDS_CREATE
! Open Sales Orders: SD_OPEN_ORDERS (only test data)
! Purchase Requisition: MM_PURCHASING_REQUISITIONS
! Purchasing Information Record: MM_PURCHASING_INFORECORDS
342
Release 4.0B-4.5x
Chapter 3: How To
Maintaining Physical Filename for Logical Filenames
343
Chapter 3: How To
Maintaining Physical Filename for Logical Filenames
8. Choose Save.
344
Release 4.0B-4.5x
Chapter 3: How To
Using the Data Transfer Workbench
345
Chapter 3: How To
Using the Data Transfer Workbench
With R/3 System 4.5A, This Tool Supports the Following Data Transfer Objects:
! Accounting documents
! HR Master data
! Assets
! HR Personnel planning
! Stocks
! Bank data
! Material master
! Vendor master
! Bill of material
! WM Stocks
! Classes
! Purchase requisitions
! WM Storage bins
! Classifications
! Characteristics
! Rental contracts
! Customer master
! Rental units
! Reservations
! Routings
Since the tool is driven by control data stored in tables, it can be easily extended to other standard data
transfer programs. The workbench also supports the PM objects (400490). Selecting a PM object starts
transaction IBIP directly, which can also be used to transfer the PM objects.
The Functionality
Beginning the Transaction and Choosing a Data Transfer Object
1. Enter SXDA or /nSXDA.
2. Choose Enter.
2
346
Release 4.0B-4.5x
Chapter 3: How To
Using the Data Transfer Workbench
347
Chapter 3: How To
Using the Data Transfer Workbench
3
1
5
4
There are two main options when selecting the location where the file will be retrieved, the application
server, and the presentation server.
348
1
2
Release 4.0B-4.5x
Chapter 3: How To
Using the Data Transfer Workbench
4
5
Since this central tool can read and write files between application servers and presentation
servers, most standard data transfer programs require that you have the file on the local
application server. Therefore, you may use this tool to copy these files to the application server
when they are needed.
349
Chapter 3: How To
Using the Data Transfer Workbench
350
Release 4.0B-4.5x
Chapter 3: How To
Using the Data Transfer Workbench
6
5
351
Chapter 3: How To
Using the Data Transfer Workbench
A warning message will appear if you overwrite an existing file. If you ignore this message,
the existing file will be lost. To save the existing file in another location, choose Copy.
2. When you choose Create init. file,
the popup window to the right
should appear.
352
Release 4.0B-4.5x
Chapter 3: How To
Using the Data Transfer Workbench
3
2
353
Chapter 3: How To
Using the Data Transfer Workbench
Copy Files
1. This function enables you to copy
files between the front-end and any
R/3 application server, or between
any two R/3 application servers.
During the copy process you may
also change the filename.
354
4
2
Release 4.0B-4.5x
Chapter 3: How To
Using the Data Transfer Workbench
With Release 4.5A the copy function was enhanced. The copying of transfer files has been
extended with the following options:
- Copy without conversion: The file is copied unchanged.
- Conversion of fixed length -> delimited tab: This copy function can only be executed from the
application server to the presentation server. The data is converted from a fixed length to a
tabulator delimited format.
- Conversion of delimited tab. -> fixed length: This copy function can only be executed from
the presentation server to the application server. During this copying process, the data is
converted from tabulator delimited format to fixed length.
355
Chapter 3: How To
Using the Data Transfer Workbench
Export Structure
By clicking Structure, you can display
required flat file structure to be used as
input for mapping tools that can
understand this machine-readable
structure.
The output includes the following
information:
! Structures used in the flat file, and
whether the structures are optional
or mandatory.
! Order between the different
structures.
! Fields belonging to each structure
(field name, type, offset, and
length).
356
Release 4.0B-4.5x
Chapter 3: How To
Using the Data Transfer Workbench
357
Chapter 3: How To
Using a CATT Recording for Initial Data Transfer
Tables may be maintained with transaction SM30, but SAP strongly recommends that you
keep the settings for the existing entries. If you want to add entries, please use only data
transfer object numbers greater than 9000.
3.
358
Release 4.0B-4.5x
Chapter 3: How To
Using a CATT Recording for Initial Data Transfer
7. Double-click on TCD.
359
Chapter 3: How To
Using a CATT Recording for Initial Data Transfer
360
Release 4.0B-4.5x
Chapter 3: How To
Using a CATT Recording for Initial Data Transfer
10
11
15
16
361
Chapter 3: How To
Recording a Batch Input
362
Release 4.0B-4.5x
Chapter 3: How To
Recording a Batch Input
You need some basic ABAP knowledge to use BI recording efficiently; experience with regular
BI programming is beneficial.
1. Choose System Services Batch
Input Edit.
2. Choose Recording.
363
Chapter 3: How To
Recording a Batch Input
6. Choose Enter.
6
364
Release 4.0B-4.5x
Chapter 3: How To
Recording a Batch Input
10
365
Chapter 3: How To
13. Position the cursor on the justrecorded entry and click Generate
Program.
13
Saving a program can result in multiple popup screens depending on your system settings (for
example, transport number for correction and transport system).
366
Release 4.0B-4.5x