Understanding the DIAN Output XML Generation Program

After you review and correct the data extracted by the DIAN Generate concept by Account ID program, you run the DIAN Output XML Generation - Formats 1001, 1002, 1003, 1004, 1007 program (R76C9F02) to generate the XML file. The R76C9F02 program reads the records in the F76C9F02 table and writes records to the DIAN Output Format Header (F76C0F01) and DIAN Output Format Detail (F76C0F11) tables. It also writes the XML file to the Text Processor Header table (F007101) and Text Process Detail Table (F007111). You copy the XML file from the text processor tables to the media that you use to submit the records.

The system does not include in the output files any records for which the system generates an error message for missing information. The error messages are included on the PDF generated by the DIAN Output XML Generation program (R76C9F02). The PDF also includes error messages if errors occurred when the system inserted records into the F76C0F01 or F76C0F11 tables, or when the system generated the XML files.