19 Data import. © beas group 2011 / Page 2 This documentation and training is provided to you by...

Post on 03-Jan-2016

212 views 0 download

Transcript of 19 Data import. © beas group 2011 / Page 2 This documentation and training is provided to you by...

19 Data import

© beas group 2011 / Page 2

This documentation and training is provided to you by beas group AG. The documents are neither approved nor in any way acknowledged or endorsed by SAP. For SAP Business One, only the documentation and training officially released by SAP shall be binding upon SAP. SAP shall not be responsible for any content of this documentation and training and this documentation and training shall not be binding upon SAP in any way.

The official current SAP Business One documentation and training for SAP Business One is available at http://service.sap.com/sbocustomer/documentation and http://service.sap.com/sbocustomer/training.

© beas group 2011 / Page 3

Requirements for this Tutorial

What you should successfully master The basics of SAP The basics of be.as, knowledge of data structure Basics of SQL

© beas group 2011 / Page 4

Learning Targets

After working through the lesson, you will be able to: Import and convert databases Adjust databases

© beas group 2011 / Page 5

Agenda

Data import

1: General

2: Working with the import program

3: Step by step

© beas group 2011 / Page 6

Data importWhich program?

Standard-SAP-Tables +

UDF + UDT

Be.as- and own tables

DTW(by SAP)

Be.as – Import - Program

Be.as – Script, suitable for iterations and complex import

tasks

Be.as – Script, suitable for iterations and complex import

tasks

© beas group 2011 / Page 7

Data import The be.as import - program

Advantages:

Full integration in be.as Many functions for import and conversion Data source can be converted and processed after

import,useful for multiple imports

Disadvantages:

No accuracy check of the imported data 

© beas group 2011 / Page 8

Data importGeneral structure of the process

Datasource

Filter+

Conversion

DatatargetAssignment

© beas group 2011 / Page 9

Data importData source

Every ODBC-capable

data base

Any text file

NOExcel-files!

NOExcel-files!

Tables from be.as and SAP

Current data base

© beas group 2011 / Page 10

Data importData target

Complete and simple Interfaces for

ResourceOperation

ItemRouting

Bill of MaterialsCustomersAddresses

Contact PersonsPrices

WarehouseAttendance

Complex and hazardousInterface:

Manually definedsource file

© beas group 2011 / Page 11

Agenda

Data import

1: General

2: Working with the import program

3: Step by step

© beas group 2011 / Page 12

Data importImport definition

target

Additional source defition Assigment of

source fields to target fields

source

© beas group 2011 / Page 13

Data importImport from text file

© beas group 2011 / Page 14

Data import Import from data base

© beas group 2011 / Page 15

Data import Field assignment

ag_id

123-<ag_id>

Select ‘123‘-‘<ag_id>‘

select case when x=y then ‘<Ag_id>‘ else ‘ <ag2_id>‘ end

© beas group 2011 / Page 16

Data importManually define target

© beas group 2011 / Page 17

Data importPerforming the import

© beas group 2011 / Page 18

Summary

You can now: Import and convert databases Adjust databases

Thank you for your cooperation!