abap2xlsx - inwerken ag: sap beratung und …...sap and excel current interaction via abap one-way...
TRANSCRIPT
![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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/2.jpg)
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 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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/4.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/5.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/6.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/7.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/8.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/9.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/10.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/11.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/12.jpg)
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 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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/14.jpg)
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 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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/16.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/17.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/18.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/19.jpg)
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 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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/21.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/22.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/23.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/24.jpg)
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 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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/26.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/27.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/28.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/29.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/30.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/31.jpg)
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 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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/35.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/36.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/37.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/38.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/39.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/40.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/41.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/42.jpg)
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 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](https://reader034.vdocuments.net/reader034/viewer/2022042117/5e951a68f2a0e82574398328/html5/thumbnails/44.jpg)
Resources
• Website to install ABAP2XLSX from
• Currently hosted at github• http://ivanfemia.github.io/abap2xlsx/
Stefan Schmöcker, 25.2.1017 [email protected]
44