Skip to Content
0
May 11, 2010 at 02:18 PM

Criar <tag> na xml da NF-e...

850 Views

Senhores (as);

Estou precisando criar umas tags no xml da NF-e (Tags de grupo de volumes, etc). Já criei uma nova implementação na Badi CL_NFE_PRINT e na FILL_HEADER dela adicionei os valores:

method IF_EX_CL_NFE_PRINT~FILL_HEADER .

move-corresponding IN_XML_HEADER to out_header.

move-corresponding in_doc to out_header.

DATA: wa_out_volume like line of out_volume.

wa_out_volume-t4_qvol = in_doc-anzpk.

wa_out_volume-t4_esp = in_doc-shpunt.

wa_out_volume-t4_nvol = in_doc-brgew.

wa_out_volume-t4_esp = in_doc-shpunt.

append wa_out_volume to out_volume.

endmethod.

Gostaria de saber agora como montar as tags com seus devidos valores na xml ???