abap2xlsx - inwerken ag: sap beratung und …...sap and excel current interaction via abap one-way...

Post on 09-Apr-2020

5 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

ABAP2XLSX

Integration of R/3 and EXCEL

Introduction

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

1

Why Excel

• Everyone! Loves Excel

• It‘s so easy to use – everyone does

• Excel is the data tool for the common man

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

2

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

3

What are common usesof EXCEL in SAP R/3

• Data interchange

• Providing data in a way people are used to

• Presenting data in a prettier way than SAP does

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

4

Examples data interchange

• Data export from ALV list

• Data import from file

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

5

Current restrictionsALV export

• ALV lists can only export one table

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

6

Current restrictionsALV export

• ALV lists can only export one table

• Possible only online

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

7

Current restrictionsALV export

• ALV lists can only export one table

• Possible only online

• Possible only if user has installedExcel

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

8

Current restrictionsdataimport

• Excelfile needs to be converted toCSV or TXT

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

9

Current restrictionsdataimport

• Excelfile needs to be converted toCSV or TXT

• One file for each sheet

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

10

Current restrictionsdataimport

• Excelfile needs to be converted toCSV or TXT

• One file for each sheet

• Possible only if user has installedExcel

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

11

SAP and ExcelCurrent interaction via ABAP

One-way

• Standard supportfrom frontend via file extension

Interactive

• OLE2

• DOI ( Document Office Integration )

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

12

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

13

What is ABAP2XLSX

• Open source tool to read andcreate EXCEL-files with ABAP

• Adds capabilities that standardR/3 does not offer out of the box

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

14

ABAP2XLSX

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

15

ABAP2XLSX

• Creates and reads Excel files online and offline

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

16

ABAP2XLSX

• Creates and reads Excel files online and offline

• Creates formatted Excel files

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

17

ABAP2XLSX

• Creates and reads Excel files online and offline

• Creates formatted Excel files

• Frontend decides howcountry specific data isdisplayed

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

18

ABAP2XLSX

• Creates and reads Excel files online and offline

• Creates formatted Excel files

• Frontend decides howcountry specific data isdisplayed

• Multi-line cellssupported

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

19

ABAP2XLSX

• Can‘t handle old .xlsextension

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

20

ABAP2XLSX

• Can‘t handle old .xlsextension

• Does not support all Excel features

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

21

ABAP2XLSX

• Can‘t handle old .xlsextension

• Does not support all Excel features

• Documentationsuboptimal

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

22

ABAP2XLSX

• Can‘t handle old .xlsextension

• Does not support all Excel features

• Documentationsuboptimal

• Comes „as is“

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

23

ABAP2XLSX

• Can‘t handle old .xlsextension

• Does not support all Excel features

• Documentationsuboptimal

• Comes „as is“

• No SAP support

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

24

ABAP2XLSX

Integration of R/3 and EXCEL

Usage

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

25

Why does ABAP2XLSX work

• .xlsx = „Microsoft Office Open XML Format Spreadsheet“

• .xlsx = disguised .zip

• ABAP can handle zipped files

• ABAP can handle XML files

• ABAP can handle .xlsx files

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

26

Who provides or maintains ABAP2XLSX

• Project started by Ivan Femiaafter Microsoft announcedthe new file format .xlsx

• Currently hosted at github• http://ivanfemia.github.io/abap2xlsx/

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

27

ABAP2XLSX installation

Installation Guide at github

oBasically you install ABAP2XLX via SAPLINK.

o Installation via SAP transportfile is not provided at the moment

o It is available if you contact me.

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

28

ABAP2XLSX deinstallation

• ABAP2XLSX is just a collectiondomains, data elements, structures, interfaces and classes

• No tables are created

• No table data is modified

• You have a clean systemafterwards

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

29

ABAP2XLSX

Integration of R/3 and EXCEL

Some examples from customers

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

30

ABAP2XLSXExamples from customers

ReportingCustomer has to report to japanes parent with

daily, weekly and monthly Excelfiles

Required layout was given by Japan for each fileand only minor changes are/were allowed

3 example files

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

31

Example 1Daily report

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

32

Example 2Monthly status update

Page 1 Page 2

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

33

Example 3other monthly report

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

34

ABAP2XLSXScreenshots from live systems

( slightly blurred and anonymized )

Periodic report to end customer

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

35

ABAP2XLSXScreenshots from live systems

( slightly blurred and anonymized )

Data entry (partially offline )

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

36

ABAP2XLSXScreenshots from live systems

( slightly blurred and anonymized )

Data entry – online interactive

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

37

ABAP2XLSXScreenshots from live systems

( slightly blurred and anonymized )

Data entry – detailscreen

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

38

ABAP2XLSXDataexport from Excel to CSV/TXT

Excel – Screenshot englishDecimal separator: Period

Excel – Screenshot germanDecimal separator: Comma

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

39

ABAP2XLSXDataexport from Excel to CSV/TXT

CSV corresponds to screenshotDecimal separator: PeriodField separator: Comma ( as in „comma separated“ )

CSV corresponds to screenshotDecimal separator: CommaField separator: Semicolon

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

40

Creating an EXCEL file

• Documentation is weak – but there are a bunch of DEMO programs that come with theinstallation

• ZDEMO_EXCEL* ( > 40 Demoprograms )

• There is no logical order to the demoprogramsL

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

41

ABAP2XLSX

Integration of R/3 and EXCEL

Quick online demonstration how to create a simple Excel file using ABAP2XLSX

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

42

ABAP2XLSX is open source

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

43

Resources

• Website to install ABAP2XLSX from

• Currently hosted at github• http://ivanfemia.github.io/abap2xlsx/

Stefan Schmöcker, 25.2.1017 Stefan@Schmoecker.de

44

top related