Você está na página 1de 27

Digital Invoice SAP

PCL Proposed Client General information ID Proposed Client


Follow-up Approval

Pages. 1/27 Version 06

Description MON-000003-B MONSANTO


Date Signature Personal information (e-mail / Telephones)

ID

Description Event / Change

Date of change 99/99/9999

Requested For

Approved for

Modified For

Hours / Days

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client INDEX

Pages. 2/27 Version 06

Table of content
1 2 3 4 Introduction ............................................................................................................................................................ 3 Previous considerations / Premises ...................................................................................................................... 3 Definitions .............................................................................................................................................................. 3 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

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 3/27 Version 06

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 Mxico, 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 Mxico, 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 Comprobantes Fiscales digitales ( Digital tax receipt) Comprobante Fiscal Digital por Internet (Digital tax receipt for Internet) Proveedor Autorizado de Certificacion Authorized Provider certification Servicio de Administracin Tributaria (Tax office) ERP
Created by Modific. by cpavel.garcia Created on Modific. on 24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

CFD CFDI PAC SAT SAP

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 4/27 Version 06

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 MEXICO

ENTITY MOCSA SAMSA MONPRO SEMINIS SVS SEEDS & VEGETABLES

COMPANY CODE 4557 4560 4558 4570 4568

Consider the following tax regimen for each company:

MOCSA SEMINIS MONPRO SAMSA SVS

4557 4570 4558 4560 4568

Regimen General de Ley Regimen General de Ley Regimen General de Ley Regimen Simplificado Regimen Simplificado
Monsanto Produccin y Servicios, S.A. de C.V. Prol. Paseo de la Reforma No. 1015 Torre A, Piso 22 Col. Desarrollo Santa Fe 01376 Mxico, D. F. RFC: MPS980921-NQ4 Semillas y Agroproductos Monsanto, S.A. de C.V. Prol. Paseo de la Reforma No. 1015 Torre A, Piso 21 y 22 Col. Desarrollo Santa Fe 01376 Mxico, D. F. RFC: SAM-750414-HN4

For the place of issue, we have to take the city and state of the following fiscal addresses:
Monsanto Comercial, S.A. de C.V. Prol. Paseo de la Reforma No. 1015 Torre A, Piso 21 Col. Desarrollo Santa Fe 01376 Mxico, D. F. RFC: MCO-701113-C5A

Seminis Vegetable Seeds Mexicana S de S.R. de C.V. San Quintn, 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 Quintn, Baja California 01376 Mxico, D. F. RFC: SEM-930609-2E5 RFC: SVS960709MS2

Seminis, S.A. de C.V.

Invoice Layout

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 5/27 Version 06

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 6/27 Version 06

Credit Memo Layout

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 7/27 Version 06

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:

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 8/27 Version 06

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 fields 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.

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 9/27 Version 06

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.

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 10/27 Version 06

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.

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 11/27 Version 06

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

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 12/27 Version 06

4.3 IDOC definition


The proposal includes expanding the IDOC with the information needed to interface with the PAC. See de Annex IDOC Definition

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 13/27 Version 06

4.4 Business Sceneries


MOCSA-MEXICO
Entity 4557 Sales Org MX01 Distribution Channel 80 Direct Sales Exports, Distributor 80 Direct Sales Exports, Distributor 80 Direct Sales Exports, Distributor 80 Direct Sales Exports, Distributor 80 Direct Sales Exports, Distributor 80 Direct Sales Exports, Distributor 80 Direct Sales Exports, Distributor 80 Direct Sales Exports, Distributor 80 Direct Sales Exports, Distributor 80 Direct Sales Exports, Distributor 81 91 81 91 Division 15 Ag Chemicals Sales Order Type ZPM2 Billing Type ZFM2 Busines Area 9115 Tipo de documento Fiscal Invoice

4557

MX01

15 Ag Chemicals

ZMR2

ZCM2

9115

Returns

4557

MX01

81 91

15 Ag Chemicals

ZMC2

ZGM2

9115

Credit Memo

4557

MX01

81 91 81 91 81 91 81 91 81 91 81 91 81 91

15 Ag Chemicals

ZMD2

ZLM2

9115

Debit Memo

4557

MX01

15 Ag Chemicals

ZSE2

ZMI2

9115

Factura Miscelaneos

4457

MX01

15 Ag Chemicals

ZSC2

ZMC2

9115

N Crdito Miscelaneos

4557

MX01

15 Ag Chemicals

ZS1

9115

Anulacin de Factura

4557

MX01

15 Ag Chemicals

ZS2

9115

Anulacin de Factura

4557

MX01

15 Ag Chemicals

F5

9115

Proforma

4457

MX01

15 Ag Chemicals

ZAF2

ZMI9

9115

Facturas Activo Fijo

SAMSA-MEXICO
Entidad 4560 Sales Org MX20 Distribution Channel 80 Direct Sales 91 Exports 80 Direct Sales 91 Exports 80 Direct Sales 91 Exports 80 Direct Sales 91 Exports 80 Direct Sales 91 Exports 80 Direct Sales 91 Exports 80 Direct Sales 91 Exports 80 Direct Sales 91 Exports Division 17 Seeds Sales Order Type ZPM9 Billing Type ZFM9 Busines Area 9115 Tipo de documento Fiscal Factura

4560

MX20

17 Seeds

ZMR9

ZCM9

9115

Nota Crdito por Devolucion Estandar Nota de credito

4560

MX20

17 Seeds

ZMC9

ZGM9

9115

4560

MX20

17 Seeds

ZMD9

ZLM9

9115

Nota de dbito

4560

MX20

17 Seeds

ZSE9

ZMI9

9115

Factura Miscelanea

4560

MX20

17 Seeds

ZMM9

ZMM9

9115

N Crdito Miscelaneos

4557

MX01

17 Seeds

ZS1

9115

Anulacion de Factura

4557

MX01

17 Seeds

ZS2

9115

Anulacion de Factura

4.5 Responsabilities
PHASE Phase 1: Project Preparation Deliverable Development Work Plan Standards and Procedures of the Methodology Project Charter Roles and Responsibilities (Organization of the project team) Phase 2: Business Plans Training Plan Definition of processes (Design) Functional Definitions Case documentation, unit testing and Comprehensive Advice Process Definition Document Approval Deliverables Phase 3 - Realization Procedures Manual Training Manuals
MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN Created by Modific. by cpavel.garcia Created on Modific. on

Liable CUSTOMER / WISE CUSTOMER CUSTOMER CUSTOMER / WISE CUSTOMER CUSTOMER CUSTOMER CUSTOMER WISE CUSTOMER / WISE CUSTOMER CUSTOMER
24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client PHASE Deliverable Configuration Manual Specification Development Unit Tests and Adjustments Load Master Data Plan Defining Roles and Security Profiles Execution and acceptance of comprehensive tests Comprehensive Tests Settings Document Approval Deliverables Phase 4 - Final Preparation Plan "Cutover" and Support OT List Manual Configuration List Load Master Data Acceptance Document Approval Deliverables Phase 5: Go Live Go-Live Support Closing Letter Project

Pages. 14/27 Version 06

Liable WISE WISE WISE CUSTOMER CUSTOMER CUSTOMER WISE CUSTOMER / WISE CUSTOMER CUSTOMER CUSTOMER CUSTOMER CUSTOMER / WISE WISE CUSTOMER / WISE

5 Work Plan
MON-000003-B 1 Plan Trabajo Emisin Factura Eectrnica CFDI V6.mpp

6 Economic Proposal
The offer consists of the following alternatives depending on the needs of the client Activity Implementation CFDI SAP PI emission CFDI Print PDF x FAC / NCR CFD / CFDI TOTAL 62,000 Amount USD

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

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client

Pages. 15/27 Version 06

7 Annexes
7.1 Methodology and Services
MON-000003-B 2 Metodologa y Soporte.docx

7.2 IDOC Definition


Nr
1 2

Data Names
Label XXXInicio Label =============== = IdDoc NumeroInterno NroAprob

Table-Field
Constant Identifier Constant Separator

Logic
XXXInicio ================ IdDoc

3 4

VBRK-VBELN Constant YVBZ_GENERIC_NF YYMESSCODE

Internal SAP billing document number 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

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

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 = Remisin 56 = Nota de Cargo (Dbito) 61 = Nota de Crdito 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.

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client Nr Data Names Table-Field Logic

Pages. 16/27 Version 06

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_NFYYKEY 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

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 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. Date and Time of Document created Format aaaa-MM-dd hh:nn:ss Example 2006-12-28 16:08:22 (must be local time)

Estado del Documento

Constant YVBZ_GENERIC_NF YYMESSCODE

10

FechaEmis

Concatenate VBDKR-ERDAT + VBDKR-ERZET

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client Nr
11

Pages. 17/27 Version 06

Data Names
FormaPago

Table-Field
YVBZ_GENERIC_NF YYTEXT1

Logic
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 13

=============== ExEmisor RFCEmisor

Constant Separator T001Z-PAVAL

=============== ExEmisor

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

18

=============== = ExEmisorDomFisc al Calle

Label (separator)

================ ExEmisorDomFiscal

YVBZ_GENERIC_NFYYTEXT1

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

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client 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_NFYYMESSCODE

Pages. 18/27 Version 06

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_NFYYTEXT2

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_NFYYTEXT1

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_NFYYTEXT2

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

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client 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

Pages. 19/27 Version 06

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

27 28 29 30 31 32 33 34 35

=============== = ExEmisorLugarExp ed Calle NroExterior NroInterior Colonia Municipio Estado Pais CodigoPostal =============== = ExReceptor

Label (separator)

================ ExEmisorLugarExped

Blank Blank Blank Blank Blank Blank Blank Blank Label (separator)

Leave value in blank Leave value in blank Leave value in blank Leave value in blank Leave value in blank Leave value in blank Leave value in blank Leave value in blank ================ 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

=============== = ExReceptorDomFis cal

Label (separator) ================ ExReceptorDomFiscal

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client Nr Data Names Table-Field Logic
Take Receptor information from Sold to Party 39 Calle ADRCNAME3 + NAME4

Pages. 20/27 Version 06

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 45

Referencia Municipio

Blank ADRC-CITY

Leave value in blank

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 MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN Created by Modific. by cpavel.garcia Created on Modific. on 24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client Nr Data Names Table-Field Logic

Pages. 21/27 Version 06

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 =============== = ExReceptorLugarR ecep Calle Label (separator) Take following information from Ship-to partner) ADRC- NAME3 + NAME4 ================ ExReceptorLugarRecep

50

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

51 52 53

NroExterior NroInterior Colonia

Blank Blank ADRC-STREET

Leave value in blank Leave value in blank 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 56

Referencia Municipio

Blank ADRC-CITY

Leave value in Blank

Ship-to City ADRC-City Where ADRC-ADDRNUMBER = VBPA-ADRNR where VBPA-VBELN = VBRK-VBELN AND VBPA-PARVW = WE MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN Created by Modific. by cpavel.garcia Created on Modific. on 24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client Nr
57

Pages. 22/27 Version 06

Data Names
Estado

Table-Field
T005S-BEZEI

Logic
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 61 62

Blank Left 1 line in blank Blank =============== = Detalle Label (separator) Here start some item information, line 63 will contain item headers and line64 item details, please reference txt example to see distribution Item description label Dscitem Item Quantity label Item Unit of Measure Label Item Net Price Label Item total value Label MontoNetoItem Material Number Label Codigo Batch Number Label Lote Customs ID Label NmbAduana QtyItem UnmdItem Left 1 line in Blank ================ Detalle

63-a 63-b 63-c 63-d 63-e 63-f 63-g 63-h

Dscitem QtyItem UnmdItem PrcNetoItem MontoNetoItem Codigo Lote NmbAduana

PrcNetoItem

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client Nr
63-i 63-j

Pages. 23/27 Version 06

Data Names
NroDcto FechaDcto

Table-Field
Doc number Label Doc date Label

Logic
NroDcto 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 / VBRPFKIMG

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

64-e

Item Total Value

VBRP-NETWR

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

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client Nr
64-h 64-i 64-j 65 66

Pages. 24/27 Version 06

Data Names
Customs ID Label NroDcto Doc date Blank Blank

Table-Field
Blank Blank Blank

Logic
Leave value in Blank Leave value in Blank Leave value in Blank Left 1 line in blank Left 1 line in blank

67 68 69 70 71

Blank Blank XXXFINDETA Blank ============== == Totales Moneda FctConv Subtotal

Left 1 line in blank Left 1 line in blank XXXFINDETA identificator Label (separator) Left 1 line in blank ================ Totales

72 73 74

VBRK-WAERK VBRK-KURRF Compute Net value before taxes, discounts and surcharges VBRK-NETWR

Billing document currency Billing document Exchange Rate for accounting postings 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 Created by Modific. by cpavel.garcia Created on Modific. on 24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client 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 Label (separator) IVA KONV-KBERT Total invoice value in letters Call function SPELL_AMOUNT taking VlrPagar

Pages. 25/27 Version 06

84 85 86

============== == ExImpuestos TipoImp1 TasaImp1

================ ExImpuestos Label IVA 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 89 90 100

TipoImp2 TasaImp2 MontoImp2 FechaDeEmbarqu e

IEPS Blank Blank LIKP-LFDAT

Leave value in blank Leave value in blank 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 dont print anything Plant description (1st item) T001W-NAME1

101

PuertoDeEmbarq ue

T001W-NAME1

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client Nr Data Names Table-Field Logic
Where T001W-WERKS=VBRP-WERKS And VBRP-VBELN = VBRK-VBELN And VBRP-POSNR = item number Customer PO VBRK-ZUONR 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

Pages. 26/27 Version 06

102 103

OCCliente Region

VBRK-ZUONR TVGRT-BEZEI

105

PaisDeDestino

T005 LANDX

Review Languaje and that it is not in capital letters (use upcase function in ABAP) 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) Payment Date VBRK-VALDT Incoterms1 + Incoterms2 VBRKINCO1+ INCO2 Sold-to number VBRK-KUNAG Ship-to number VBPA-KUNNR where VBPA-VBELN = VBRK-VBELN AND VBPA-PARVW = WE

106

TerminosDePago

VBRK-VALDT

107 108 109

TerminosDeEntr eg NumeroDeClient e ShipToCode

VBRKINCO1+ INCO2 VBRK-KUNAG VBPA-KUNNR

110 111 112 113 114 115 116

TextoCabecera0 1 TextoCabecera0 2 TextoCabecera0 3 TextoCabecera0 4 TextoCabecera0 5 TextoCabecera0 6 Reserva01

Blank Blank Blank Blank Blank Blank Blank

Leave Value in Blank Leave Value in Blank Leave Value in Blank Leave Value in Blank Leave Value in Blank Leave Value in Blank Leave Value in Blank Created by Modific. by cpavel.garcia Created on Modific. on 24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Copyright WISE TECHNOLOGY SERVICES

Digital Invoice SAP


PCL Proposed Client Nr
117 118 119 120 121 122

Pages. 27/27 Version 06

Data Names
Reserva02 Reserva03 Reserva04 Reserva05 Reserva06 ============== == Instruccion de proceso CorreoPara

Table-Field
Blank Blank Blank Blank Blank Label (separator)

Logic
Leave Value in Blank Leave Value in Blank Leave Value in Blank Leave Value in Blank Leave Value in Blank

123

ADR6-SMTP_ADDR

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

124 125 126 127 128 129

CodigoDeImpres Blank Blank Blank Blank XXFINDO

Blank

Label indicating end of document

Leave value in blank Leave 1 line in blank Leave 1 line in blank Leave 1 line in blank Leave 1 line in blank XXFINDO

MON-000003-B 0 Propuesta Emisin Factura Electrnica Mxico CFDI V6 - EN

Created by Modific. by

cpavel.garcia

Created on Modific. on

24/05/2013 02:35 P.M. 24/05/2013 02:35 P.M.

Copyright WISE TECHNOLOGY SERVICES

Você também pode gostar