on 01-20-2011 1:00 PM
Olá,
Preciso de um help.
Estou criando uma nota fiscal de entrada utilizando a funcao 'BAPI_J_1B_NF_CREATEFROMDATA' e está aparecendo a mensagem de erro: Dados na tab.OBJ_HEADER_MSG existem de forma múltipla.
Debugando, verifiquei que o programa entra na condição do programa LJ1BBF2G (linha 924) e abaixo, dando o erro '8B' '499'. Alguem saberia me dizer o que quer dizer essa mensagem ou se já passou pelo problema? O usuario reporta que, para a nota fiscal com versao do XML 1,10 essa mensagem nunca ocorreu. Esse problema ocorre em QAS nos testes para atualização da NFe 2.0. Procurei no site da SAP e somente encontrei a nota 994303 referente a este erro, mas é de 2006 e já estamos com essa nota aplicada. Estamos no SAPKH60014 do ECC.
include LJ1BBF2G (linha 924)
IF NOT wk_header_msg[] IS INITIAL.
SORT wk_header_msg.
DESCRIBE TABLE wk_header_msg LINES n1.
DELETE ADJACENT DUPLICATES FROM wk_header_msg
COMPARING docnum seqnum linnum.
DESCRIBE TABLE wk_header_msg LINES n2.
IF n1 <> n2.
subrc = 8.
PERFORM bapireturn_fill USING '8B' 'E' '499'
'OBJ_HEADER_MSG' space space space return[].
ENDIF.
ENDIF.
Se alguém puder ajudar, desde já agradeço,
Abraços,
Kátia Alves.
Kátia, bom dia.
Como você está preenchendo a BAPI?
Joã
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bom dia João,
Estou preenchendo da seguinte forma:
CALL FUNCTION 'BAPI_J_1B_NF_CREATEFROMDATA'
EXPORTING
obj_header = wl_header
nfcheck = wl_nfcheck
IMPORTING
e_docnum = vl_docnum
TABLES
obj_item = tl_item
obj_item_tax = tl_tax
obj_header_msg = tl_header_msg
obj_refer_msg = tl_refer_msg
return = tl_return.
Abraços e Obrigada,
User | Count |
---|---|
16 | |
3 | |
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.