Ajuda com primeira implementação NFe - ABAP

Bom dia pessoal. Estou participando da primeira implementação de NFe e preciso de uma ajuda para entender melhor. Conversando aqui tenho as informações:
-O sistema que fará o envio e retorno do SEFAZ será o SYNCRO
-Minha parte abap será criar e receber os arquivos em XML em uma pasta no servidor a ser definida.
Minha duvida é:
1-Eu sei efetuar download d arquivos, mas onde que eu faria essa codificação para gerar o arquivo e guardar em uma pasta?
2-No retorno, eu teria que fazer um programa para ler os dados e atualizar no SAP? Como é feito o update no SAP?
Muito obrigado pela ajuda!

Fala Fulvio, blz?
Visto que o sistema de mensageria que você utilizará não é o SAP GRC NFE, você pode fazer a geração do XML via enhancement no módulo de função J_1B_NFE_XML_OUT. Isto pode ser realizado dentro do subprograma CALL_XI que é o responsável por chamar o sistema de mensageria.
O retorno dos sistemas de mensageria para o ERP são realizados através do módulo de função J_1B_NFE_XML_IN_TAB / J_1B_NFE_XML_IN. Através deste módulo de função é retornado o status de processamento da SEFAZ e também o status para que o ERP processe esta nota (realizando o estorno do processo em caso de cancelamento, por exemplo).
Para retornar as informações para o ERP, você pode gerar um job que lê os retornos em um diretório e então chama a função J_1B_NFE_XML_IN_TAB, por exemplo.
At.
David

Similar Messages

  • Preciso de ajuda com gravação de voz

    Preciso de ajuda com gravação de voz - fiz várias gravações de uma hora cada e todas funcionam bem. No entanto tenho uma gravação de quase duas horas que não consigo nem ouvir nem exportar para o pc. Preciso MUUUUUIIIIITO acessar esta gravação.. Por favor, ajudem-me.
    Estou com um Ipod touch

    deve ver uma janela como esta. caso o Shift não resolva tente usar o Alt ou Option como é chamado em Inglês

  • Ajuda com Product/Software Component/Business System

    Pessoal
    Preciso de uma ajuda de vcs, estou com um ambiente que o BASIS instalou tudo mas o Produto/Software Component SAP NFe 1.0 não está aparecendo no SLD portanto nao consigo fazer a amarracao com o Business System ( que foi criado ).
    Vcs sabem me falar a nota ou sp que crie/instale esse produto no meu SLD?
    Grato

    Atualize a versao do SAP CR Content para qq versao superior a 3.10 (recomendacao eh a a ultima versao disponivel, acho q é 6. alguma coisa). Detalhes de como faze-lo: SAP Note 669669.
    Abs,
    Henrique.

  • Ajuda com Iphone 4S Agenda Icloud

    Bom dia!
    De um determinado tempo ate hoje notei que meus contatos nao estao mais sincronizando com o icloud!
    Gostaria de uma ajuda para a devida configuracao se alguem poder me ajudar!

    Caro Emerson,
    Obrigado por ter contactado as Comunidades de Suporte Apple.
    Notei que este tópico tem algum tempo. O seu problema é fácil de resolver. caso continue com o mesmo problema, responda a esta mensagem.
    Atentamente,
    Gonçalo Matos
    Estou aqui para ajudar. Clique no botão "Reply" no caso de ter outra questão ou necessitar de outro esclarecimento para que eu possa ajudar da melhor forma que conseguir.

  • Ajuda com Iphone 3GS IOs 5.01

    Prezados, 
    Preciso de uma ajuda urgente...  
    Tenho um Iphone 3GS com IOs 5.01 que trava a todo momento e desliga sozinho. Não sei mais o que fazer, poderiam me ajudar?
    Obrigada Poliana

    You need to restore the phone, and put the new software on it. The restore that you did must have failed or corrupted somehow. Plug into computer and restore phone. Done.

  • NFe 3.10 Devolução com mais de uma NFe referenciada

    Caros,
    Estamos realizando o teste para o cenário de Devolução utilizando o layout do XML 3.10 através da NF-e.
    O manual técnico (NT2013.005_v1.03.pdf), em sua página 46, dá a entender que podem ser refenciadas várias NFes a serem devolvidas em uma única NFe de Devolução.
    "BA. Documento Fiscal Referenciado
    Informação de Documentos Fiscais referenciados.
    Grupo com informações de Documentos Fiscais referenciados. Informação utilizada nas hipóteses previstas na legislação. (Ex.: Devolução de mercadorias, Substituição de NF cancelada, Complementação de NF, etc.)."
    Ocorrência: 0-500
    O nosso teste consiste em fazer várias entradas (Físico e Fiscal) para o mesmo fornecedor, e após isto, gerar uma única Nota de Crédito referenciando a cada uma dessas NFe entradas.
    Porém, ao executar a MIRO, na operação de Nota de Crédito, o sistema permite apenas referenciar um único DOCNUM (NFe).
    Há alguma nota SAP ou atendimento à este requerimento da Nota Técnica?
    O entendimento está correto?
    Alguém testou esse cenário desta forma?
    Att,
    Levi Luis

    Então, Luciano
    lá, o que dá a entender, é que uma mesma NF-e de devolução pode ter várias NFes de referencia.
    Veja:
    "Permitida novamente a consolidação de várias devoluções de NF-e distintas, em uma mesma NF-e de devolução de mercadoria (eliminada a validação “B25-80”)"
    É nisso que a área usuária está se apegando para cobrar a melhoria da SAP.
    O que eles estão entendendo é que o layout 3.10 do XML daria essa abertura de consolidar várias NF-es a serem devolvidas em uma única NF-e, o que simplificaria o operacional (já que atualmente o SAP, via MIRO, só trabalha com Devolução 1 x 1).

  • "general access denied error" while implementing out-of-process COM Server Implementation in Windows Phone 8.1

    I have a Service (.exe) where I was registering for my COM Component like below
    CoInitializeEx(NULL, COINIT_MULTITHREADED);
    HRESULT hres = CoInitializeSecurity(NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE, 0);
    if (hres != S_OK)
    OutputDebugStringA("Security Descriptor not initialized");
    ITypeLib* pTypeLib;
    HRESULT hr_1 = LoadTypeLibEx(L"ServiceIdl.tlb", REGKIND_REGISTER, &pTypeLib);
    if (pTypeLib != NULL)
    pTypeLib->Release();
    RegisterServer(L"Service.exe", CLSID_classAImpl, L"ClassAImpl Sample", L"Component.ClassAImpl", L"Component.ClassAImpl.1", 0);
    g_hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
    DWORD reg = 0;
    IClassFactory *pIFactory = new classAFactory;
    HRESULT hr0 = CoRegisterClassObject(CLSID_classAImpl, pIFactory, CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE, &reg);
    if (FAILED(hr0))
    OutputDebugStringA("classAImpl is not registered");
    CoUninitialize();
    exit(1);
    HRESULT hr1 = CoResumeClassObjects();
    if (hr1 == S_OK)
    OutputDebugStringA("classAImpl is Resumed Registering");
    WaitForSingleObject(g_hEvent, INFINITE);
    CloseHandle(g_hEvent);
    CoRevokeClassObject(reg);
    pIFactory->Release();
    CoUninitialize();
    From Client Code I am CreatingInstance  Like Below
    COSERVERINFO si;
    MULTI_QI qi;
    COAUTHINFO cai = { RPC_C_AUTHN_NONE, RPC_C_AUTHZ_NONE, 0, RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IMPERSONATE, 0, EOAC_NONE };
    si.dwReserved1 = 0;
    si.pwszName = L"\\\\localhost";
    si.pAuthInfo = &cai;
    si.dwReserved2 = 0;
    qi.pIID = &IID_classA;
    qi.pItf = NULL;
    qi.hr = 1;
    CoInitializeEx(NULL, COINIT_MULTITHREADED);
    HRESULT hr = CoCreateInstanceEx(CLSID_classAImpl, 0, CLSCTX_LOCAL_SERVER, &si, 1, &qi);
    hr returning error "general access denied error";

    I think we may run into the limitations mentioned in the remarks of CoCreateInstanceFromApp doc(show as below). If you can provide a repro project, I
    can give you more details about what happens.
    The CoCreateInstanceFromApp function reads class registrations only from Fusion contexts and manifests, and from the HKLM\SOFTWARE\Classes\CLSID registry hive.
    Only built-in classes that are supported in the app container are supplied. Attempts to activate unsupported classes, including all classes installed by 3rd-party code as well as many Windows classes, result in error code
    REGDB_E_CLASSNOTREG.
    The CoCreateInstanceFromApp function is available to Windows Store apps. Desktop applications can call this function, but they have the same restrictions as Windows Store apps.
    If you are trying to call some windows classes in your library, I will suggest you check how to create windows runtime out of process component by viewing
    this sample. This is what I usually do.
    To be honest, I did not try to implement the out of process COM component using the method you tried as we previsouly do on desktop. I will suggest you try to register a very simple library(like a signle class and single interface which returns an integer),
    and see if it will work.
    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    Alan Yao
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • How to implement html in ABAP ?

    Hello i want o know how to implement html code in sap ?
    Is there any procedure for which if yes please do share with me.
    Points will be rewarded for the helpful answer.
    Thks

    hi Balu,
    what ever Mr. Nikhil said is suitable to ur requirement..
    Webdynpro for ABAP & BSP concepts serve u. At the end they both will generate a
    URL ...
    When we run this url ...
    required screen is called and what ever we entered in screen saved in ssap backend tables..
    hopes u got ur ans...
    Go through WEBDYNPRO FOR ABAP & BSP DOCs..
    Regards..
    Raju Mummidi.

  • How to implement locking in ABAP

    Hello everyone,
        I am doing dialog programming and I have a screen that creates some template. When the user opens up the screen it defualts to next available template number to be created (for example if template No 1 exists then it will default to template no 2 so template 2 will be created). But if multiple users open up the screen then it will show template 2 for both of them and I want to avoid this, i.e. I like to implement some locking mechanism so one user opens up the screen that template is locked and the other cannot create the same template. Please share any ideas and suggestions, how I can imeplement this!
    Thanks.
    Mithun

    Hai  Mithun Dha
    Lock Objects
    The R/3 System synchronizes simultaneous access of several users to the same data records with a lock mechanism. When interactive transactions are programmed, locks are set and released by calling function modules (see Function Modules for Lock Requests). These function modules are automatically generated from the definition of lock objects in the ABAP Dictionary.
    Structure of a Lock Object
    The tables in which data records should be locked with a lock request are defined in a lock object together with their key fields. When tables are selected, one table (the primary table) is first selected. Further tables (secondary tables) can also be added using foreign key relationships (see also Conditions for Foreign Keys).
    Lock Arguments
    The lock argument of a table in the lock object consists of the key fields of the table.
    The lock argument fields of a lock object are used as input parameters in the function modules for setting and removing locks generated from the lock object definition. When these function modules are called, the table rows to be locked or unlocked are specified by defining certain values in these fields. These values can also be generic. The lock argument fields therefore define which subset of the table rows should be locked.
    The simplest case of a lock object consists of exactly one table and the lock argument of the table is the primary key of this table. Several tables can also be included in a lock object. A lock request therefore can lock an entire logical object, and not only a record of a table. Such a logical object can be for example a document comprising an entry in a header table and N entries in a position table.
    Locks can also be set from programs in other systems with the corresponding interfaces if the lock object was defined with RFC authorization.
    A lock mode can be assigned for each table in the lock object. This mode defines how other users can access a locked record of the table.
    Table SFLIGHT in the  flight model contains all the scheduled flights of a carrier. Field SEATSMAX contains the number of seats available. Field SEATSOCC contains the number of seats already booked. If a booking is made for a customer (by a travel agency or sales desk), you must check whether there are enough seats available. The number of seats booked is incremented when the booking is made.
    This mechanism must ensure that two sales desks do not make the same booking at the same time and that the flight is not overbooked.
    This can be done by creating lock object ESFLIGHT. Only the table SFLIGHT must be included in this lock object. The flight can then be locked (with the function modules generated from the lock object) when booking. If another sales desk also wants to book seats for this flight, the lock will prevent the flight from being overbooked.
    Activating a lock object in the ABAP Dictionary automatically creates function modules for setting (ENQUEUE_<lock object name>) and releasing (DEQUEUE_<lock object name>) locks.
    The generated function modules are automatically assigned to function groups. You should not change these function modules and their assignment to function groups since the function modules are generated again each time the lock object is activated.
    Never transport the function groups, which contain the automatically generated function modules. The generated function modules of a lock object could reside in a different function group in the target system. Always transport the lock objects. When a lock object is activated in the target system, the function modules are generated again and correctly assigned to function groups.
    Parameters of the Function Modules
    Field Names of the Lock Object
    The keys to be locked must be passed here.
    A further parameter X_<field> that defines the lock behavior when the initial value is passed exists for every lock field <field>. If the initial value is assigned to <field> and X_<field>, then a generic lock is initialized with respect to <field>. If <field> is assigned the initial value and X_<field> is defined as X, the lock is set with exactly the initial value of <field>.
    Parameters for Passing Locks to the Update Program
    A lock is generally removed at the end of the transaction or when the corresponding DEQUEUE function module is called. However, this is not the case if the transaction has called update routines. In this case a parameter must check that the lock has been removed.
    Parameter _SCOPE controls how the lock or lock release is passed to the update program (see The Owner Concept for Locks). You have the following options:
    _SCOPE = 1: Locks and lock releases are not passed to the update program. The lock is removed when the transaction is ended.
    _SCOPE = 2: The lock or lock release is passed to the update program. The update program is responsible for removing the lock. The interactive program with which the lock was requested no longer has an influence on the lock behavior. This is the standard setting for the ENQUEUE function module.
    _SCOPE = 3: The lock or lock release is also passed to the update program. The lock must be removed in both the interactive program and in the update program. This is the standard setting for the DEQUEUE function module.
    Parameters for Lock Mode
    A parameter MODE_<TAB> exists for each base table TAB of the lock object. The lock mode for this base table can be set dynamically with this parameter. Valid values for this parameter are S (shared), E (exclusive) and X (exclusive but not cumulative).
    The lock mode specified when the lock object for the table is created is the default value for this parameter. This default value can however be overridden as required when the function module is called.
    If a lock set with a lock mode is to be removed by calling the DEQUEUE function module, this call must have the same value for the parameter MODE_<TAB>.
    Controlling Lock Transmission
    Parameter _COLLECT controls whether the lock request or lock release should be performed directly or whether it should first be written to the local lock container. This parameter can have the following values:
    Initial value: The lock request or lock release is sent directly to the lock server.
    X : The lock request or lock release is placed in the local lock container. The lock requests and lock releases collected in this lock container can then be sent to the lock server at a later time as a group by calling the function module FLUSH_ENQUEUE.
    Behavior for Lock Conflicts (ENQUEUE only)
    The ENQUEUE function module also has the parameter _WAIT. This parameter determines the lock behavior when there is a lock conflict.
    You have the following options:
    Initial value: If a lock attempt fails because there is a competing lock, the exception FOREIGN_LOCK is triggered.
    X : If a lock attempt fails because there is a competing lock, the lock attempt is repeated after waiting for a certain time. The exception FOREIGN_LOCK is triggered only if a certain time limit has elapsed since the first lock attempt. The waiting time and the time limit are defined by profile parameters.
    Controlling Deletion of the Lock Entry (DEQUEUE only)
    The DEQUEUE function module also has the parameter _SYNCHRON.
    If X is passed, the DEQUEUE function waits until the entry has been removed from the lock table. Otherwise it is deleted asynchronously, that is, if the lock table of the system is read directly after the lock is removed, the entry in the lock table may still exist.
    Exceptions of the ENQUEUE Function Module
    FOREIGN_LOCK: A competing lock already exists. You can find out the name of the user holding the lock by looking at system variable SY-MSGV1.
    SYSTEM_FAILURE: This exception is triggered when the lock server reports that a problem occurred while setting the lock. In this case, the lock could not be set.
    If the exceptions are not processed by the calling program itself, appropriate messages are issued for all exceptions.
    Reference Fields for RFC-Enabled Lock Objects
    The type of an RFC-enabled function module must be completely defined. The parameters of the generated function module therefore have the following reference fields for RFC-enabled lock objects:
    Parameters
    Reference fields
    X_<field name>
    DDENQ_LIKE-XPARFLAG
    _WAIT
    DDENQ_LIKE-WAITFLAG
    _SCOPE
    DDENQ_LIKE-SCOPE
    _SYNCHRON
    DDENQ_LIKE-SYNCHRON
    All the tables that can be included in a lock object must be linked with  foreign keys. There are a number of restrictions to the valid relationships.
    The foreign key relationships of the tables of the lock object must form a tree. The tables are the nodes of the tree. The links of the tree mean is the check table of.
    The foreign key fields must be key fields of the foreign key table.
    The foreign key relationships defined between the base tables of the lock objects may not have any field that is checked against more than one other field. A field therefore may not occur twice as foreign key field in a relationship and may not be checked against two different fields in two different foreign key relationships.
    You must keep one restriction in mind for  multi-structured foreign keys. If a field is assigned to a field that is outside the check table, the table containing this field must be in a sub-tree that contains the check table of this foreign key relationship as a root.
    These conditions are always satisfied if the key of the foreign key table is an extension of the key of the check table.
    Conditions 2, 3 and 4 are meaningless if the particular foreign key field was excluded from the assignment to the key fields of the check table by  marking it as generic or setting it to a constant. This is also true for multi-structured foreign keys if the foreign key field refers to a table that is not contained in the lock object.
    Regards.
    Eshwar.

  • How to implement  mailing in ABAP

    Hi all,
    I want to send mail from my abap program to number of recepient, at a perticular time. Is it possible in ABAP to run a perticuler module at a pericler time say 8 AM every morning?

    Hi,
    Check this link for mailing..
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Check this link for scheduling..
    http://help.sap.com/saphelp_46c/helpdata/EN/c4/3a7f87505211d189550000e829fbbd/frameset.htm
    Thanks,
    Naren
    Message was edited by: Narendran Muthukumaran

  • Create and Remove Enhancement Implementation in WD ABAP!!!

    Hi Experts,
    I have Created an Enhancement implementation in a standard Web Dynpro ABAP component and added a new view in the component. Now I need to remove this enhancement implementation. Can anybody please suggest how to do it. In normal ABAP code we have an option to undo enhancement when we right click on the code. But here I have created a view so I can't find from where to remove this enhancement. Please help.
    Regards,
    Vaibhav Tiwari.

    in SE80 transaction, when you display any standard WD component, you can have option to create view or view as enhancement. this option will be shown when you right click on "Views" node under your WD component.
    what all changes you can do in standard view => add context node/attributes, new methods, add new ui elems, add pre/post exit in existing methods.
    and I have tried all these option available to enhance any standard WD Component.
    Everything has been deleted when i've deleted the Enhancemnt Implementation.
    I don't know what will be the effect after applying any enhancement pack.
    -Haresh

  • Com object implementation in forms 9i

    Has anyone actually implemented this? We have a 3rd party application (imaging software) that has .dll's that under forms 5 we have accessed within the forms pl/sql. Under 9i, I understand the need to create a javabean for this com object and then from pl/sql use the fbean package to implement it.
    The example I've seen of this is the Microsoft Word one documented in "Client Side OLE Integration from Oracle9i Forms". I find this article to be very confusing. Does anyone have a link to anything that may provide better info?
    One particular question I have is do I need to create a javabean on the Jacob package first and then the com objects for my 3rd party application? Or can I just directly create a javabean on my com objects?
    Any info in regards to this would be appreciated.

    JACOB provides a series of APIs that you can use to call COM methods from within Java So you have to create a JavaBean which does these calls. That JavaBean can import the JACOB classes so you don't have to write that all again.

  • Ajuda com adaptador PROXY

    Henrique/Fernando/ Amigos
    Estou com uma interface PROXY -> File FTP ( Content Conversion ) meio que atipica pelo tamanho que uma mensagem enviada do ERP p/ o PI pode atingir ( cerca de 350 MB ).
    O PROXY chega a gerar a mensagem porem nao consegue enviar a mesma acusando a mensagem muito grande HTTP 400.
    Como devo proceder para processar mensagens desse tamanho que serao utilizadas para carga inicial em coletores de dados .
    Grato
    Carlos

    Bom dia Carlos,
    350 MB pode ser factível local, mas dar problemas quando remoto... Este proxy, junto com o PI e o File onde é gravado... tudo está em um mesmo server? São filesystems remotos?
    Imagino que pode estar acontecendo timeout em algum ponto, daí termina com o HTTP 400 (bad request).
    Já testou com outros tamanhos para ver se funciona?
    Se for nesta linha, teria que aumentar os parms de timeout ou diminuir o tamanho da carga...
    Atenciosamente, Fernando Da Rós
    @Carlos,
    Continuei procurando por infos e achei estas threads com respostas:
    Tem webdispatcher envolvido (veja informação sobre limite default=100)?   Large volume of Message to Server Proxy
    Veja também um como investigar: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747?QuickLink=index&overridelayout=true
    É texto? Que tal zipar?
    Edited by: Fernando Ros on Aug 22, 2011 11:46 PM

  • Ajuda com curriculum pdf

    olá gostaria de saber como criar um curriculum pdf com adober reader pq naum consigo passo a passo

    Sugiro que, para postar perguntas em um fórum em Inglês, você pode usar um tradutor como o do Google, como eu estou fazendo agora.
    The free Reader cannot create PDF files.

  • Ajuda com o Firefox de um amigo e reprodução de vídeos no Facebook

    Um amigo meu, usa Win 8.1 e acabou de migrar para o FF. Ele relatou que os vídeos de Facebook(os postados diretamente pelo Facebook, não os que rodam através do YT). Ele tem drivers de vídeo e plugin atualizados e consegue ver normalmente vídeo pelo Youtube. Ele diz que os vídeos ficam carregando infinitamente mas não rodam.
    Alguém sabe como resolver?

    É possível capturar uma imagem da tela apresentando o problema?
    Talvez fique mais fácil para os colaboradores do fórum identificarem o que está acontecendo.
    Abs. Anderson
    [[Adicionando capturas de tela]]
    [http://windows.microsoft.com/pt-br/windows/take-screen-capture-print-screen#take-screen-capture-print-screen=windows-8 Captura de telas no Windows]

Maybe you are looking for

  • How to display database items

    can anyone tell me how to display the selected contents of the database by using a variable from my form field(like text box )

  • Why can't I get an external HDMI display after upgrading to Maverick?

    I've been hunting all over for an answer to this problem.  I upgraded to Maverick in the fall and recently discovered that I can no longer get a picture on an external TV via Thuderbolt + HDMI.  I've used new connectors and cords.  Apparently others

  • Can I pass function name as a parameter to constructor?

    Hi! I want to create a class that extends JButton and executes some function, when released. The function for each button is different. I mean, can I write, for example: public class MyButton extends JButton public MyButton(...functionName...) addMou

  • IPod 2nd Generation Problem

    So I have tried everything I can think of, I have had this iPod since May and recently I plugged it in and it said that it was corrputed and I had to restore, so I did that. However when I restore it, after it is done, it tells me again that it is st

  • URGENT LabVIEW need - NY

    Our direct client on Long Island is seeking a LabVIEW engineer to start ASAP.   No citizenship restrictions, but VISA sponsorship is not offered.   Please send resumes to [email protected] 3+ month contract, on-site. Test experience should include te