on 03-26-2015 12:07 PM
Bom dia. Estou com um problema de salvar os dados de cobrança na BADI que gera o XML (CL_NFE_PRINT).
No metodo FILL_HEADER eu preencho a tabela OUT_COBRANCA. No debug, as tags estão preenchidas (Ndup, Vdup, Vdesc e o docnum).
Eu tenho que fazer algo a mais para sairem no xml?
Obrigado,
João.
Boa tarde, ja consegui resolver com a nota 2034779.
Quando vai pegar os valores de duplicata, ele estava pegando no xmlh:
IF xmlh-cobr IS NOT INITIAL.
gs_rfc_fat-n_fat = xmlh-nfat.
gs_rfc_fat-v_orig = xmlh-vorig.
gs_rfc_fat-v_desc = xmlh-vdesc.
gs_rfc_fat-v_liq = xmlh-vliq.
ls_duplicata-id = 1.
ls_duplicata-n_dup = xmlh-ndup.
IF xmlh-ndup_new IS NOT INITIAL.
ls_duplicata-n_dup = xmlh-ndup_new.
ENDIF.
ls_duplicata-d_venc = xmlh-dvenc.
ls_duplicata-v_dup = xmlh-vdup.
APPEND ls_duplicata TO gt_rfc_dup.
ENDIF.
A nota apenas muda isso para um loop na xmld_tab.
Obrigado, João.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.