27
Digital Invoice SAP Pages. 1/27 PCL Proposed Client Version 06 MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN Created by cpavel.garcia Created on 24/05/2013 02:35 P.M. Modific. by Modific. on 24/05/2013 02:35 P.M. Copyright WISE TECHNOLOGY SERVICES General information Description ID Proposed MON-000003-B Client MONSANTO Follow-up Approval Date Signature Personal information (e-mail / Telephones) ID Description Event / Change Date of change Requested For Approved for Modified For Hours / Days 99/99/9999

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Embed Size (px)

Citation preview

Page 1: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 1/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

General information Description

ID Proposed MON-000003-B

Client MONSANTO

Follow-up Approval Date Signature Personal information (e-mail / Telephones)

ID Description Event / Change Date of change Requested For Approved for Modified For Hours / Days

99/99/9999

Page 2: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 2/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

INDEX

Table of content

1 Introduction ............................................................................................................................................................ 3 2 Previous considerations / Premises ...................................................................................................................... 3 3 Definitions .............................................................................................................................................................. 3 4 Scope .................................................................................................................................................................... 4

4.1 General ......................................................................................................................................................... 4 4.2 CFDI Electronic invoice ................................................................................................................................ 8 4.3 IDOC definition ........................................................................................................................................... 12 4.4 Business Sceneries .................................................................................................................................... 13 4.5 Responsabilities .......................................................................................................................................... 13

5 Work Plan ............................................................................................................................................................ 14 6 Economic Proposal.............................................................................................................................................. 14

6.1 Commercial conditions ............................................................................................................................... 14 7 Annexes ............................................................................................................................................................... 15

7.1 Methodology and Services ......................................................................................................................... 15 7.2 IDOC Definition ........................................................................................................................................... 15

Page 3: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 3/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

1 Introduction Electronic invoicing is the digital representation of a bill, called Digital Tax Receipt (CFD) or Digital Tax Receipt for Internet (CFD), which is considered into the standards defined by the tax office (SAT) in a Annex 20 of the current legal pronouncements, and which can be generated, transmitted and stored using electronics devices. Each invoice issued electronically should consider a digital seal to validate the authenticity with the authority, and should create an original string that works like an abstract of the document, in order to reduce the invoice data with a unique transactional folio. Digital invoice is legal in Mexico since 2004 and is supported by the federal tax office (SAT) who has submitted the legal foundations to issue digital receipts. In this sense, SAP has the electronic invoicing solution for México, based on a architecture EIPP1 (Electronic invoicing and e-payment) supported by SAP Net weaver and Enterprise SOA, wich allows flexibility to implement all the invoicing escenaries in México, included invoice issuing and invoice receipt from our vendors

2 Previous considerations / Premises · The printing of the invoice must be done directly from the invoice document without suffering any

conversion at the time of printing or generating XML

· The development/adjustments should consider the invoice and credit memo formats for SD.

· It is necessary consider remote access to the Monsanto servers, in order to complete with te developer requirements.

· We should consider the standard functionality for taxes and withholding in SAP.

· The reference field for the accountant document (BKPF-XBLNR) should be reserved to record the invoice Folio, and it cannot be used to other functionality.

· Consider the following SAP components: o SAP Netweaver Process Integration (PI) o SAP Smartforms o SAP office /SCOT to send emails.

· Permission of tax office for issuance of CFDI and the allocation of pages for this purpose.

· Digital certificate and digital signature valid per legal entity.

· All activities related to SAP PI are Remote

· The recruitment of PAC is the responsibility of the CLIENT which must evaluate that will accommodate their corporate technology standards.

· The Customer is responsible for Project Management and monitoring of activities and times.

3 Definitions

Digital invoice An electronic invoice (also called e-invoice or eBill) is the

result of a billing method that doesn't require a paper copy

as a backup in order to demonstrate its authenticity

CFD Comprobantes Fiscales digitales ( Digital tax receipt)

CFDI Comprobante Fiscal Digital por Internet (Digital tax receipt

for Internet)

PAC Proveedor Autorizado de Certificacion – Authorized Provider

certification

SAT Servicio de Administración Tributaria (Tax office)

SAP ERP

Page 4: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 4/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

URL Anexo 20 ftp://ftp2.sat.gob.mx/asistencia_servicio_ftp/publicaciones/legislacion12/Anexo20_30122011.doc

4 Scope

4.1 General · The legal entities that we are considering in the document, are the following:

COUNTRY ENTITY COMPANY CODE

MEXICO MOCSA 4557

SAMSA 4560

MONPRO 4558

SEMINIS 4570

SVS SEEDS &

VEGETABLES

4568

· Consider the following tax regimen for each company:

MOCSA 4557 Regimen General de Ley

SEMINIS 4570 Regimen General de Ley

MONPRO 4558 Regimen General de Ley

SAMSA 4560 Regimen Simplificado

SVS 4568 Regimen Simplificado

· For the place of issue, we have to take the city and state of the following fiscal addresses:

· Invoice Layout

Monsanto Comercial, S.A. de C.V.Monsanto Producción y Servicios,

S.A. de C.V.

Semillas y Agroproductos

Monsanto, S.A. de C.V.

Prol. Paseo de la Reforma No. 1015 Prol. Paseo de la Reforma No. 1015 Prol. Paseo de la Reforma No. 1015

Torre A, Piso 21 Torre A, Piso 22 Torre A, Piso 21 y 22

Col. Desarrollo Santa Fe Col. Desarrollo Santa Fe Col. Desarrollo Santa Fe

01376 México, D. F. 01376 México, D. F. 01376 México, D. F.

RFC: MCO-701113-C5A RFC: MPS980921-NQ4 RFC: SAM-750414-HN4

Seminis, S.A. de C.V. Seminis Vegetable Seeds Mexicana

S de S.R. de C.V. San Quintín, B.C.

Prol. Paseo de la Reforma No. 1015 Carr. Transpeninsular Km. 184

Torre A, Planta Baja Col. Estado 29

Col. Desarrollo Santa Fe 22930 San Quintín, Baja California

01376 México, D. F.

RFC: SEM-930609-2E5 RFC: SVS960709MS2

Page 5: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 5/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Page 6: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 6/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

· Credit Memo Layout

Page 7: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 7/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

· Likewise, it is important to consider the legal representation for the invoice and credit memo, in this case

we refer to the *.XML files. Below you will find a representation of the file:

Page 8: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 8/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

4.2 CFDI Electronic invoice We have to consider an authorized provider certification (PAC) to validate our billing document before send the final file to the customer. The solution has the following components:

· SAP's Configuration ERP to generate the additional information in field’s text for the digital invoice to level of SD and the generation of the IDOC for his integration with the servant PI.

· SAP Netweaver Process Integration (PI), for the generation of the XML in the SAT.

· SAP Interactivates Forms by Prepare / SAP Netweaver, for the impression of the digital invoice.

· Integration with SAP Document Access to store the XML and PDF of the digital document.

Page 9: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 9/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

SAP's integration ERP with the PAC

· All the information necessary for the process of Electronic Invoice is generated as texts of the Document

SD/FI.

· The supplier PAC stamps the XML and returns it to the Server PI

Accuse Receipt PAC

· When the PAC takes the file for his processing he returns a file XML with accuse of received to inform SAP

PI and the status of the document is updated.

Page 10: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 10/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Stamped XML for the PAC

Receipt in SAP ERP Stamped XML

· If the SAT brings a mistake the PAC he returns the mistake in a file XML

· IF the XML CFDI is correct it is returned to SAP PI which executes a RFC/Web Services to update the information of the stamped one in SAP ERP and the status of the document.

Page 11: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 11/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Integration with SAP Document Access

Monitor You Bill CFDI

· The system updates the status of the integration with the PAC:

o Hanging Sending o Envoy o Received o Mistake

· it prepares of a report to control the integration of all the documents SD/FI under the modality XML CFDI of the SAT

CFDI Formats

Page 12: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 12/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

4.3 IDOC definition · The proposal includes expanding the IDOC with the information needed to interface with the PAC.

See de Annex IDOC Definition

Page 13: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 13/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

4.4 Business Sceneries

4.5 Responsabilities PHASE Deliverable Liable

Phase 1: Project Preparation

Development Work Plan CUSTOMER / WISE

Standards and Procedures of the Methodology CUSTOMER

Project Charter CUSTOMER

Roles and Responsibilities (Organization of the project team) CUSTOMER / WISE

Phase 2: Business Plans Training Plan

CUSTOMER

Definition of processes (Design) CUSTOMER

Functional Definitions CUSTOMER

Case documentation, unit testing and Comprehensive CUSTOMER

Advice Process Definition WISE

Document Approval Deliverables CUSTOMER / WISE

Phase 3 - Realization Procedures Manual CUSTOMER

Training Manuals CUSTOMER

Entity Sales Org Distribution Channel Division Sales Order Type Billing Type Busines Area Tipo de documento Fiscal

4557 MX01 80 Direct Sales 81

Exports, 91

Distributor

15 Ag Chemicals ZPM2 ZFM2 9115 Invoice

4557 MX01 80 Direct Sales 81

Exports, 91

Distributor

15 Ag Chemicals ZMR2 ZCM2 9115 Returns

4557 MX01 80 Direct Sales 81

Exports, 91

Distributor

15 Ag Chemicals ZMC2 ZGM2 9115 Credit Memo

4557 MX01 80 Direct Sales 81

Exports, 91

Distributor

15 Ag Chemicals ZMD2 ZLM2 9115 Debit Memo

4557 MX01 80 Direct Sales 81

Exports, 91

Distributor

15 Ag Chemicals ZSE2 ZMI2 9115 Factura Miscelaneos

4457 MX01 80 Direct Sales 81

Exports, 91

Distributor

15 Ag Chemicals ZSC2 ZMC2 9115 N Crédito Miscelaneos

4557 MX01 80 Direct Sales 81

Exports, 91

Distributor

15 Ag Chemicals ZS1 9115 Anulación de Factura

4557 MX01 80 Direct Sales 81

Exports, 91

Distributor

15 Ag Chemicals ZS2 9115 Anulación de Factura

4557 MX01 80 Direct Sales 81

Exports, 91

Distributor

15 Ag Chemicals F5 9115 Proforma

4457 MX01 80 Direct Sales 81

Exports, 91

Distributor

15 Ag Chemicals ZAF2 ZMI9 9115 Facturas Activo Fijo

Entidad Sales Org Distribution Channel Division Sales Order Type Billing Type Busines Area Tipo de documento Fiscal

4560 MX20 80 Direct Sales

91 Exports

17 Seeds ZPM9 ZFM9 9115 Factura

4560 MX20 80 Direct Sales

91 Exports

17 Seeds ZMR9 ZCM9 9115 Nota Crédito por Devolucion

Estandar

4560 MX20 80 Direct Sales

91 Exports

17 Seeds ZMC9 ZGM9 9115 Nota de credito

4560 MX20 80 Direct Sales

91 Exports

17 Seeds ZMD9 ZLM9 9115 Nota de débito

4560 MX20 80 Direct Sales

91 Exports

17 Seeds ZSE9 ZMI9 9115 Factura Miscelanea

4560 MX20 80 Direct Sales

91 Exports

17 Seeds ZMM9 ZMM9 9115 N Crédito Miscelaneos

4557 MX01 80 Direct Sales

91 Exports

17 Seeds ZS1 9115 Anulacion de Factura

4557 MX01 80 Direct Sales

91 Exports

17 Seeds ZS2 9115 Anulacion de Factura

MOCSA-MEXICO

SAMSA-MEXICO

Page 14: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 14/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

PHASE Deliverable Liable

Configuration Manual WISE

Specification Development WISE

Unit Tests and Adjustments WISE

Load Master Data Plan CUSTOMER

Defining Roles and Security Profiles CUSTOMER

Execution and acceptance of comprehensive tests CUSTOMER

Comprehensive Tests Settings WISE

Document Approval Deliverables CUSTOMER / WISE

Phase 4 - Final Preparation

Plan "Cutover" and Support CUSTOMER

OT List CUSTOMER

Manual Configuration List CUSTOMER

Load Master Data Acceptance CUSTOMER

Document Approval Deliverables CUSTOMER / WISE

Phase 5: Go Live Go-Live Support WISE

Closing Letter Project CUSTOMER / WISE

5 Work Plan MON-000003-B 1 Plan Trabajo Emisión Factura Eectrónica CFDI V6.mpp

6 Economic Proposal The offer consists of the following alternatives depending on the needs of the client

Activity Amount USD

Implementation CFDI

SAP PI emission CFDI

Print PDF x FAC / NCR CFD / CFDI

TOTAL 62,000

6.1 Commercial conditions · The indicated investment does not include VAT.

· The investment does not include travel expenses out of the metropolitan zone of the city of Mexico, which of be giving would be according to the policies established by the Client.

· Valid Price for 30 days from the delivery date of the offer.

· The form of payment will be of the following way:

· 40 % to the beginning of the Project

· 30 % to 30 days

· 30 % to the delivery of documentation and final acceptance

Page 15: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 15/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

7 Annexes

7.1 Methodology and Services MON-000003-B 2 Metodología y Soporte.docx

7.2 IDOC Definition Nr Data Names Table-Field Logic 1 Label

XXXInicio Constant Identifier

“XXXInicio”

2 Label ================ IdDoc

Constant Separator “================ IdDoc”

3 NumeroInterno VBRK-VBELN Internal SAP billing document number

4 NroAprob Constant YVBZ_GENERIC_NF YYMESSCODE

Approval number given by SAT (Tax authority) to use billing number range. Constant stored in custom table YVBZ_GENERIC_NF get YVBZ_GENERIC_NF-YYMESSCODE Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZSATID” and GENERIC-YYKEY = VBRK-BUKRS

5 AnoAprob Constant YVBZ_GENERIC_NF YYMESSCODE

Year when SAT (Tax authority) give approval number Constant stored in custom table YVBZ_GENERIC_NF get GENERIC-YYMESSCODE Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZSATYEAR” and GENERIC-YYKEY = VBRK- BUKRS

6 Tipo Constant YVBZ_GENERIC_NF YYMESSCODE

Billing document Type Depending on document type will select one of the following numbers These values are stored in custom table YVBZ_GENERIC_NF 33 = Factura 52 = Carta Porte 53 = Remisión 56 = Nota de Cargo (Débito) 61 = Nota de Crédito 71 = Recibo de Honorarios 72 = Recibo de Arrendamiento 73 = Recibo de Donativos Constant stored in custom table YVBZ_GENERIC_NF get YVBZ_GENERIC_NF -YYMESSCODE Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZINVTYPE” and GENERIC-YYKEY = VBRK- BUKRS and GENERIC-YYTEX1 = VBRK-FKART YYTEXT1 will contain billing document types separated by dots For example for invoice .ZM12.ZM19.XXXX.

Page 16: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 16/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic

7 Serie Constant YVBZ_GENERIC_NF YYKEY

Letter which identify Serie according document type According Billing Document type will assign a Letter stored in YVBZ_GENERIC_NF- YYKEY Constant stored in custom table YVBZ_GENERIC_NF get GENERIC-YYKEY Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZSATSERIE” and GENERIC-YYTEX1 = VBRK-FKART YYTEXT1 will contain billing document types separated by dots For example for invoice .ZM12.ZM19.XXXX. If document type found in this field, then print YYKEY

8 Folio ¿? Legal requirement to have a consecutive unique Folio number per document type. Review with developer options to create a new custom table to store folio number

9 Estado del Documento

Constant YVBZ_GENERIC_NF YYMESSCODE

Billing document status According Billing Document status will assign “ORIGINAL” or “DELETE” in case document created is cancelling another billing document Constant stored in custom table YVBZ_GENERIC_NF get GENERIC-YYMESSCODE Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZINVSTATUS” and GENERIC-YYKEY = VBRK- BUKRS and GENERIC-YYTEX1 = VBRK-FKART YYTEXT1 will contain billing document types separated by dots For example for invoice .ZM12.ZM19.XXXX. Or for DELETE .ZS1.S1.S2.ZS2.

10 FechaEmis Concatenate VBDKR-ERDAT + VBDKR-ERZET

Date and Time of Document created Format aaaa-MM-dd hh:nn:ss Example 2006-12-28 16:08:22 (must be local time)

Page 17: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 17/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic

11 FormaPago YVBZ_GENERIC_NF YYTEXT1

Terms of payment legend. Always shoud appear text : “PAGO EN UNA SOLA EXHIBICION” This will be stored in custom table YVBZ_GENERIC_NF get GENERIC-YYTEXT1 Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZPAYTEXT” and GENERIC-YYKEY = VBRK- BUKRS

12 =============== ExEmisor

Constant Separator

“=============== ExEmisor”

13 RFCEmisor T001Z-PAVAL Own Tax ID (from Company Code) T001Z-PAVAL Where T001Z-BUKRS = VBRK-BUKRS T001Z-PARTY= “MX_RFC”

14 NmbEmisor ADRC-NAME1 Own Name (From company Code) ADRC-NAME1 where ADRC:addrnumber = T001:ADRNR and T001:BUKRS = VBRK:BUKRS

15 CdgSucursal VBRP-WERKS First item plant VBRP-WERKS Where VBRP-VBELN = VBRK-VBELN VPOSNR = 10 (first item in billing document)

16 Sucursal T005 – LANDX Company Code Country Description T005:LandX where T005:Land1 = ADRC-COUNTRY And ADRC- ADDRNUMBER = T001- ADRNR And T001-BUKRS = VBRK-BUKRS Review Languaje and that it is not in capital letters (use upcase function in ABAP)

17 ================ ExEmisorDomFiscal

Label (separator)

“================ ExEmisorDomFiscal”

18 Calle YVBZ_GENERIC_NF- YYTEXT1

Own Address (Street) Search in custom table YVBZ_GENERIC_NF for Monsanto Fiscal Address get

Page 18: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 18/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic YVBZ_GENERIC_NF-YYTEXT1 Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZRFCADDR1” and GENERIC-YYKEY = VBRK-BUKRS

19 NroExterior YVBZ_GENERIC_NF- YYMESSCODE

Own Address (number) Search in custom table YVBZ_GENERIC_NF for Monsanto Fiscal Address (number) get YVBZ_GENERIC_NF-YYMESSCODE Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZRFCADDR1” and GENERIC-YYKEY = VBRK-BUKRS

20 NroInterior YVBZ_GENERIC_NF- YYTEXT2

Own Address (internal number) Search in custom table YVBZ_GENERIC_NF for Monsanto Fiscal Address (number) get YVBZ_GENERIC_NF-YYTEXT2 Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZRFCADDR1” and GENERIC-YYKEY = VBRK-BUKRS

21 Colonia YVBZ_GENERIC_NF-YYTEXT1

Own Address (street, additional data) Search in custom table YVBZ_GENERIC_NF for Monsanto Fiscal Address (street, additional data) get YVBZ_GENERIC_NF-YYTEXT1 Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZRFCADDR2” and GENERIC-YYKEY = VBRK-BUKRS

22 Municipio YVBZ_GENERIC_NF-YYTEXT2

Own Address (Location) Search in custom table YVBZ_GENERIC_NF for Monsanto Fiscal Address (street, additional data) get YVBZ_GENERIC_NF-YYTEXT2 Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZRFCADDR2” and GENERIC-YYKEY = VBRK-BUKRS

23 Estado T005S – BEZEI State Description T005S:BEZEI where T005S:Land1 = T001:Land1 and T001:Bukrs = VBRK:Bukrs and

Page 19: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 19/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic T005S:Bland = ADRC:Regio and ADRC:addrnumber = T001:Adrnr and T001:Bukrs = VBRK:Bukrs

24 Pais T005 – LANDX Country Description T005:LandX where T005:Land1 = T001:Land1 and T001:Bukrs = VBRK:Bukrs Review Languaje and that it is not in capital letters (use upcase function in ABAP)

25 CodigoPostal ADRC – POST_CODE1 Own Postal Code (from Company Code) ADRC-STR-LOCATION Where ADRC:ADDRNUMBER=T001:ADRNR And T001:BUKRS = VBRK:BUKRS

26 ================ ExEmisorLugarExped

Label (separator) “================ ExEmisorLugarExped”

27 Calle Blank Leave value in blank

28 NroExterior Blank Leave value in blank

29 NroInterior Blank Leave value in blank

30 Colonia Blank Leave value in blank

31 Municipio Blank Leave value in blank

32 Estado Blank Leave value in blank

33 Pais Blank Leave value in blank

34 CodigoPostal Blank Leave value in blank

35 ================ ExReceptor

Label (separator) “================ ExReceptor” (Receptor = sold-to party)

36 RFCRecep KNA1-STCD1 Customer Tax Id KNA1-STCD1 Where KNA1-KUNNR = VBRK-KUNAG (if sold-to) Check if is using separator

37 NmbRecep ADRC- NAME1 + NAME2

Customer Name ADRC-NAME1+NAME2 Where ADRC:ADDRNUMBER=KNA1:ADRNR And KNA1-KUNNR = VBRK:KUNAG

38 ================ ExReceptorDomFiscal

Label (separator)

“================ ExReceptorDomFiscal”

Page 20: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 20/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic Take Receptor information from Sold to Party

39 Calle ADRC- NAME3 + NAME4

Customer Address ADRC-NAME3+NAME4 Where ADRC:ADDRNUMBER=KNA1:ADRNR And KNA1-KUNNR = VBRK:KUNAG

40 NroExterior Blank Customer Address External number Leave value in blank, should appear in Customer address (Calle-NAME3+NAME4)

41 NroInterior Blank Customer Address Internal number Leave value in blank

42 Colonia ADRC-STREET Customer Address ADRC-STREET Where ADRC:ADDRNUMBER=KNA1:ADRNR And KNA1-KUNNR = VBRK:KUNAG

43 Localidad T005S – BEZEI Same as Customer State GET REGION DESCRIPTION FROM T005S T005S:BEZEI where T005S:Land1 = ADRC:Country and T005S:Bland = ADRC:Region and ADRC:addrnumber = KNA1:ADRNR and KNA1-KUNNR = VBRK:KUNAG

44 Referencia

Blank Leave value in blank

45 Municipio ADRC-CITY Customer city ADRC-City Where ADRC:ADDRNUMBER=KNA1:ADRNR And KNA1-KUNNR = VBRK:KUNAG

46 Estado T005S-BEZEI Customer State GET REGION DESCRIPTION FROM T005S T005S:BEZEI where T005S:Land1 = ADRC:Country and T005S:Bland = ADRC:Region and ADRC:addrnumber = KNA1:ADRNR and KNA1-KUNNR = VBRK:KUNAG

47 Pais T005-LANDX Customer Country GET COUNTRY DESCRIPTION FROM T005 T005:LandX where T005:Land1 = ADRC:Country and ADRC:addrnumber = KNA1:ADRN and KNA1-KUNNR = VBRK:KUNAG

Page 21: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 21/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic Review Languaje and that it is not in capital letters (use upcase function in ABAP)

48 CodigoPostal ADRC-POST_CODE1 Customer Postal Code ADRC-City Where ADRC:ADDRNUMBER=KNA1:ADRNR And KNA1-KUNNR = VBRK:KUNAG

49 ================ ExReceptorLugarRecep

Label (separator) Take following information from Ship-to partner)

================ ExReceptorLugarRecep

50 Calle ADRC- NAME3 + NAME4

Ship-to Address ADRC-NAME3 + ADRC-NAME4 Where ADRC-ADDRNUMBER = VBPA-ADRNR where VBPA-VBELN = VBRK-VBELN AND VBPA-PARVW = WE

51 NroExterior Blank Leave value in blank

52 NroInterior Blank Leave value in blank

53 Colonia ADRC-STREET Ship-to Address Cont ADRC-STREET Where ADRC-ADDRNUMBER = VBPA-ADRNR where VBPA-VBELN = VBRK-VBELN AND VBPA-PARVW = WE

54 Localidad T005S – BEZEI Same as Ship-to State GET REGION DESCRIPTION FROM T005S T005S:BEZEI where T005S:Land1 = ADRC:Country and T005S:Bland = ADRC:Region and ADRC:addrnumber = VBPA:Adrnr and VBPA:Vbeln = VBRK:vbeln and VBPA:parvw = “WE”

55 Referencia Blank Leave value in Blank

56 Municipio ADRC-CITY Ship-to City ADRC-City Where ADRC-ADDRNUMBER = VBPA-ADRNR where VBPA-VBELN = VBRK-VBELN AND VBPA-PARVW = WE

Page 22: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 22/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic 57 Estado T005S-BEZEI

Ship-to State GET REGION DESCRIPTION FROM T005S T005S:BEZEI where T005S:Land1 = ADRC:Country and T005S:Bland = ADRC:Region and ADRC:addrnumber = VBPA:Adrnr and VBPA:Vbeln = VBRK:vbeln and VBPA:parvw = “WE”

58 Pais T005-LANDX Ship-to Country GET COUNTRY DESCRIPTION FROM T005 T005:LandX where T005:Land1 = ADRC:Country and ADRC:addrnumber = VBPA:adrnr and VBPA:parvw = “WE” VBPA:vbeln = VBRK:vbeln Review Languaje and that it is not in capital letters (use upcase function in ABAP)

59 CodigoPostal ADRC-POST_CODE1 Ship-to City ADRC-City Where ADRC-ADDRNUMBER = VBPA-ADRNR where VBPA-VBELN = VBRK-VBELN AND VBPA-PARVW = WE

60 Blank Left 1 line in blank

61 Blank Left 1 line in Blank

62 ================ Detalle

Label (separator)

“================ Detalle”

Here start some item information, line 63 will contain item headers and line64 item details, please reference txt example to see distribution

63-a Dscitem Item description label Dscitem

63-b QtyItem Item Quantity label QtyItem

63-c UnmdItem Item Unit of Measure Label

UnmdItem

63-d PrcNetoItem Item Net Price Label PrcNetoItem

63-e MontoNetoItem Item total value Label MontoNetoItem

63-f Codigo Material Number Label Codigo

63-g Lote Batch Number Label Lote

63-h NmbAduana Customs ID Label NmbAduana

Page 23: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 23/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic 63-i NroDcto Doc number Label

NroDcto

63-j FechaDcto Doc date Label FechaDcto

64-a Item Description VBRP-ARKTX Material Description VBRP-ARKTX Where VBRP-VBELN = VBRK-VBELN VBRP-POSNR = item number

64-b Item Quantity VBRP-FKIMG Item Quantity VBRP-FKIMG Where VBRP-VBELN = VBRK-VBELN VBRP-POSNR = item number

64-c Unmditem YVBZ_GENERIC_NF YYMESSCODE

Item Unit of Measure Search translated value in GENERIC table Get GENERIC-YYMESSCODE Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZUOMSAT” and GENERIC-YYKEY = VBRP-VRKME And VBRP-VBELN = VBRK-VBELN VBRP-POSNR= item number

64-d Item Net price Compute VBRP-NETWR / VBRP-FKIMG

Get item Net Price computing VBRP-NETWR / VBRP-FKIMG Where VBRP-VBELN = RBRK-VBELN VBRP-POSNR = item number

64-e Item Total Value VBRP-NETWR Total item Value VBRP-NETWR Where VBRP-VBELN = VBRK-VBELN VBRP-POSNR = item number

64-f Material Number VBRP-MATNR Material number VBRP-MATNR Where VBRP-VBELN = VBRK-VBELN VBRP-POSNR = item number

64-g Batch number VBRP-CHARG Batch number VBRP-CHARG Where VBRP-VBELN = VBRK-VBELN VBRP-POSNR = item number

Page 24: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 24/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic 64-h Customs ID Label Blank Leave value in Blank

64-i NroDcto Blank Leave value in Blank

64-j Doc date Blank Leave value in Blank

65 Blank Left 1 line in blank

66 Blank Left 1 line in blank

67 Blank Left 1 line in blank

68 Blank Left 1 line in blank

69 XXXFINDETA XXXFINDETA identificator

70 Blank Left 1 line in blank

71 ==============

== Totales

Label (separator) ================ Totales

72 Moneda VBRK-WAERK Billing document currency

73 FctConv VBRK-KURRF Billing document Exchange Rate for accounting postings

74 Subtotal Compute Net value before taxes, discounts and surcharges VBRK-NETWR

Material Price Consider billing document net value before taxes, discounts and surcharges Compute VBRK-NETWR + MntDcto (line 75) MntRcgo (line 77)

75 MntDcto Sumarize KONV-KWERT

Discount Amount Summarize all item discounts Consider condition types stored in custom table following logic Review condition types stored in YYTEXT1 YVBZ_GENERIC_NF table Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZDISCCONTYPE” and GENERIC-YYKEY = VBRK-VKORG YYTEXT1 will contain all condition types used for discounts for this sales org separated by dots Example: .ZR13.ZR14.ZR36.XXXX…..

76 PctDcto Compute Discount percentage

Discount percentage. Compute % between MntDct (line 75) And Subtotal (line 74)

77 MntRcgo Sumarize KONV-KWERT

Surcharges Amount Summarize all item surcharges Consider condition types stored in custom table following logic Review condition types stored in YYTEXT1 YVBZ_GENERIC_NF table Where GENERIC-YYCOUNTRY = “MX” and GENERIC-YYTABLE = “ZCHRGCONTYPE” and GENERIC-YYKEY = VBRK-VKORG YYTEXT1 will contain all condition types used for discounts for this sales org separated by dots

78 PctRcgo Compute Surcharge percentage

Surcharge percentage. Compute % between

Page 25: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 25/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic MntRcgo (line 75) And Subtotal (line 74)

79 MntBase VBRK-NETWR Header Net Price Base to calculate taxes

80 MntImp Sumarize all MWST item conditions Field MWST-KWERT

Tax amount Consider MWST condition type Sumarize all MWST item conditions Field MWST-KWERT where KONV-KBERT <> 0.00

81 MntRet Sumarize all MWST item conditions Field MWST-KWERT

Tax amount Consider MWST condition type Sumarize all MWST item conditions Field MWST-KWERT where KONV-KBERT <> 0.00

82 VlrPagar Compute total Invoice Value after Taxes

Total invoice value after taxes Total Net value + Tax MntBase (line 79) + MntImp (line80)

83 VlrPalabras Total invoice value after taxes in letters Function SPELL_AMOUNT

Total invoice value in letters Call function SPELL_AMOUNT taking VlrPagar

84 ==============

== ExImpuestos

Label (separator) ================ ExImpuestos

85 TipoImp1 “IVA” Label IVA

86 TasaImp1 KONV-KBERT VAT Rate Search item condition MWST in field KONV-KBERT, in any item contain any different from Zero, then get this value.

87 MontoImp1 Sumarize all MWST item conditions Field MWST-KWERT

Tax amount Consider MWST condition type Sumarize all MWST item conditions Field MWST-KWERT where KONV-KBERT <> 0.00

88 TipoImp2 “IEPS”

89 TasaImp2 Blank Leave value in blank

90 MontoImp2 Blank Leave value in blank

100 FechaDeEmbarqu

e

LIKP-LFDAT Delivery Date Check for first item if this billing document is related to a delivery, if so, then print header delivery date. LIKP-LFDAT Where LIKP-VBELN = VBRP-VGBEL (first item) If record exist. Other case don´t print anything

101 PuertoDeEmbarq

ue

T001W-NAME1

Plant description (1st item)

T001W-NAME1

Page 26: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 26/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic Where T001W-WERKS=VBRP-WERKS And VBRP-VBELN = VBRK-VBELN And VBRP-POSNR = item number

102 OCCliente VBRK-ZUONR Customer PO VBRK-ZUONR

103 Region TVGRT-BEZEI Customer Sales Group Description TVGRT-BEZEI Where TVKGR-VKGRP = KNVV-VKGRP Where KNVV-KUNNR = VBRK-KUNAG KNVV-VKORG = VBRK-VKORG KNVV- VTWEG = 00 KNVV-SPART = VBRK-SPART

104 MercPuestaEn T005-LANDX Ship-to Country GET COUNTRY DESCRIPTION FROM T005 T005:LandX where T005:Land1 = ADRC:Country and ADRC:addrnumber = VBPA:adrnr and VBPA:parvw = “WE” VBPA:vbeln = VBRK:vbeln Review Languaje and that it is not in capital letters (use upcase function in ABAP)

105 PaisDeDestino T005 – LANDX Destination Country GET COUNTRY DESCRIPTION FROM T005 T005:LandX where T005:Land1 = VBRK-land1 Review Languaje and that it is not in capital letters (use upcase function in ABAP)

106 TerminosDePago VBRK-VALDT Payment Date VBRK-VALDT

107 TerminosDeEntr

eg

VBRK- INCO1+ INCO2

Incoterms1 + Incoterms2 VBRK- INCO1+ INCO2

108 NumeroDeClient

e

VBRK-KUNAG Sold-to number VBRK-KUNAG

109 ShipToCode VBPA-KUNNR Ship-to number VBPA-KUNNR where VBPA-VBELN = VBRK-VBELN AND VBPA-PARVW = WE

110 TextoCabecera0

1

Blank Leave Value in Blank

111 TextoCabecera0

2

Blank Leave Value in Blank

112 TextoCabecera0

3

Blank Leave Value in Blank

113 TextoCabecera0

4

Blank Leave Value in Blank

114 TextoCabecera0

5

Blank Leave Value in Blank

115 TextoCabecera0

6

Blank Leave Value in Blank

116 Reserva01 Blank Leave Value in Blank

Page 27: MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN1

Digital Invoice SAP Pages. 27/27

PCL Proposed Client Version 06

MON-000003-B 0 Propuesta Emisión Factura Electrónica México CFDI V6 - EN

Created by cpavel.garcia Created on 24/05/2013 02:35 P.M.

Modific. by Modific. on 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Nr Data Names Table-Field Logic 117 Reserva02 Blank Leave Value in Blank

118 Reserva03 Blank Leave Value in Blank

119 Reserva04 Blank Leave Value in Blank

120 Reserva05 Blank Leave Value in Blank

121 Reserva06 Blank Leave Value in Blank

122 ==============

== Instruccion

de proceso

Label (separator)

123 CorreoPara ADR6-SMTP_ADDR Customer E-mail address ADR6-SMTP_ADDR Where ADR6-ADDRNUMBER = KNA1-ADRNR And KNA1-KUNNR = VBRK-KUNAG

124 CodigoDeImpres Blank Leave value in blank

125 Blank Leave 1 line in blank

126 Blank Leave 1 line in blank

127 Blank Leave 1 line in blank

128 Blank Leave 1 line in blank

129 XXFINDO Label indicating end of document

XXFINDO