Limitar tamanho do XML no ERP

Colocamos a NFE em produção dia 01/04/2010. Está tudo indo bem.
Tivemos um problema (que já havia ocorrido na homologação) que segundo o nosso consultor de PI é bem raro de acontecer e não tem muito o que fazer para resolver a não ser um GAMBIAIXON..rsrs
O problema em questão é que acontece (as vezes) do nosso ERP gerar uma única NF com mais de 500K (tamanho de LOTE máximo aceito pelo SEFAZ). O que causa isso com certeza não é a quantidade de itens pois já ocorreu em notas com 900 itens, 450, 300.. etc.
Quando isso ocorre a geração de lotes no GRC pára, e no monitor das NFe´s todas ficam com o status assinado. Isso acontece porque o GRC não consegue criar um lote para essa nota, já que o tamanho máximo de lote configurado é menor do que a nota e isso trava todas as outras gerações de lotes.
A gambiarra pra resolver é que gente pára o JOB no GRC (PROCESS REPORT u2013 job responsável por gerar os lotes no GRC que roda em looping) vai no monitor do GRC e aumenta o tamanho do lote para 2000K por exemplo e reinicia o job. Desta forma é gerado um lote de tamanho maior do que o aceito pela SEFAZ, que rejeita este lote. Em seguida voltamos o tamanho do lote para 500KB estornamos a nota e criamos outras duas...(simples né???? Rsrs).
Contei essa história toda para saber se algum de vocês sabe de alguma maneira de restringir no ERP o tamanho do XML de uma NF, mas pelo tamanho físico do arquivo XML e não pela quantidade de itens (hoje já temos um limite de 900 itens por nota fiscal)????
Queria implementar um controle no ERP que não permitisse gerar notas cujo XML tivesse mais de 400KB e que quando esse tamanho fosse atingido criaria uma outra nota automaticamente. Será que eu me fiz entender??rsrs
Se alguém da lista souber algo que possa nos ajudar.. agradeço.
Segundo nosso consultor, esse fato (o ERP gerar uma nota  maior que o tamanho máximo do lote) não deveria travar o GRC. Este deveria ser capaz de, pelo menos, rejeitar a nota e deixar que as demais continuassem o processo normal. Segundo ele, isso seria um erro no produto GRC que a SAP já estaria tratando.
Se eu encontrar uma solução, posto aqui para todos.
Obrigado pela atenção.
Fabio Rebelo

Bom dia Fabio,
Este "travamento" foi corrigido no GRC através da SAP Note 1447771 (SP14), com ela a nota será enviada para Sefaz sozinha e provocará uma rejeição de lote que a contém. Daí o usuário poderá pedir a inutilização na J1BNFE, tudo sem intervenção técnica.
Complementando sobre a informação no ERP...
Vejo isto como um desenvolvimento bem complexo pois existem regras que só existem na BAdI de transmissão (CL_NFE_PRINT), e o que você pretende é na criação... Ou seja, além de prever tamanhos que estão ocultos na própria existência das tags (deve-se tratar coisas como monta essa tag ou nao?) também o tamanho das BAdI's, além de fazer esta "quebra" de notas por processo (SD/MM...).
Acho que com a nota a necessidade cai em "prioridade", de qualquer forma se quiser acho seria legal fazer umas estimativas por amostragem... e tratar implementar nos processos em que podem ocorrer este "estouro".
Atenciosamente, Fernando Da Rós
Edited by: Fernando Ros on Apr 5, 2010 9:48 PM
PS: O consultor PI de vocês deu um boa forma de resolver o incidente de forma rápida, só acrescentaria na configuração Qtd.NFe = 1, para evitar que no lote se misture com NF-es Ok, depois voltar para 50 e 500.000
Edited by: Fernando Ros on Apr 5, 2010 9:53 PM

Similar Messages

  • Send XML from ERP TO PI and then to vendor without any additional xml tags

    Hi All,
    We have an xml document in ERP which we want to sign and send it to an external provider using the SOAP Adapter.
    We have signed the xml by using java mapping.
    Then the integration server is to take this String and resend it as is to the external provider using the SOAP adapter.
    This however doesn't work because the message sent to the external provider is already an xml document like the following:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:request_DT xmlns:ns0="um:ournamespace">
    <payment>
    here is a hexadesimal for singed xml.
    </payment>
    </ns0:request_DT>
    i tryed to use java class to remove extra tags from operation mapping but once i tested it i got the following error message
    "Unable to display tree view; Error when parsing an XML document..."
    Also i used XSL in the operatin mapping to replace unwanted tags. but i got same error.
    Nw , how can i remove the additional tags ?
    Thanks & BR,

    Hi,
    >>Moreover you maintain that I should use XSL/Java Mapping .I have XSL for removing extra tags and java mapping as well.
    Check these blog 
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken]
    for seeing how to use XSLT with the communication channel
    In the mean time let me try to find the blog for java mapping usage with communication channel
    Regards
    Suraj

  • File attachment in XML file of inbound interface

    Hi friends
    Working in ERP EHP6.0 and SRM7.0
    I attached DMS file in PR document at ERP and transferred to SRM using interface PurchaseRequestERPSourcingRequest_out.
    But PR generated XML in ERP does not have the attachment file eventhough they have attachment folder.
    How to debug this ? which Func module attach the file to interface generated XML file?
    Trying to use CPPR and transfering PR via BADI ME_REQ_Source_Cust.
    I tried using saving file in content server and transfer using PR but attachment is not picked up in XML file while checking in SXMB_MONI.
    Does the note: SAP Note 974332 - No attachments transfer within external requirements
    is referring my problem?
    I doubt whether the above is pointing for RFC transfer program...is it not?
    Pls confirm.

    Hi Prince,
    Check with BAPI_DOCUMENT_CHECKIN , it may help you.
    Regards,
    Ravindra

  • BPEL- To split XML message before sending

    I get Orders -XML from ERP System , and I am sending this XML data to external system(using web services).
    So, if one or more Orders fail to validate, then none of them get into Database.
    Using a loop by sending each Order at a time is the best way?
    Thanks
    Edited by: user13374451 on Sep 14, 2010 2:45 PM

    Oh yes we can achieve this. I did it in one of my processes. Probably this is what you can do.
    1. Take a count variable and based on your required count the number of time you need to send the XML content. In my case, I was receiving many protocol informations in a single XML payload and I had to call the web service for each of these protocols. So say if i had 5 protocols in my XML, I need to break it into 5 and post it to the Web service 5 times.
    2. Take a while loop and use increment counter.
    3. break the XML code for each of your entry using incrememtn count variable like this /ns5:NewDataset/LotCountryReleaseMessage[bpws:getVariableData("IncrementCount")] and copy it to another variable (which is of same structure).
    4. Increment count value.
    5. Post it to ur target. This way, the web service is called for each of your entry.
    Let me know if this was clear.
    Thanks,
    Gautham

  • Call Inbound Proxy error

    PI settings help
    I am trying to transfer PR from ERP6.0 EHP4 to SRM7.0 using CPPR scenario.
    I configured ERP/SRM and PI configuration in Integration directory.
    But i get Reciever determination error in XML at ERP/SRM AND PI
    RCVR_DETERMINATION">NO_RECEIVER_CASE_BE
    Error Text: No receiver could be determined
    In SRM, Inbound Message(reciever) is green but Call Inbound Proxy is giving below error.
    <Trace level="1" type="System_Error">Application-Error exception return from pipeline processing! <Trace level="1" type="T">Application Error at Receiver... => ROLLBACK WORK</Trace>
    <Trace level="1" type="T">System Error at Receiver... => ROLLBACK WORK</Trace>
    I tested configuration in Integration directory.
    Sender aggreeemnt is green
    Reciever determination is red and giving below error.
    Internal Error : You do not have sufficient authorization for this operation.
    I have done below setting in Integration directory.
    Business system setting.
    1.Selected Business System BC_MM_MXX_594
    2.Create communication channel(Gen_Rec_xi) as Receiver
      for above Business system BC_MM_MXX_594.
      -Use adapter type XI, http://sap.com/xi/XI/System SAP Basis7.xx and RFC MXX_Integration,
    1.Selected Business System BC_SRM_SXX_300
    2.Create communication channel(Gen_Rec_xi) as Receiver
      for above Business system BC_SRM_SXX_300.
      -Use adapter type XI, http://sap.com/xi/XI/System SAP Basis7.xx and RFC SXX_Integration.
    -->>one doubt here? Should i have to create Comm channel for sender type also from ERP and SRM? pls confirm.
    I created object in Integration directory as follows.
    Create Object by selecting Business System BC_MM_MXX_594.
    1)Selected Internal communication
    2)Reciever Determination : BC_MM_MXX_594 PurchaseRequestERPSourcingRequest_Out
    3)Specified Interface determination : BC_MM_MXX_594 PurchaseRequestERPSourcingRequest_Out BC_SRM_SXX_300.
    4)Specified Reciever agreement BC_MM_MXX_594 BC_SRM_SXX_300 PurchaseRequestERPSourcingRequest_in(communication channel selected is Gen_Rec_xi)
    5)Generated Objects and saved as CPPR_scenario.
    6)Activated all objects created in CPPR_Scenario.
    Pls suggest something wrong with Reciever determination?
    How to find where the problem is located? at ERP or PI or SRM?.
    Also onething i noted is Integrated configuration is empty in Integration directory.
    Any configuration should be done for IOC.? pls confirm.
    Regards
    Chandra

    Also i noticed below
    In ERP xml ->Inbound message(SENDER).
    Does this error indicate problem while sending from ERP to SRM or SRM to ERP.
    because i can see sender service and interface is empty and SAP reciever is having ERP service.
    however reciever does not fetched the corresponding(purchaseRequestxxxxxxx) interface names.
    - <SAP:Sender>
      <SAP:Service />
      <SAP:Interface namespace="" />
      </SAP:Sender>
    - <SAP:Receiver>
      <SAP:Party agency="" scheme="" />
      <SAP:Service>BC_MM_MXX_594</SAP:Service>
      <SAP:Interface namespace="http://sap.com/xi/APPL">QueryCodeList</SAP:Interface>
      </SAP:Receiver>
      <SAP:Interface namespace="http://sap.com/xi/APPL">QueryCodeList</SAP:Interface>
    SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_BE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    Regards
    Chandra

  • CPPR error  Wrong status: Send to external sourcing - pending

    Hi experts,
    we are on SRM 7.0 ehp 1 u2013 backend ECC 6.0 EHP 5.
    Iu2019ve activated the process to create SRM RFx with reference to Backend purchase requisitions without PI.
    In CPPR I select the backend purchase requisition and start collective processing.
    In the collective processing screen I u201CShift to external Sourcingu201D
    The status of the backend purchase requisition changes to Send to external sourcing: pending.
    The system automatically creates a SC in SRM and a RFx in status u201CSavedu201D.
    The status of the backend purchase requisition is still the same.
    Also when I publish the RFx the status of the backend purchase requisition doesnu2019t change.
    The following services have been customized for peer to peer connection:
    RFQRequestSUITEAllowedBiddersByIdentifyingElementsQueryResponse_In
    PurchaseOrderSRMPricingSimulateQueryResponse_In
    PurchasingContractSRMArchivingCheckQueryResponse_in
    QueryCodeList
    PurchaseOrderERPConfirmation_In
    PurchaseOrderERPContractReleaseNotification_In
    PurchaseRequestERPSourcingRequest_In
    PurchasingContractERPConfirmation_In
    PurchasingContractSRMReplicationConfirmation_In
    RFQRequestSUITERequest_In
    SupplierInvoiceSUITEContractReleaseNotification_In
    PurchaseOrderERPRequest_In_V1
    PurchaseRequestERPSourcingConfirmation_IN
    RFQRequestSUITEConfirmation_IN
    PurchaseOrderERPRequest_IN_V1
    PurchasingContractERPRequest_IN_V1
    In SXI_Monitor is just one XML: PurchaseRequestERPSourcingRequest_In.
    Shouldnu2019t there be an outgoing XML to update the status of the backend purchase requisition?
    What I need to do to get the purchase requisition updated?
    Thanks for all your inputs!
    Kind Regards
    Stefan

    Hello Stefan,
    I hope you have cross checked the CPPR configuration as per the note 1263876.
    For the logic of the Badi ME_REQ_SOURCING_CUST in ERP system. Please find some relevant details of the way i have configured it.
    method IF_EX_ME_REQ_SOURCE_CUST~ACTIVE.
    setting cv_aut_sourcing makes the external sourcing functionality active
    either manually or automatically.
    setting cv_ext_rfx_ind makes RFx creation in SRM available
    setting cv_ext_sc_ind makes SC creation in SRM available
      cv_aut_sourcing = cl_mmpur_constants=>yes.   " ext sourcing active at all
      cv_ext_rfx_ind  = cl_mmpur_constants=>yes.   " RFX creation in SRM, not in ERP
      cv_ext_sc_ind   = cl_mmpur_constants=>yes.   " SC creation in SRM possible
    endmethod.
    method IF_EX_ME_REQ_SOURCE_CUST~CHECK_EXTERNAL_SOURCE.
    example Implementation:
    Purchase requisitions are send automatically to external sourcing based on the criteria
    implemented here. Thus, if you want to send PRs automatically, code your selection
    criteria in this method.
      IF is_req_item-ekgrp = 'SRM'.
        cv_ext_sourcing = cl_mmpur_constants=>yes.
      ENDIF.
    endmethod.
    Also for the issue XML not getting triggered with the interface PurchaseRequestERPSourcingConfirmation_Out , first the XML PurchaseRequestERPSourcingRequest_IN to srm should be successfully processed. Once this done then srm sends the sourcing confirmation out xml to erp.
    Is the in xml to srm processed here successfully ?
    If yes kindly crosscheck the config as per the details above and also aksed your XI consultant to check the configurations for the Integration scenario used here.
    Thanks & Best Regards,
    Rahul

  • CPPR PI Configuration setting

    Hi
    I am working on CPPR scenario. I want to transfer PR from ERP to SRM.
    I know. Set up XI system between SRM and ECC system and maintain services PurchaseRequestERPSourcingRequest_Out and PurchaseRequestERPSourcingRequest_In to transfer the PR into SRM can solve the problem.
    Can you please tell me how configuration can be done for  PI .
    Just following Settings in SAP NetWeaver Process Integration (PI) section in
    SAP note 1263876 SAP SRM Configuration of Procure to pay scenario is enough?
    Pls suggest me if any other step by step guide available for PI setting?
    Regards
    Chandra

    Hi Masa
    I followed the document and executed the scenario.
    PR is created as XML in ERP. But attachment is missing in PR data.
    Can you pls tell me what should be activated to pick up the attachment in XML?
    Regards
    Chandra

  • Sapinst error backup/restore phase create controlfile

    Hello experts
    I am doing a homogeneous system copy using database specific tools backup/restore.Oracle 10.2.0.5, HP-UX, ECC 6.0
    Source = ZD1 and Target = ZD1 (Yes they are both same) Source was a fresh install with brand new Export data (SID = ZD1) and now we are replacing the database with a copy of our existing Dev system (also SID = ZD1)
    Restored the backup over target using OFFLINE backup. Have not run any "recover database ...." or "alter database open resetlogs" yet because sapinst is suppose to do this.
    My control script looks like this: filename = CONTROL.SQL
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE SET DATABASE "ZD1" RESETLOGS ARCHIVELOG
        MAXLOGFILES 255
        MAXLOGMEMBERS 3
        MAXDATAFILES 254
        MAXINSTANCES 50
        MAXLOGHISTORY 23371
    LOGFILE
      GROUP 1 (
        '/oracle/ZD1/origlogA/log_g11m1.dbf',
    then all the data file paths (which I verified to be correct)
    ends with:
    '/oracle/ZD1/sapdata4/sr3_61/sr3.data61',
      '/oracle/ZD1/sapdata4/sr3_62/sr3.data62'
    CHARACTER SET UTF8
    Now here is the issue:
    1) When I manually run the CONTROL.SQL and then just do a alter database open resetlogs everything is fine. Database mounts and opens fine. However when I run the sapinst it tries to run the CONTROL.SQL again and messes up everything. I would like to skip this phase in sapinst and change ERROR to OK in keydb.xml file. Question is when should I do this ? Before starting sapinst so that it skips this or during the phase it stops and asks for backup/restore ?
    2) Instead creating files manually I also let sapinst do this. But it throws an error during control file creation. When I used the above CONTROL.SQL it says must use resetlogs to open database. Then I restored all over again and added the line alter database open resetlogs at the end of CONTROL.SQL
    '/oracle/ZD1/sapdata4/sr3_61/sr3.data61',
      '/oracle/ZD1/sapdata4/sr3_62/sr3.data62'
    CHARACTER SET UTF8
    ALTER DATABASE OPEN RESTLOGS;
    And then ran sapinst again from scratch and now it throws error file 1 needs media recovery.
    This is weird and I don't know why sapinst acting smart here and wont let me do it and when it does it by himself it messes up.
    Is my CONTROL.SQL scripts correct ? Whats the best approach here.
    Thank you

    Hello Nicholas
    Thank you. I have replaced the CONTROL>SQL in the installation directory itself. Its in /tmp/sapinst_instdir/ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS And yes it IS picking up the control.sql that I provided and not the default.
    DatabaseSAP
    Thank you. I have never commented  anything in keydb.xml before. But sounds like a good idea because if I can restore it myself I really want to skip this step. Should I just do it before start of sapinst  and what exact lines to comment ? Which keydb should I edit ? I found several but looks like ./ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS/keydb.xml is the right one.
    root@zepsapa1 # find . -name keydb.xml
    ./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/DB/keydb.xml
    ./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/DB/log_20_Apr_2011_05_48_52/keydb.xml
    ./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/DB_backup/keydb.xml
    ./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/SCS/keydb.xml
    ./NW04S/LM/PRC/keydb.xml
    ./NW04S/LM/UNINSTALL/AS/keydb.xml
    ./NW04S/LM/UNINSTALL/AS/log_05_Dec_2011_07_39_50/keydb.xml
    ./ERP/LM/USR/keydb.xml
    ./ERP/LM/USR/log_15_Dec_2011_15_43_02/keydb.xml
    ./ERP/LM/USR/log_14_Dec_2011_16_15_35/keydb.xml
    ./ERP/LM/PRC/keydb.xml
    ./ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS/keydb.xml
    ./ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS/log_19_Dec_2011_08_48_00/keydb.xml
    ./ERP/SYSTEM/ORA/CENTRAL/AS/keydb.xml
    ./ERP/SYSTEM/ORA/CENTRAL/AS/log_16_Dec_2011_12_41_11/keydb.xml
    ./ERP/SYSTEM/ORA/CENTRAL/AS/log_16_Dec_2011_13_03_45/keydb.xml
    ./ERP/SYSTEM/ORA/CENTRAL/AS/log_18_Dec_2011_08_05_17/keydb.xml
    Also what exactly am I commenting here ? I see step RunControlScript is the one causing problems and I dont want it to create any control files. Please advise what exactly I need to comment and when. And what about changing the ERROR to OK ?
    <strval><![CDATA[]]>
            </strval>
          </fld>
        </row>
        <row>
          <fld name="STEPKEY">
            <strval><![CDATA[|NW_Doublestack_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBOBR|ind|ind|ind|ind|1|0|NW_OraOBR|ind|ind|ind|ind|4|0|RunControlScript]]>
            </strval>
          </fld>
          <fld name="STATUS">
            <strval><![CDATA[ERROR]]>
            </strval>
          </fld>
          <fld name="STOP_BEFORE">
            <strval><![CDATA[]]>
            </strval>
          </fld>
          <fld name="STOP_AFTER">
            <strval><![CDATA[]]>
            </strval>
    Thank you

  • Tamanho do arquivo XML para SEFAZ

    Prezados, bom dia.
    Tivemos problema com uma nota emitida que ultrapassou o tamanho permito do XML para a SEFAZ, ou seja, acima de 500.000 bytes( a nota era de importação e havia muitos itens). Isso nos trouxe problemas no P11 onde não gerou bacht e na J1BNFE todas as notas emitidas após ficaram com o status de "waiting for response".
    Até então nunca havia acontecido isso aqui. Abrimos um chamado na SAP e descobrimos que o problema era esse.
    Nos recomendaram aplicar a nota: Implement SAP Note 1447771 - GRC NFe - Bacht Number failed, para evitar futuros loopings.
    Aplicamos essa nota e as notas pré requistos: 1393493 and 1406068 no ambiente de teste e quando fui simular uma nota com essa quantidade deu erro:
    "The exception, which is assigned to class ´CX_SY_RANGE_OUT_OF_BOUNDS`, was not caught in procedure " CHECK_NFENUM_NUMERIC" "(FORM)", or was it propagated by  a RAISING clause
    Gostaria de saber se isso tem haver com a nota que aplicamos?
    Podem me ajudar.
    att.
    Melissa

    Bom dia Melissa,
    Não sei se tem a ver mais...não custa tentar...
    Tivemos problemas com geração de notas com tamanho maior que o lote também. O sintoma era esse mesmo, o GRC parava e tinhamos que fazer a correção na mão.
    Aí conforme orientação do Fernando aplicamos a nota 1447771 e resolveu o problema (parcialmente). Parcialmente, porque o nota rejeitada voltava para o GRC sem status do erro e com isso eu não conseguia cancelar ela no ERP.
    Abrimos chamado na SAP para resolver este bug. Num primeiro momento o Fernando arrumou "na mão" e hoje a SAP liberou uma nota para corrigir o problema: 0001461745.
    Como eu disse, não sei se tem a ver (pode ser que você conseguia cancelar as notas que deram pau), mas fica a dica e para outros que forem fazer algum search aqui no forum.
    Att
    Fabio Rebelo

  • Entrada da NFe no ERP e arquivamento do XML.

    Prezados, bom dia.
    Tenho algumas dúvidas que gostaria de dividir com vcs. Alguém saberia responder?
    Processo de Entrada de Nfe no ERP (manual)
    1.) Quando da entrada de dados da DANFE no ERP (MIGOMIRO), este envia alguma informação pro GRC? Em que momento é validada a DANFE?
    2.) Se sim, em que formato são armazenados os dados da NFe no GRC?
    Recebimento do arquivo XML do fornecedor
    1.) Há alguma consistência entre o XML (recebido do fornecedor) armazenado no GRC e os dados inseridos no ERP (com base na DANFE recebida)?
    2.) De quem é a obrigatoriedade em armazenar o XML? Fornecedor, empresa que recebe, SEFAZ, Receita Federal, etc? As informações armazenadas são as mesmas? Por qual período os dados devem permanecer guardados?
    Obrigado por qualquer ajudar.
    Hyalen.

    Obrigado David e Henrique. As respostas ajudaram bastante.
    Formatei a discussão em Perguntas e Respostas para facilitar o entendimento.
    1- Pergunta:
    Quando da entrada de dados da DANFE no ERP, este envia alguma informação pro GRC? Em que momento é validada a DANFE?
    Resposta:
    Atualmente, quando você entra com as informações da DANFE através do MIRO/MIGO nenhuma informação é enviada ao SAP GRC NFe, logo nenhuma validação destas informações é realizada junto a SEFAZ.
    2- Pergunta:
    Uma parte do processo de NFe é dar entrada da mercadoria no ERP. O que acontece se eu digitar as informações de recebimento, em relação ao XML armazenado, errada no ERP? Há alguma consistência entre o XML armazenado no GRC e os dados inseridos no ERP?
    Resposta:
    Quando você receber o XML de um emissor de NF-e através do cenário de B2B do SAP GRC NFe, esta nota será consultada pelo SAP GRC NFe junto ao site da SEFAZ e será armazenada no SAP GRC NFe (dentro do repositório do SPRO), mas nenhuma informação desta NFe (XML recebido) será consistida com as informações inseridas no ERP (baseada na DANFE recebida).
    3- Pergunta:
    Em que formato são armazenados os dados da NFe no GRC? Melhor dizendo, o GRC decompõe o XML que chega do fornecedor e armazena os dados em tabelas ou grava como XML mesmo?
    Resposta:
    O GRC armazena o XML sem decomposição alguma e em dois momentos, quando da solicitação do protocolo e após validação do XML pela SEFAZ. No segundo caso o XML será armazenado com o Código de Autorização de Uso.
    4- Pergunta:
    De quem é a obrigatoriedade em armazenar o XML? Fornecedor, empresa que recebe, SEFAZ, Receita Federal, etc? As informações armazenadas são as mesmas? Por qual período os dados devem permanecer guardados?
    Resposta:
    Estas informações foram extraídas Portal da Nota Fiscal Eletrônica - Perguntas Frequentes NF-e
    A regra geral é que o emitente e o destinatário deverão manter em arquivo digital as NF-es pelo prazo estabelecido na legislação tributária para a guarda dos documentos fiscais, devendo ser apresentadas à administração tributária, quando solicitado. Assim, o emitente deve armazenar apenas o arquivo digital.
    No caso da empresa destinatária das mercadorias e da NF-e, e que seja emitente de NF-e , ela também não precisará guardar o DANFE, mas apenas o arquivo digital recebido.
    Caso o destinatário não seja contribuinte credenciado para a emissão de NF-e, o destinatário deverá manter em arquivo o DANFE relativo a NF-e da operação pelo prazo decadencial estabelecido pela legislação, devendo ser apresentado à administração tributária, quando solicitado.
    Reforçamos que o destinatário sempre deverá verificar a validade e autenticidade da NF-e e a existência de Autorização de Uso da NF-e, tenha ele recebido o arquivo digital da NF-e ou o DANFE acompanhando a mercadoria. Hoje os processos são separados.
    1- DANFE -> transporte de mercadoria -> entrada manual MIRO/MIGO.
    2- XML -> interface B2B -> armazenamento no GRC.
    A funcionalidade de entrada automática dos dados da NFE no ERP (sem necessidade de digitar nada, dados lidos do XML) está prevista pro próximo release do NFE.
    Quanto ao requisito legal (armazenar o XML e verificar status da NF-e quando da chegada do XML), a solução já atende. Mas vc continua tendo q fazer a MIRO/MIGO e checar na SEFAZ o status da NF-e quando da chegada do DANFe (pois no meio tempo entre a chegada do XML e da DANFe, a NF-e pode ter sido cancelada pelo emissor). No próximo release, esses passos manuais serão totalmente automatizados, sendo integrados com o processo do XML.

  • Is Stack configuration XML file needed for EHP4 installaton on ERP 6.0 SR2

    Hello ALL,
    Is Stack configuration XML file needed for EHP4 installaton on ERP 6.0 SR2,THE GUIDE SAYS IT IS OPTONAL
    is it?
    Rohit

    The central installation note
    Note 1143022 - Installation of SAP Enhancement Package 4 on SAP ERP 6.0
    says, that the Solution Manager Maintenance Optimizer should be used to generate the stack file to avoid any problems.
    Markus

  • XML message failing in the SUS side for vendor replication from ERP

    Dear Experts,
    We have configured MM-SUS scenarios in our environment of SRM 7.01/ECC 6 ehp 5.
    We are trying to replicate the Vendor master from ECC to SUS using PI ( idoc message ZCREMAS_SUS_MM)).
    The message is successully processed in the PI. It is failing in the SUS side.
    The exception is as below:
    An error occurred when deserializing in the simple transformation program /1SAI/SASF5486DA19E3520591A1B (Length of "123 JALAN TIMUR" exceeds maximum length "10", specified with tt:maxLength Kernel ErrorId: ST_CONSTRAINT_MAXLENGTH) XML Bytepos.: 607 XML Path: ns0:SupplierPortalTradingPartner(1)TradingPartnerOrganization(2)Address(8)HouseNumber(6) An error occurred when deserializing in the simple transformation program /1SAI/SASF5486DA19E3520591A1B Length of "123 JALAN TIMUR" exceeds maximum length "10", specified with tt:maxLength</SAP:Stack>
    Where I can change the settings to allow the maximum length  of 10?
    Any input will be highly appreciated.
    Thanks and regards,
    Ranjan

    Hi,
    Note 1510484 - SUS: Order longtext in message area displayed incorrectly
    Note 1559121 - SUS: Long texts are getting broken in PCO (POR)document
    Given notes are not exactly related to the problem. Let me know if notes could work for the current issue.
    Regards,

  • How to create xml signature in oracle ERP 11.5.10

    Hi All,
    I've an requirement to sign the xml file and as per the specs http://www.w3.org/2000/09/xmldsig#. or canonicalization method (rsa-sha1)...
    Can anybody pls help how to do it in 11.5.10 ?
    DB version .. 11g (11.2.0.3.0) 64 bit
    JAVA version
    java version "1.6.0.14"
    Java(TM) SE Runtime Environment (build 1.6.0.14-jinteg_07_mar_2012_00_45-b00)
    Java HotSpot(TM) Server VM (build 20.6-b01-jre1.6.0.14-rc1b2 PA2.0 (aCC_AP), mixed mode)
    I know in 11g oracle fusion middleware oracle supports this ..but how to do it in 11.5.10... has anybody used any java api for this like (apache xml security)....
    but i don't know how to install ?
    any help would be highly appreciated.
    Thanks much in advance...
    Regards,
    Ritesh

    Hi All,
    I've an requirement to sign the xml file and as per the specs http://www.w3.org/2000/09/xmldsig#. or canonicalization method (rsa-sha1)...
    Can anybody pls help how to do it in 11.5.10 ?
    DB version .. 11g (11.2.0.3.0) 64 bit
    JAVA version
    java version "1.6.0.14"
    Java(TM) SE Runtime Environment (build 1.6.0.14-jinteg_07_mar_2012_00_45-b00)
    Java HotSpot(TM) Server VM (build 20.6-b01-jre1.6.0.14-rc1b2 PA2.0 (aCC_AP), mixed mode)
    I know in 11g oracle fusion middleware oracle supports this ..but how to do it in 11.5.10... has anybody used any java api for this like (apache xml security)....
    but i don't know how to install ?
    any help would be highly appreciated.
    Thanks much in advance...
    Regards,
    Ritesh

  • Validador GRC SP17 não está funcionando corretamente para XML 3.10

    Caros,
    Recentemente subimos o SP17 no GRC (SAPK-90017INSLLNFE) e também implementamos as notas para nota versão do XML 3.10 no ERP (1933985 - NF-e new layout 3.10 e seus pré-requisitos).
    O XML está sendo gerado corretamente, mas nos casos em que alguma informação não é preenchida corretamente e deveria parar no validador do GRC, isto não ocorre. Exemplo tag F_NRO (house number)  vazia, não para no validador do GRC.
    Antes do upgrade do support package e na versão XML 2.0, o validador funcionava corretamente.
    Aparentemente as configurações de NF-e outboud na IMG do GRC estão corretas e as tabelas /XNFE/XMLVALID e /XNFE/NFEVALID estão preenchidas corretamente também.
    Alguém está passando pelo mesmo problema?
    Obrigada.

    Oi Cristiane,
    Qual status da NFe no monitor do GRC 3.10
    http://<host>:<port>/sap/bc/webdynpro/xnfe/nfe_outb_monitor ?
    Dei uma olhada no código da RFC /XNFE/OUTNFE_CREATE chamada pelo ERP para 3.10. Aparentemente somente a visão de CNPJ tem relevância para erro de validação quando o campo validação está preenchido.
    (SPRO - Nota Fiscal Eletrônica - Saída - Atualizar resposta do sistema para nºs próprios ID fiscal)
    Outro ponto que você pode avaliar e que tem relevância é a função  /XNFE/GET_XMLVERSION que reflete as configurações:
    SPRO - Nota Fiscal Eletrônica - Saída:
    - NF-e: atualizar sistemas das autoridades conectados
    - NF-e: atualizar versão dos tipos de mensagem
    E que talvez o caminho lógico, seja o que está errado... o que tenho visto muito.
    Veja se lhe ajuda na análise...
    Obrigado,
    Bruno

  • NFe 3.10 - Erro 225: Rejeição: Falha no shcema XML da NFe

    Boa tarde.
    Estamos com problema no Schema do XML, já verificamos as informações do post abaixo:
    http://scn.sap.com/thread/3714800
    Aqui também ocorre o mesmo problema e quando reenviamos a nota o xml é processado. Porém, precisamos encontrar uma solução
    onde não seja necessário o reenvio manual do documento.
    Baixamos o XML com problema e depois da validação no SEFAZ (após o reenvio) e a unica diferença é a tag abaixo:
    Ela é criada após a validação do XML?
    *** XML Erro Schema
      <?xml version="1.0" encoding="utf-8" ?>
    - <NFe xmlns="http://www.portalfiscal.inf.br/nfe">
    *** XML OK, após o reenvio da NF
      <?xml version="1.0" encoding="utf-8" ?>
    - <nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="3.10">
    - <NFe xmlns="http://www.portalfiscal.inf.br/nfe">
    Gostaria de saber se alguém já passou por este problema e qual foi a solução aplicada.
    obrigado
    Juliano Diniz

    Oi Michael,
    Essa declaração que o José comentou é diferente mesmo, não vi em nenhum outro cliente e ela que deu erro no validador da SEFAZ no seu teste. Se você remove essa TAG e faz o teste no validador da SEFAZ RS o XML aponta outros erros.
    Teoricamente o XML começaria assim:
    <?xml version="1.0" encoding="UTF-8"?>
         <NFe xmlns="http://www.portalfiscal.inf.br/nfe">
    Além disso o XML do TXT tem umas quebras de linha que separaram o conteúdo das TAG's e causaram erro no validador da SEFAZ tb.
    O validador do GRC é basicamente uma função que aponta erros técnicos no preenchimento dos dados que vieram do ERP ( campos obrigatórios em branco, campos numéricos com valor alfanumérico, etc...) porém ele não validaria a estrutura final do XML ( encoding, montagem das TAG's e namespaces adicionados ).
    OBS: No arquivo adicionado tem o XML completo e por uma questão de "data protection" eu não recomendaria disponibilizar esse tipo de arquivo na internet, pois ele contém dados teoricamente sigilosos de negócio ( Clientes, transportadores, produtos/preços, Certificado digital da empresa emissora, etc...).
    att,
    Renan Correa

Maybe you are looking for

  • PROBLEM IN 122 DOC OF CAPITAL GOODS

    Dear All, I have done the G.R for Capital Good P.O. All PART 2 entries of 101 document is correct (Updating to RG23C g/l NOS only as per the Excise determination per transaction) But when I doing return delivery with ref to above document, all three

  • Internal Drive does not mount

    yesterday on a MacBook mark l; after a very long MSN typed session, MSN wouldn't close and after a while I turned off MBook turning power off with long press on on/off key. now... Flashing suitcase with ? mark flashing at start up I tried all the tri

  • NullPointerException on JVM startup when changing Class.getDeclaredField()

    On any JVM starting with 1.5 and later the included test case causes this exception on startup: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:394) at java.lang.System.initProperties(Native Method) at java.lang.System.initia

  • Why am I having so much trouble using Touch ID on my iPad Air 2?

    I have loaded, deleted and reloading my fingerprint. It works about one time out of ten tries. Very frustrating. I usually have to use my password. What can I do to get it working properly?

  • Shutting down help

    Hi My macbook keeps shutting down, I understand about needing to upgrade the firmware but my macbook turns itself off before I have the chance to upgrade it is there anyone out there that knows if there is anything else I can do? I think I have the l