Exporting Data
The method that you use to export data from the PeopleSoft system depends on the requirements of the target application. To export data to a flat file, you create a file layout definition and then write PeopleCode to transfer the data to a file. You can initiate the PeopleCode from the Application Engine or from any event. It should populate text strings, rowset objects, or record objects, and it should apply the WriteRecord or WriteRowset method from the File class to transfer the data to the file by using the file layout definition to position the records and fields as required by the target application.
Note:
To generate valid XML files, be sure to use the Close method in the File class when you finish writing to the file.
Important:
As is the case with imports, the completed file layout that you use to export the data must have exactly one file record at the root level; all other file records must be below that level.
Related Topics