SlideShare una empresa de Scribd logo
1 de 17
SAP Integration with Magento
Confidential
By: Aman Agarwal
Confidential
Agenda
❏ Things we can integrate between SAP & MAGENTO
❏ Process to Integrate.
❏ Sample Code From Live Project
Confidential
Things We Can Integrate?
❏ SAP is arguably one of the most powerful ERP platforms available on the market, offering a
plethora of product, customer, resource, and reporting management to its customers.
❏ Integrating Magento with SAP provides a powerful unification of your business channels,
without the stress or potential error of manual processes
❏ We can integrate SAP with 3rd party systems through below process:
❏ SOAP APIS
❏ FTP based method
Confidential
Things We Can Integrate?
❏ We can do many integration between Magento and SAP like:
❏ Order Processing
❏ Fulfillment Management
❏ CRM synchronization
❏ Product Management:
■ Product Upload from SAP to Magento
■ Product Price Update from SAP to Magento
■ Inventory Management
Confidential
Approach to Integrate Inventory Management
FTP Based Approach:
■ 2 files required for Magento <> Sap Integration:
❏ So.txt file -> Order export from Magento to SAP
❏ Atp.txt -> Inventory update from SAP to Magento
■ There will be a common FTP where both the system will exchange their files.
■ Need to create one custom module in Magento to Integrate with SAP so that we
can use it in other Magento systems also by just making some minor change.
Confidential
Process to Integrate?
Confidential
MAGENTO TO SAP
❏ Order file will have the following format:
❏ Filename: so_<Magento_Order_Id>.txt
❏ File Format: txt (Text-flat file)
❏ Column headers: Included
❏ Column separator: Tabulation
❏ Magento will write the SO file it to its own folder var/sap/so/
❏ After the file is processed (i.e. sent to the FTP server), it will be relocated locally to
var/sap/so/archived/
❏ File will includes:
❏ 1 line for each product order
❏ 1 line for the shipping method
Confidential
MAGENTO TO SAP
❏ Sample File:
❏ The SO extract will be triggered dynamically when the shipment is created for the order
(please refer to Order flow section). The file will be stored locally in Magento server (folder
to be configured in Backend ‘Local SO relative file location’), then uploaded to the FTP
server.
❏ Create below DB table :
Table : SAP_SO_FILE
❏ Fields:
Confidential
MAGENTO TO SAP
❏ Fields:
❏ SAP_SO_FILE_ID
❏ SAP_SO_FILE_NAME
❏ GEN_TYPE : Automatic or Manual
❏ GEN_TIMESTAMP
❏ COMPLETION_TIMESTAMP
❏ SAP_SO_FILE_LOG : FTP error, Read/Write error or File not found error.
❏ Error During FTP connection:
❏ If the file can’t be sent to the FTP server, then the field
SAP_SO_FILE.COMPLETION_TIMESTAMP remains empty.
Confidential
MAGENTO TO SAP
❏ During each script execution, it will go through the table SAP_SO_FILE and check for
unsent files:
■ GEN_TYPE: ‘A’
■ GEN_TIMESTAMP: value filled
■ COMPLETION_TIMESTAMP: value empty
❏ The script will then send these files 1 by one, and if sent successfully, will update their
SAP_SO_FILE.COMPLETION_TIMESTAMP value accordingly.
❏ Alert Email for Success or Failure to Admin.
Confidential
SAP TO MAGENTO
❏ ATP file will have the following format:
❏ Filename: atp.txt
❏ File format: txt (Text - flat file)
❏ Column headers: Included
❏ Column separator: Tabulation
❏ The ATP file is generated by SAP every 30 minutes and must be uploaded in Magento
with the same schedule.
❏ When the file is successfully uploaded to Magento, it will be relocated to an archive
folder in the FTP folder and remove from its original folder from the FTP folder (refer to
admin panel section).
❏ Magento will retrieve the ATP file and upload it to its own folder var/sap/atp/ and
rename it atp_YYYYMMDD_HHMMSS.txt.
❏ After the file is processed, it will be relocated locally to var/sap/atp/archived/
Confidential
SAP TO MAGENTO
❏ Fields:
❏ SAP_ATP_FILE_ID: database ID, auto_increment
❏ START_TIMESTAMP: Timestamp when the script is triggered and Magento will start to
establish the connection to FTP server.
❏ NB_PRODUCTS: Integer, Nb products read from the ATP file
❏ NB_PRODUCTS_PROCESSED: Integer, Nb products successfully updated in Magento
❏ COMPLETION_TIMESTAMP: Timestamp of end processing for current ATP file
❏ SAP_ATP_FILE_LOG: Text. Will log the following event:
❏ FTP Connectivity:
■ [FTP Connection]: <IP_Address> - FAIL – <FTP error message>
❏ Incorrect file format:
■ [File Format]: Incorrect file format
Confidential
SAP TO MAGENTO
❏ Fields SAP ATP DATA:
❏ SAP_ATP_DATA_ID: database ID, auto_increment
❏ SAP_ATP_FILE_ID: Foreign key from SAP_ATP_FILE
❏ ATP_FILE_LINE: line number in ATP file
❏ ARTICLE: Column article from ATP file
❏ BATCH: Column article from ATP file
❏ NET_MOVEMENT: Column article from ATP file
❏ PROCESSED_TIMESTAMP: Timestamp after the product inventory has been updated
successfully (empty until the product has been processed)
❏ SAP_ATP_DATA_LOG: Text. Will log the following event:
❏ Product not found in Magento:
■ [Product SKU <article>_<batch>]: Not found
Confidential
SAP TO MAGENTO
❏ Email Alerts:
❏ If an issue is met during the FTP connectivity or file format verification, no product will be
uploaded in table SAP_ATP_DATA. An email will be sent to the ‘Email Alert’ configured in
Magento admin panel.
❏ If the file is processed correctly, but the number of products processed
(SAP_ATP_FILE.NB_PRODUCTS_PROCESSED) is less than the number of product uploaded
(SAP_ATP_FILE.NB_PRODUCTS) the following email will be sent to the ‘Email Alert’ configured
in Magento admin panel
❏ If the file is processed correctly and all products are updated, the following email will be sent to
the ‘Email Alert’ configured in Magento admin panel
Confidential
SAP TO MAGENTO
❏ Process of Several Files:
❏ In case of manual amendment of the ATP file, it can be uploaded to the Magento folder
(following its naming convention), and the file will be dynamically process as soon as the script
will be executed by the cron job.
❏ Therefore, several files may be processed in a queue: The files will be processed one by one,
based on their name (oldest file first: atp_YYYYMMDD_HHMMSS.txt).
Confidential
MAGENTO ADMIN
Confidential
Thank You

Más contenido relacionado

Destacado

Lo que los usuarios no ven de Magento pero se benefician de ello
Lo que los usuarios no ven de Magento pero se benefician de elloLo que los usuarios no ven de Magento pero se benefician de ello
Lo que los usuarios no ven de Magento pero se benefician de elloLibreCon
 
Elección de Magento como plataforma E-commerce
Elección de Magento como plataforma E-commerceElección de Magento como plataforma E-commerce
Elección de Magento como plataforma E-commerceJordi Rosell
 
TEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of WorkTEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of WorkVolker Hirsch
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksSlideShare
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShareSlideShare
 

Destacado (6)

Usabilidad web
Usabilidad webUsabilidad web
Usabilidad web
 
Lo que los usuarios no ven de Magento pero se benefician de ello
Lo que los usuarios no ven de Magento pero se benefician de elloLo que los usuarios no ven de Magento pero se benefician de ello
Lo que los usuarios no ven de Magento pero se benefician de ello
 
Elección de Magento como plataforma E-commerce
Elección de Magento como plataforma E-commerceElección de Magento como plataforma E-commerce
Elección de Magento como plataforma E-commerce
 
TEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of WorkTEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of Work
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
 

Similar a Magento meetup march-2017

Instalation guide pressto net systemenglish
Instalation guide pressto net systemenglishInstalation guide pressto net systemenglish
Instalation guide pressto net systemenglishdaniellopez972
 
ESM Upgrade Guide (ESM v6.9.1c)
ESM Upgrade Guide (ESM v6.9.1c)ESM Upgrade Guide (ESM v6.9.1c)
ESM Upgrade Guide (ESM v6.9.1c)Protect724tk
 
Magento performancenbs
Magento performancenbsMagento performancenbs
Magento performancenbsvarien
 
AIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge ShareAIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge Share.Gastón. .Bx.
 
Migrating ESM Resources From Oracle to CORR-Engine for ESM 6.5c SP1
Migrating ESM Resources From Oracle to CORR-Engine for ESM 6.5c SP1Migrating ESM Resources From Oracle to CORR-Engine for ESM 6.5c SP1
Migrating ESM Resources From Oracle to CORR-Engine for ESM 6.5c SP1Protect724mouni
 
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...I-Verve Inc
 
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQLWebinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQLSeveralnines
 
PHP tutorials , php tutorials for beginners , tutorials for php
PHP tutorials , php tutorials for beginners , tutorials for phpPHP tutorials , php tutorials for beginners , tutorials for php
PHP tutorials , php tutorials for beginners , tutorials for phpaimaq9a
 
Introduction to Magento Optimization
Introduction to Magento OptimizationIntroduction to Magento Optimization
Introduction to Magento OptimizationFabio Daniele
 
How to migrate data from OpenCart to Magento Using LitExtension Migration Tool
How to migrate data from OpenCart to Magento Using LitExtension Migration ToolHow to migrate data from OpenCart to Magento Using LitExtension Migration Tool
How to migrate data from OpenCart to Magento Using LitExtension Migration ToolLitExtension
 
Introduction to Mangento
Introduction to Mangento Introduction to Mangento
Introduction to Mangento Ravi Mehrotra
 
R12 d49656 gc10-apps dba 20
R12 d49656 gc10-apps dba 20R12 d49656 gc10-apps dba 20
R12 d49656 gc10-apps dba 20zeesniper
 
How to move Interspire to Magento using LitExtension tool
How to move Interspire to Magento using LitExtension toolHow to move Interspire to Magento using LitExtension tool
How to move Interspire to Magento using LitExtension toolLitExtension
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentalsGopal Ji Singh
 
What’s New in Oracle E-Business Suite R12.2 for Database Administrators?
What’s New in Oracle E-Business Suite R12.2 for Database Administrators?What’s New in Oracle E-Business Suite R12.2 for Database Administrators?
What’s New in Oracle E-Business Suite R12.2 for Database Administrators?vasuballa
 
How to migrate data from 3d Cart to Magento with LitExtension
How to migrate data from 3d Cart to Magento with LitExtensionHow to migrate data from 3d Cart to Magento with LitExtension
How to migrate data from 3d Cart to Magento with LitExtensionLitExtension
 

Similar a Magento meetup march-2017 (20)

Instalation guide pressto net systemenglish
Instalation guide pressto net systemenglishInstalation guide pressto net systemenglish
Instalation guide pressto net systemenglish
 
Pacthing
PacthingPacthing
Pacthing
 
ESM Upgrade Guide (ESM v6.9.1c)
ESM Upgrade Guide (ESM v6.9.1c)ESM Upgrade Guide (ESM v6.9.1c)
ESM Upgrade Guide (ESM v6.9.1c)
 
Magento performancenbs
Magento performancenbsMagento performancenbs
Magento performancenbs
 
AIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge ShareAIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge Share
 
Upgrade Guide for ESM 6.8c
Upgrade Guide for ESM 6.8cUpgrade Guide for ESM 6.8c
Upgrade Guide for ESM 6.8c
 
Migrating ESM Resources From Oracle to CORR-Engine for ESM 6.5c SP1
Migrating ESM Resources From Oracle to CORR-Engine for ESM 6.5c SP1Migrating ESM Resources From Oracle to CORR-Engine for ESM 6.5c SP1
Migrating ESM Resources From Oracle to CORR-Engine for ESM 6.5c SP1
 
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
 
SnapDiff
SnapDiffSnapDiff
SnapDiff
 
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQLWebinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
 
PHP tutorials , php tutorials for beginners , tutorials for php
PHP tutorials , php tutorials for beginners , tutorials for phpPHP tutorials , php tutorials for beginners , tutorials for php
PHP tutorials , php tutorials for beginners , tutorials for php
 
Introduction to Magento Optimization
Introduction to Magento OptimizationIntroduction to Magento Optimization
Introduction to Magento Optimization
 
How to migrate data from OpenCart to Magento Using LitExtension Migration Tool
How to migrate data from OpenCart to Magento Using LitExtension Migration ToolHow to migrate data from OpenCart to Magento Using LitExtension Migration Tool
How to migrate data from OpenCart to Magento Using LitExtension Migration Tool
 
Mangento
MangentoMangento
Mangento
 
Introduction to Mangento
Introduction to Mangento Introduction to Mangento
Introduction to Mangento
 
R12 d49656 gc10-apps dba 20
R12 d49656 gc10-apps dba 20R12 d49656 gc10-apps dba 20
R12 d49656 gc10-apps dba 20
 
How to move Interspire to Magento using LitExtension tool
How to move Interspire to Magento using LitExtension toolHow to move Interspire to Magento using LitExtension tool
How to move Interspire to Magento using LitExtension tool
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
 
What’s New in Oracle E-Business Suite R12.2 for Database Administrators?
What’s New in Oracle E-Business Suite R12.2 for Database Administrators?What’s New in Oracle E-Business Suite R12.2 for Database Administrators?
What’s New in Oracle E-Business Suite R12.2 for Database Administrators?
 
How to migrate data from 3d Cart to Magento with LitExtension
How to migrate data from 3d Cart to Magento with LitExtensionHow to migrate data from 3d Cart to Magento with LitExtension
How to migrate data from 3d Cart to Magento with LitExtension
 

Último

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 

Último (20)

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 

Magento meetup march-2017

  • 1. SAP Integration with Magento Confidential By: Aman Agarwal
  • 2. Confidential Agenda ❏ Things we can integrate between SAP & MAGENTO ❏ Process to Integrate. ❏ Sample Code From Live Project
  • 3. Confidential Things We Can Integrate? ❏ SAP is arguably one of the most powerful ERP platforms available on the market, offering a plethora of product, customer, resource, and reporting management to its customers. ❏ Integrating Magento with SAP provides a powerful unification of your business channels, without the stress or potential error of manual processes ❏ We can integrate SAP with 3rd party systems through below process: ❏ SOAP APIS ❏ FTP based method
  • 4. Confidential Things We Can Integrate? ❏ We can do many integration between Magento and SAP like: ❏ Order Processing ❏ Fulfillment Management ❏ CRM synchronization ❏ Product Management: ■ Product Upload from SAP to Magento ■ Product Price Update from SAP to Magento ■ Inventory Management
  • 5. Confidential Approach to Integrate Inventory Management FTP Based Approach: ■ 2 files required for Magento <> Sap Integration: ❏ So.txt file -> Order export from Magento to SAP ❏ Atp.txt -> Inventory update from SAP to Magento ■ There will be a common FTP where both the system will exchange their files. ■ Need to create one custom module in Magento to Integrate with SAP so that we can use it in other Magento systems also by just making some minor change.
  • 7. Confidential MAGENTO TO SAP ❏ Order file will have the following format: ❏ Filename: so_<Magento_Order_Id>.txt ❏ File Format: txt (Text-flat file) ❏ Column headers: Included ❏ Column separator: Tabulation ❏ Magento will write the SO file it to its own folder var/sap/so/ ❏ After the file is processed (i.e. sent to the FTP server), it will be relocated locally to var/sap/so/archived/ ❏ File will includes: ❏ 1 line for each product order ❏ 1 line for the shipping method
  • 8. Confidential MAGENTO TO SAP ❏ Sample File: ❏ The SO extract will be triggered dynamically when the shipment is created for the order (please refer to Order flow section). The file will be stored locally in Magento server (folder to be configured in Backend ‘Local SO relative file location’), then uploaded to the FTP server. ❏ Create below DB table : Table : SAP_SO_FILE ❏ Fields:
  • 9. Confidential MAGENTO TO SAP ❏ Fields: ❏ SAP_SO_FILE_ID ❏ SAP_SO_FILE_NAME ❏ GEN_TYPE : Automatic or Manual ❏ GEN_TIMESTAMP ❏ COMPLETION_TIMESTAMP ❏ SAP_SO_FILE_LOG : FTP error, Read/Write error or File not found error. ❏ Error During FTP connection: ❏ If the file can’t be sent to the FTP server, then the field SAP_SO_FILE.COMPLETION_TIMESTAMP remains empty.
  • 10. Confidential MAGENTO TO SAP ❏ During each script execution, it will go through the table SAP_SO_FILE and check for unsent files: ■ GEN_TYPE: ‘A’ ■ GEN_TIMESTAMP: value filled ■ COMPLETION_TIMESTAMP: value empty ❏ The script will then send these files 1 by one, and if sent successfully, will update their SAP_SO_FILE.COMPLETION_TIMESTAMP value accordingly. ❏ Alert Email for Success or Failure to Admin.
  • 11. Confidential SAP TO MAGENTO ❏ ATP file will have the following format: ❏ Filename: atp.txt ❏ File format: txt (Text - flat file) ❏ Column headers: Included ❏ Column separator: Tabulation ❏ The ATP file is generated by SAP every 30 minutes and must be uploaded in Magento with the same schedule. ❏ When the file is successfully uploaded to Magento, it will be relocated to an archive folder in the FTP folder and remove from its original folder from the FTP folder (refer to admin panel section). ❏ Magento will retrieve the ATP file and upload it to its own folder var/sap/atp/ and rename it atp_YYYYMMDD_HHMMSS.txt. ❏ After the file is processed, it will be relocated locally to var/sap/atp/archived/
  • 12. Confidential SAP TO MAGENTO ❏ Fields: ❏ SAP_ATP_FILE_ID: database ID, auto_increment ❏ START_TIMESTAMP: Timestamp when the script is triggered and Magento will start to establish the connection to FTP server. ❏ NB_PRODUCTS: Integer, Nb products read from the ATP file ❏ NB_PRODUCTS_PROCESSED: Integer, Nb products successfully updated in Magento ❏ COMPLETION_TIMESTAMP: Timestamp of end processing for current ATP file ❏ SAP_ATP_FILE_LOG: Text. Will log the following event: ❏ FTP Connectivity: ■ [FTP Connection]: <IP_Address> - FAIL – <FTP error message> ❏ Incorrect file format: ■ [File Format]: Incorrect file format
  • 13. Confidential SAP TO MAGENTO ❏ Fields SAP ATP DATA: ❏ SAP_ATP_DATA_ID: database ID, auto_increment ❏ SAP_ATP_FILE_ID: Foreign key from SAP_ATP_FILE ❏ ATP_FILE_LINE: line number in ATP file ❏ ARTICLE: Column article from ATP file ❏ BATCH: Column article from ATP file ❏ NET_MOVEMENT: Column article from ATP file ❏ PROCESSED_TIMESTAMP: Timestamp after the product inventory has been updated successfully (empty until the product has been processed) ❏ SAP_ATP_DATA_LOG: Text. Will log the following event: ❏ Product not found in Magento: ■ [Product SKU <article>_<batch>]: Not found
  • 14. Confidential SAP TO MAGENTO ❏ Email Alerts: ❏ If an issue is met during the FTP connectivity or file format verification, no product will be uploaded in table SAP_ATP_DATA. An email will be sent to the ‘Email Alert’ configured in Magento admin panel. ❏ If the file is processed correctly, but the number of products processed (SAP_ATP_FILE.NB_PRODUCTS_PROCESSED) is less than the number of product uploaded (SAP_ATP_FILE.NB_PRODUCTS) the following email will be sent to the ‘Email Alert’ configured in Magento admin panel ❏ If the file is processed correctly and all products are updated, the following email will be sent to the ‘Email Alert’ configured in Magento admin panel
  • 15. Confidential SAP TO MAGENTO ❏ Process of Several Files: ❏ In case of manual amendment of the ATP file, it can be uploaded to the Magento folder (following its naming convention), and the file will be dynamically process as soon as the script will be executed by the cron job. ❏ Therefore, several files may be processed in a queue: The files will be processed one by one, based on their name (oldest file first: atp_YYYYMMDD_HHMMSS.txt).