abap2xlsx - inwerken ag: sap beratung und …...sap and excel current interaction via abap one-way...
TRANSCRIPT
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
Stefan Schmöcker, 25.2.1017 [email protected]
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 [email protected]
4
Examples data interchange
• Data export from ALV list
• Data import from file
Stefan Schmöcker, 25.2.1017 [email protected]
5
Current restrictionsALV export
• ALV lists can only export one table
Stefan Schmöcker, 25.2.1017 [email protected]
6
Current restrictionsALV export
• ALV lists can only export one table
• Possible only online
Stefan Schmöcker, 25.2.1017 [email protected]
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 [email protected]
8
Current restrictionsdataimport
• Excelfile needs to be converted toCSV or TXT
Stefan Schmöcker, 25.2.1017 [email protected]
9
Current restrictionsdataimport
• Excelfile needs to be converted toCSV or TXT
• One file for each sheet
Stefan Schmöcker, 25.2.1017 [email protected]
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 [email protected]
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 [email protected]
12
Stefan Schmöcker, 25.2.1017 [email protected]
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 [email protected]
14
ABAP2XLSX
• Creates and reads Excel files online and offline
Stefan Schmöcker, 25.2.1017 [email protected]
16
ABAP2XLSX
• Creates and reads Excel files online and offline
• Creates formatted Excel files
Stefan Schmöcker, 25.2.1017 [email protected]
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 [email protected]
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 [email protected]
19
ABAP2XLSX
• Can‘t handle old .xlsextension
• Does not support all Excel features
Stefan Schmöcker, 25.2.1017 [email protected]
21
ABAP2XLSX
• Can‘t handle old .xlsextension
• Does not support all Excel features
• Documentationsuboptimal
Stefan Schmöcker, 25.2.1017 [email protected]
22
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
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
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
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
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
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
ABAP2XLSX
Integration of R/3 and EXCEL
Some examples from customers
Stefan Schmöcker, 25.2.1017 [email protected]
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 [email protected]
31
ABAP2XLSXScreenshots from live systems
( slightly blurred and anonymized )
Periodic report to end customer
Stefan Schmöcker, 25.2.1017 [email protected]
35
ABAP2XLSXScreenshots from live systems
( slightly blurred and anonymized )
Data entry (partially offline )
Stefan Schmöcker, 25.2.1017 [email protected]
36
ABAP2XLSXScreenshots from live systems
( slightly blurred and anonymized )
Data entry – online interactive
Stefan Schmöcker, 25.2.1017 [email protected]
37
ABAP2XLSXScreenshots from live systems
( slightly blurred and anonymized )
Data entry – detailscreen
Stefan Schmöcker, 25.2.1017 [email protected]
38
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
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
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
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
Resources
• Website to install ABAP2XLSX from
• Currently hosted at github• http://ivanfemia.github.io/abap2xlsx/
Stefan Schmöcker, 25.2.1017 [email protected]
44