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

44
ABAP2XLSX Integration of R/3 and EXCEL Introduction Stefan Schmöcker, 25.2.1017 [email protected] 1

Upload: others

Post on 09-Apr-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX

Integration of R/3 and EXCEL

Introduction

Stefan Schmöcker, 25.2.1017 [email protected]

1

Page 2: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

2

Page 3: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Stefan Schmöcker, 25.2.1017 [email protected]

3

Page 4: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

4

Page 5: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Examples data interchange

• Data export from ALV list

• Data import from file

Stefan Schmöcker, 25.2.1017 [email protected]

5

Page 6: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Current restrictionsALV export

• ALV lists can only export one table

Stefan Schmöcker, 25.2.1017 [email protected]

6

Page 7: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Current restrictionsALV export

• ALV lists can only export one table

• Possible only online

Stefan Schmöcker, 25.2.1017 [email protected]

7

Page 8: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

8

Page 9: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Current restrictionsdataimport

• Excelfile needs to be converted toCSV or TXT

Stefan Schmöcker, 25.2.1017 [email protected]

9

Page 10: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Current restrictionsdataimport

• Excelfile needs to be converted toCSV or TXT

• One file for each sheet

Stefan Schmöcker, 25.2.1017 [email protected]

10

Page 11: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

11

Page 12: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

12

Page 13: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Stefan Schmöcker, 25.2.1017 [email protected]

13

Page 14: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

14

Page 15: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX

Stefan Schmöcker, 25.2.1017 [email protected]

15

Page 16: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX

• Creates and reads Excel files online and offline

Stefan Schmöcker, 25.2.1017 [email protected]

16

Page 17: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX

• Creates and reads Excel files online and offline

• Creates formatted Excel files

Stefan Schmöcker, 25.2.1017 [email protected]

17

Page 18: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

18

Page 19: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

19

Page 20: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX

• Can‘t handle old .xlsextension

Stefan Schmöcker, 25.2.1017 [email protected]

20

Page 21: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX

• Can‘t handle old .xlsextension

• Does not support all Excel features

Stefan Schmöcker, 25.2.1017 [email protected]

21

Page 22: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX

• Can‘t handle old .xlsextension

• Does not support all Excel features

• Documentationsuboptimal

Stefan Schmöcker, 25.2.1017 [email protected]

22

Page 23: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX

• Can‘t handle old .xlsextension

• Does not support all Excel features

• Documentationsuboptimal

• Comes „as is“

Stefan Schmöcker, 25.2.1017 [email protected]

23

Page 24: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

24

Page 25: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX

Integration of R/3 and EXCEL

Usage

Stefan Schmöcker, 25.2.1017 [email protected]

25

Page 26: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

26

Page 27: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

27

Page 28: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

28

Page 29: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

29

Page 30: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX

Integration of R/3 and EXCEL

Some examples from customers

Stefan Schmöcker, 25.2.1017 [email protected]

30

Page 31: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

31

Page 32: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Example 1Daily report

Stefan Schmöcker, 25.2.1017 [email protected]

32

Page 33: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Example 2Monthly status update

Page 1 Page 2

Stefan Schmöcker, 25.2.1017 [email protected]

33

Page 34: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Example 3other monthly report

Stefan Schmöcker, 25.2.1017 [email protected]

34

Page 35: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSXScreenshots from live systems

( slightly blurred and anonymized )

Periodic report to end customer

Stefan Schmöcker, 25.2.1017 [email protected]

35

Page 36: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSXScreenshots from live systems

( slightly blurred and anonymized )

Data entry (partially offline )

Stefan Schmöcker, 25.2.1017 [email protected]

36

Page 37: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSXScreenshots from live systems

( slightly blurred and anonymized )

Data entry – online interactive

Stefan Schmöcker, 25.2.1017 [email protected]

37

Page 38: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSXScreenshots from live systems

( slightly blurred and anonymized )

Data entry – detailscreen

Stefan Schmöcker, 25.2.1017 [email protected]

38

Page 39: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSXDataexport from Excel to CSV/TXT

Excel – Screenshot englishDecimal separator: Period

Excel – Screenshot germanDecimal separator: Comma

Stefan Schmöcker, 25.2.1017 [email protected]

39

Page 40: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

40

Page 41: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

41

Page 42: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

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 [email protected]

42

Page 43: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

ABAP2XLSX is open source

Stefan Schmöcker, 25.2.1017 [email protected]

43

Page 44: ABAP2XLSX - Inwerken AG: SAP Beratung und …...SAP and Excel Current interaction via ABAP One-way • Standard support from frontend via file extension Interactive • OLE2 • DOI

Resources

• Website to install ABAP2XLSX from

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

Stefan Schmöcker, 25.2.1017 [email protected]

44