on 06-18-2009 6:20 PM
Pessoal, boa tarde!
Estamos com problema para adicionar uma nota assinada a um lote existente ou para criar um novo lote, pois o JOB/Programa /XNFE/PROCESS_REPORTS está demorando tempo demais, devido a um loop que parece ser infinito no WHILE no trecho de código abaixo do programa /XNFE/COLLECT_BATCH:
IF lv_timediff > ls_batch-maxtime.
batch is ready to send*
PERFORM close_batch USING lt_one_batch
CHANGING lv_size
lv_quant
lt_next_batch.
Ensure that all remaining NFes will send*
WHILE NOT lt_next_batch IS INITIAL.
PERFORM close_batch USING lt_next_batch
CHANGING lv_size
lv_quant
lt_next_batch.
ENDWHILE.
lv_send = gc_ok.
lv_batchid = lv_batchid - 1.
ENDIF.
Alguém já passou por isso ou tem alguma idéia do que verificarmos para encontrar a solução?
No aguardo, obrigado.
Danilo
Fernanda, boa tarde!
O problema estava mesmo nesses 500 bytes e ao configurar para 500.000 a nota mudou para Status 04, agora é monitorar e aguardar o retorno do processamento no Sefaz.
Muito obrigado.
Abraços,
Danilo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bom dia Danilo,
Isto acontece quando ele não tem nenhuma nota no lote, e é forçado a fechar devido às regras configuradas.
Verifique na sua configuração de lote, se tem alguma informação que não consiga atender nem uma NF-e. Exemplo:
Tamanho máximo do XML: 500 bytes (o correto é 500.000)
Isto faz com que nenhuma NF-e sirva para o lote.
Além disto pode estar faltando a linha default, verifique SAP Note 1256697 e 1169083.
Atenciosamente, Fernando Da Ró
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.