Digital Invoice Mexico

Hello everybody!
We implemented the digital invoice Mexico.
But we find a problem with a process of IVA RETENIDO.
In our price, the IVA RETENIDO is being calculated using a Z condition, to account for the same amount of tax in a different account, But this value making the total value that comes out in the XML file is incorrect.
I have doubts about the pricing procedure tha We are using here.
Is there a price stand of SAP to show me how a process is calculated IVA RETENIDO?
What is the tax code is valid for this process? We are using the B4.
Any tips will be helpful.
I thank everyone's attention
Mary Nuvoloni
SD Consultant

Hi,
Withholding tax in sales for Mexico can be customized in several ways so SAP released a BADI in order to correctly determine the source of this amout: IDMX_DI_SDDATA_DET
With this BADI you can change the data determination for the OIM (Original Input Message) and also the field in the IDOC that will be maped in the XML.
Usually withholding conditions would use "W" as condition type in customizing and this can help you to access KOMV table for the rigth amount.
Regards,
RP

Similar Messages

  • Digital Invoice - Mexico new compliance (approval reqd?)

    We are implementing Digital mexico invoice and I am looking at different notes for implementation...
    I came across this post in SCN,
    http://weblogs.sdn.sap.com/cs/mobile/view/wlg/21066?x-topic=85
    u2022 Take effect January 1, 2011
    u2022 Eliminate folio numbers which are replaced by digitally signing and archiving an invoice with a valid timbre number
    u2022 Require regulatory compliance checks with government certified organizations for both senders and receivers of invoices
    u2022 Invoices in excess of 2,000 pesos must be approved digitally
    Companies will be required to integrate with the SAT for invoice approvals in real time. 
    Outgoing invoices must be prepared in a specific XML format and authorized in advance as part of the logistics process before shipments can be delivered.
    When I look at the scope document attached to  in SAP Note 1280467 - FAQ Digital Invoice Mexico, it has no reference to this requirements (it still refers to a monthly report to be sent to govt and has no reference regarding govt. approval)..also the PI note has reference to synchronous interface?
    Do we need to manually implement the additional / new requirements?

    We had raised a OSS message and it looks like SAP does not support the latest requirements (CFDI).  We are in the process of evaluating our options.
    I will keep this thread open for a while to see the approach that is expected to be taken by others.

  • Mexico Digital Invoice Implementation without XI.

    Hi All,
    We are in the process of generating Digital invoice for Mexico.
    Is it possible to generate the Digital invoice without the XI system? If possible then what are the hurdles and challenges in achieving this. I did go through the list of Notes mentioned by SAP to implement Digital Signatures for Mexico. But they dont seem to mention about implementing with out XI system.
    Also is there any standard process to generate the XML required for Mexico. Appreciate any clarification for the above queries..
    Thanks in advance.
    Regards,
    Navin.

    Hi Naveen,
    Is important to consider three points at the moment of implementin Digital Invoice Mexico:
    Enablement of ODN (official document numbering).
    Enable digital signature in SAP.
    Creation of XML.
    You can perform the first two options withount PI/XI but the only problem will be the generation of XML, that for fiscal purposes is the digital invoice. If you are not using PI/XI you can do that by ABAP, Webmethods or any tool that generates XML.
    If you decide to generate the XML with ABAP, you dont need to use IDOC but is still needed to create an output message that generates the XML instead a smartform or other. This can be sent automatically to customers or to any kind of repository to keep the files for fiscal term.
    The structure of the XML must follows all Mexican requirements acording to Anexo 20 that you can find only in spanish.
    I suggest you to read the attachments on the following note, where you can find the structure and requirements and order of each XML field:
    1318342 - Digital Invoice Mexico IDoc basic type INVOIC02 Extension
    Regarding the standard process to generate XML in SAP, the only information provided by SAP is for PI/XI, so your ABAP team needs to take a look for anexo 20 structure:
    ftp://ftp2.sat.gob.mx/asistencia_servicio_ftp/publicaciones/cfd/Anexo20RMF2010.pdf
    I hope this may help you.
    Regards,
    RP

  • Digital Invoice for Mexico

    Hi All,
    We are in the process of implementing Digital Invoice for Mexico. I have few queries regarding that. I did search SDN regarding this topic but couldn't get a clear picture SSF process . Hence i am posting this thread.
    Below are my queries.
    1. Can the Digital Signatures be achieved through SSF using standard SAPSECULIB alone and not using any third party toolkit?
    2. Is there any pre-requisite for imlpementing SSF?
    3. How can the documents created with digital signature using SSF, verified by a third party system?
    Also it would helpful if you can provide me the steps to implement SSF.
    Thanks in advance.
    Regards,
    Navin.

    Hi Navin,
    I´m SD consultant but maybe this may help you:
    1.- If you mean the transformation of the certificate provided by Mexican goverment, you can use the open source software (OpenSSL) suggested by SAP. The digital signature is the sealing of the Original Input Message created by the solution relased by SAP applying the hash algorithm.
    2.- According to note 1300880,where the process to import the certificates is explaned,  you previously need to implement note 1303712.
    3.- The verification process of a thrird party provider can be performed by simply sending the XML generated by SAP to that provider, but this is ussually not for free so you need to hire them. There´s also one link provided by the goverment to manually validate each invoice:
    https://www.consulta.sat.gob.mx/SICOFI_WEB/ModuloECFD_Plus/ValidadorComprobantes/Validador.html
    For detailed steps for implementing certificates I strongly suggest you to review note 1300880.
    I hope this may help you.
    Regards
    RP

  • Mexico Digital Invoice printout

    Hi Experts,
    I am working on Mexico localisation.We have requirement for Digital invoice printing and also XML file generation.I know SAP has given a functionality for XML file generation and it can be done but for Digital invoice prinout there is no standard form available.But i want to print the  govt certificate and also there is some Legal text in XML file formate it cannot be done by coding which is similar we are getting in XML file.How can we achieve this for Printin digital invoices for Mexico.
    Thanks for your support!
    NR

    Hi,
    Could you please be more specific on your requirement? Do you want to "include" (print) the gov certificate number in the XML file and also some legal texts? or, do you want to print in a smartform the certificate number and those legal texts?
    For first option, the certificate is already included on INVOIC02 idoc, so you only need to map it in PI. For text, usually there´s no legal texts required on XML, if you needed, you can fill it directly on the IDOC and map it directly.
    For the second option, you can use the creation of texts in t-code SO10, regarding certificate number, this data is stored in one text element of the invoice VBBK-ZSNC if the customizing is according to documentation.
    Best regards,
    RP

  • Mexico Digital invoice - SSF without an External security product

    Hi All,
    We are in the process of implementing Digital Invoice for Mexico. I have few queries regarding this.
    1. Can the digital signature be achieved with out any external security product ?
    2. If it is possible, then will it comply with the legal requirements for Mexico.
    I came across a SAP document wherein it was mentioned that "If you are using the user signature as the signature method, you require an external security product that is connected to your SAP system through SSF." Does  it mean that SAP standard SAPSECULIB supports only system signature  and not user signature ?
    Any pointers regarding the digital Signature implementation steps will be appreciated.

    Hi Sri,
    Would you pls check the installation of the security toolkit on your application server?
    Which security product do you use?
    The standard security product is SAPSECULIB (library sapsecu.dll).
    Please check the SSF initialization messages which are contained in each dev_w## developer trace (transaction ST11). When successful, the initializaion messages look like this:
    N  =================================================
    N  === SSF INITIALIZATION:
    N  ===...SSF Security Toolkit name SAPSECULIB .
    N  ===...SSF trace level is 0 .
    N  ===...SSF library is /usr/sap/<SID>/SYS/exe/run/sapsecu.dll .
    N  ===...SSF hash algorithm is SHA1 .
    N  ===...SSF symmetric encryption algorithm is DES-CBC .
    N  ===...sucessfully completed.
    N  =================================================
    General information for SAPSECULIB can be found in SAP note 354819.
    Best regards,
    Christoph
    P.S.: Please reward points for useful information.

  • Modify Java Mapping on Mexico Digital Invoice

    I have installed all oss notes related to the Mexico Digital Invoice on our ERP system and XI system.  Since we made additional modifications to the Invoice02 extension, I need to modify the Java mapping on XI.  The note (1296042) states if you make changes to the idoc, you will need to make changes to the java mapping as well, and recompile it to install the class on XI.
    I have a java editor, however, I cannot find the java project anywhere.  Does anyone know where I would access this from?  The pdf on the note related to modifying the java mapping only says to open the project; It doesn't have the project in the note, from what I can see.  And I don't see it within XI. 
    Anyone know?  Or has anyone done this?

    >
    Henrique Pinto wrote:
    > Just a follow-up.
    > Note https://service.sap.com/sap/support/notes/1296042 has been updated with the Java mapping source codes.
    >
    > BR,
    > Henrique.
    Hi Henrique,
    We are also implementing the mexico invoice and I am trying to change the java mapping and I can't figure out where the '.JAVA' file exist? We could not find it in the imported archives (on the repository)... I have checked most of the attached files on the notes (can you let me know the name of the file with source code?)

  • Electronic invoice Mexico

    Hi
    when I create an electronic invoice on the option "Original Incoming Message" chain appears XML but in the chain where appears IVA should be stated that I use I get "IEPS", and that was not the tax that was used for the invoice.

    Hi, i am having problems too with electronic invoice through DI API, always appears the same error that is: internal error -10 ocurred, i insert the eseries, edocexportformat,EDocGenerationType = EDocGenerationTypeEnum.edocGenerate, and i can create the document by interface, but i still receiving the same message from DI API, do you know where i can find some example code, or any documentation since i can't find anything in the SDK Help center that was installed by SBO Setup wizard.
    I apreciate a lot any kind of information about this.
    Best Regards..

  • Convert PDF to Base64

    Hello everyone,
    We have implemented in our SAP the Digital Invoice Mexico. We send a XML file based on the billing document according of all SAP Notes. This process was perfect.
    Now we have a customer that need to receive a PDF file encoding in base64. This value need to be send in XML file, so I need generate this code and insert this value in XML file.
    We wold like to know if there are some function in SAP that could convert this file PDF in base64.
    Thanks in advanced
    Mary Nuvoloni

    Check this link PDF to BASE64 conversion
    I suggest you to post in ABAP forum.
    Regards,

  • Mexico E-Invoicing

    Hi
    Can anyone  please explain me how can we achieve e-invoicing for Mexico according to SAT guidelines. I went through couple of forms here, but not clear enough with process.
    thanks,
    Vaishnavi

    Hi Vaishnavi.
    Please see below:                                                                               
    1. ERP notes:                                                               
    Basis:                                                                      
    - import certificates for the encryption (note 1300880).                    
    - "core" note of the digital invoice (note 1303712)                         
    - ODN: Official Document Numbering (note 1301160)                                                                               
    ABAP:                                                                       
    - Consulting notes to extend the standard Idoc to be able to have all       
    the required data for the                                                   
    digital invoices (notes: 1109487, 1318342, 1321680, 1313457)                
    - If required, activate the different Badis available to complete the       
    data. The list of the Badis is in the                                       
    documentation of the "core" note 1303712.                                   
    - Modify the SAPScript (or the tool used) to add into the print invoice     
    all the Digital Invoice data                                                
    required by the government (SAT).                                                                               
    SD / FI:                                                                    
    - Configurations defined in the documentation of the "core" note 1303712    
    and in note 1301160 (ODN).                                                                               
    2. XI/PI note:                                                              
    PI / ABAP                                                                   
    - Note 1296042 (some parts of this note have to be defined in the ERP       
    too). This note allows the                                                  
    generation of the XML based on the Idoc data imported into PI  
    Due to technical restrictions concerning the shipment of IMG structures
    in SAR files, we are not able to                                       
    provide the IMG structure as an attachment to an SAP Note.                                                                               
    In this case I kindly ask you to review this documentation and also    
    check the SAR file 603_E38K096525.zip                                                                               
    I hope it helps you.                                                        
    Regards
    Ruy Castro

  • Mexico electronic billing

    Dear all,
    I like to get more information about this. Could one of you tell me the law for it? Since when it is needed? For which companies? Our Mexican subsidary has approx. 1500 SD and less than 500 FI inovices a year. Do we really have to implement this?
    Thanks in advance
    Andrea

    Maybe is to late for you, but please consider that fiscal law has recently change on september acording digital invoice in Mexico.
    Unfortunately, the up to date information is only available in spanish but your Mexican subsidiary may help you to identify the most important points to be considered or you can use google translator:
    www.sat.gob.mx
    This is the Mexican Tax Authority site, so this is the real updated data available.
    Regarding if you really need to implement the solution, the main point is the fiscal year amount of billing documents. If your sales are more than 4,000,000 pesos (about 330,000 usd) for a year, you most use digital invoicing by your own means (like SAP) or by hiring a approved provider for digital invoices (the list is also included in the previous link).
    Regards,
    RP

  • Office 365 Invoice payment

    Dear All
    I have registered to office 365 and bought it using invoice method. In couple of days I received digital invoice for payment.  Soon I realized that this is wrong subscription for me and I need to change it.
    Wouldn't Microsoft mind if I subscribe to a new office 365 and leave my current subscription unpaid?
    Thank you

    Hi- you can raise a support ticket on your portal to rectify this. What version of Office 365 are you on ? Home/Small Business, Midmarket/ Enterprise ?
    Totally  understand you would like to switch the subscription you have purchased. Given the situation, it is recommended that you contact our Sales and Billing support to get a better response, thanks for your understanding.
    You can contact support for a billing or subscription issue at here:
    onlinehelp.microsoft.com/.../ff652548.aspx

  • Brazil Electronic invoice

    Hi,
    I have a query regarding implementing Digital invoice for Brazil. IS it possible to implement it without the PI system.
    The SAP NFE requires PI system to achieve the functionality. Is there any other alternative.
    Regards,
    Navin.

    Hi Navin,
    Yes, you should work with PI. This tool will establish the communication between (GRC or similar) and SEFAZ - government fiscal area.
    Regards
    Ruy Castro

  • Alternative Accounting Document Type during Invoice Posting

    Hi,
    I have two queries which could resolve our clients specific requirement. It is required that for a specific customer we need to have 8 digits invoice number. We have attended this through SD user exit. However the Accounting document number range is external and hence same billing number gets generated for Accounting Document. This is conflicting with previous num range which is 10 digit. We have two alternatives to solve this as given below. Pls advise.
    1) Please let us know if we can determine different Accounting Document Type when posting Invoice to  Accounts. This has to be different from what is maintained in VOFA.
    2) Is there any user exit or BADI which can determine separate number range for Accounting Document Type determined during Invoice Posting to Accounts. Probably this query is more relevant in FI Forum , but please suggest if anybody has ideas on this.
    Regards
    Sasikanth

    Try to see if the user exit USEREXIT_ACCOUNT_PREP_KOMKCV  in the include RV60AFZZ can be of some help to you..

  • Problem with variable substitution.

    Hello,
    I asked this before but now I want to change the question focus.
    I have scenario from IDOC to XML file.
    The scenario is digital invoice for our company in Mexico and I end this scenario with java mapping that I import from SAP marketplace.
    Now I have request to add to the XML file name the content of the field "<ODN_NUMBER>" from the XML data.
    I try to use with variables substitution.
    My payload is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ZINVOIC02>
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="1">
    <TABNAM>EDI_DC40</TABNAM>
    <MANDT>400</MANDT>
    <DOCNUM>0000000006599015</DOCNUM>
    <DOCREL>700</DOCREL>
    <STATUS>30</STATUS>
    <DIRECT>1</DIRECT>
    <OUTMOD>2</OUTMOD>
    <IDOCTYP>INVOIC02</IDOCTYP>
    <CIMTYP>ZINVOIC02</CIMTYP>
    <MESTYP>INVOIC</MESTYP>
    <STDMES>ZEDI</STDMES>
    <SNDPOR>SAPDEV</SNDPOR>
    <SNDPRT>LS</SNDPRT>
    <SNDPRN>DEV400ECC</SNDPRN>
    <RCVPOR>SAPDEV</RCVPOR>
    <RCVPRT>LS</RCVPRT>
    <RCVPFC>LS</RCVPFC>
    <RCVPRN>MX_INV</RCVPRN>
    <CREDAT>20100118</CREDAT>
    <CRETIM>075931</CRETIM>
    <SERIAL>20100118075931</SERIAL>
    </EDI_DC40>
    - <E1EDK01 SEGMENT="1">
    <CURCY>USD</CURCY>
    <HWAER>MXN</HWAER>
    <WKURS>10.55530</WKURS>
    <ZTERM>0090</ZTERM>
    <KUNDEUINR>ACH971209KRA</KUNDEUINR>
    <BSART>INVO</BSART>
    <BELNR>0100017295</BELNR>
    <BRGEW>0.045</BRGEW>
    <GEWEI>KGM</GEWEI>
    <FKART_RL>LR</FKART_RL>
    <RECIPNT_NO>0000012977</RECIPNT_NO>
    <FKTYP>L</FKTYP>
    - <Z1EDK01 SEGMENT="1">
    <XML_VERSION>2.0</XML_VERSION>
    <ODN_PREFIX>A</ODN_PREFIX>
    <ODN_NUMBER>1883</ODN_NUMBER>
    <DATE_TIME>2009-11-01T17:05:10</DATE_TIME>
    <DOC_SUB_TOTAL>4.22</DOC_SUB_TOTAL>
    <DOC_DISCOUNT>3.00</DOC_DISCOUNT>
    <DOC_TOTAL>1.40</DOC_TOTAL>
    </Z1EDK01>
    And the xml that I create is:
      <?xml version="1.0" encoding="utf-8" ?>
    - <Comprobante xmlns="http://www.sat.gob.mx/cfd/2" version="2.0" serie="A" folio="1883" fecha="2009-11-01T17:05:10" sello="NxZCWU8hMJMiEc2fSZafpS81Z9rUScbBotvJ8lcW76GGpmcD2lFyAV7DlNQKecYMnQJnwMVoHfGjzhpFJrjLuRcyqU3nOnH1mE1JMxY/MjLkal0Ybo2aRKCorQxx+F/Vy5ucvyeDDFAt2gx0PeHJhFS3tJ6ssc6nryz3iUr8c=" noAprobacion="49806" anoAprobacion="2009" formaDePago="Pago en una sola exhibiciףn" noCertificado="00001000000100891274" condicionesDePago="90 DAYS FROM BILL OF LADING" subTotal="4.22" descuento="3.00" motivoDescuento="Customer DiscountCustomer Discount" total="1.40" tipoDeComprobante="ingreso">
    - <Emisor rfc="NMS940324RY6" nombre="Netafim Mexico S.A. de C.">
      <DomicilioFiscal calle="Leibnitz" noExterior="20" noInterior="901" colonia="Anzures" localidad="Mexico city" municipio="Miguel Hidalgo" estado="Distrito Federal" pais="Mexico" codigoPostal="11590" />
      </Emisor>
    - <Receptor rfc="ACH971209KRA" nombre="AGRICOLA 5 HERMANOS SA DE CV">
      <Domicilio calle="JUAN DE LA BARRERA NO 1249 NORTE" localidad="COL. CHAPULTEPEC" municipio="CULIACAN" estado="Sinaloa" pais="Mexico" codigoPostal="80040" />
      </Receptor>
    -     <Conceptos>
    I try to use with this variable:
    payload:ZINVOIC02,1,IDOC,1,E1EDK01,1,Z1EDK01,1,ODN_NUMBER,1
    I received in RWB the error:
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var_filename
    Thank you in advance for your help
    Elad

    But my target is looks very strange:
      <?xml version="1.0" encoding="utf-8" ?>
    - <Comprobante xmlns="http://www.sat.gob.mx/cfd/2" version="2.0" serie="A" folio="1883" fecha="2009-11-01T17:05:10" sello="NxZCWU8hMJMiEc2fSZafpS81Z9rUScbBotvJ8lcW76GGpmcD2lFyAV7DlNQKecYMnQJnwMVoHfGjzhpFJrjLuRcyqU3nOnH1mE1JMxY/MjLkal0Ybo2aRKCorQxx+F/Vy5ucvyeDDFAt2gx0PeHJhFS3tJ6ssc6nryz3iUr8c=" noAprobacion="49806" anoAprobacion="2009" formaDePago="Pago en una sola exhibiciףn" noCertificado="00001000000100891274" condicionesDePago="90 DAYS FROM BILL OF LADING" subTotal="4.22" descuento="3.00" motivoDescuento="Customer DiscountCustomer Discount" total="1.40" tipoDeComprobante="ingreso">
    - <Emisor rfc="NMS940324RY6" nombre="Netafim Mexico S.A. de C.">
      <DomicilioFiscal calle="Leibnitz" noExterior="20" noInterior="901" colonia="Anzures" localidad="Mexico city" municipio="Miguel Hidalgo" estado="Distrito Federal" pais="Mexico" codigoPostal="11590" />
      </Emisor>
    - <Receptor rfc="ACH971209KRA" nombre="AGRICOLA 5 HERMANOS SA DE CV">
      <Domicilio calle="JUAN DE LA BARRERA NO 1249 NORTE" localidad="COL. CHAPULTEPEC" municipio="CULIACAN" estado="Sinaloa" pais="Mexico" codigoPostal="80040" />
      </Receptor>
    I need to add folio field
    Elad

Maybe you are looking for

  • Gui status (AT USER-COMMAND) trigger at first

    Hello all, I wrote a basic list  shown below. In it , AT USER-COMMAND and AT LINE-SELECTION events are used all. when i double click on line in the list, I think the at line-selection should be trigger at first. but  in fact ,the AT USER-COMMAND trig

  • How to use alerts in Form Portlet

    Hi I m new to portal.. Plz suggest me how to use alerts in Form Portlet... If possible give me some sample code...

  • Importing from PhotoShop Elements to iPhoto

    I moved a photo from iPhoto 8 to Adobe PhotoShop elements 6 to make some editing changes. I saved this edited copy as a JPEG item. Now iPhoto will not import this edited copy. The error dialog box states:Unreadable Files: 1. It further states: "The f

  • Why the "Synchronize with Item" property don't save?

    I created that table :- create table syn (col1 number , col2 number); and in forms 6i ..... I determinate col1 as the value for "Synchronize with Item" . http://img169.imageshack.us/img169/6258/synar6.png and when I test it in runtime , it work corre

  • Publishing from a different computer/online?

    Is it possible to publish/update your blog from a different computer? For example, if I'm on the windows side of my MacBook, or just on another computer all together that DOESN'T have iWeb, is it possible for me to post an update?