> For the complete documentation index, see [llms.txt](https://docs.theconfigteam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theconfigteam.com/codingcontrol/configuration/core-application-configuration/sap-data-configuration/data-communication-methods/flat-file-output.md).

# Flat File Output

A Flat file output can be configured to be generated as a text file with continuous text and can be sent to a shared drive ready for processing by an external system.

1. From the right-hand screen double-click on the Define Communication to Resource/Work Centres option.
2. Select the change icon.
3. Select 'New Entries'.
4. Enter the work center that will use the method being configured if known.\
   \
   :information\_source: 'f4' is supported to search for the work center, the work center must exist on the system to be selectable and configurable.
5. Select the Com Method: 'Flat File' \
   \
   :information\_source: The ‘Logical File’ field will become active and requires a value to be entered. The logical file is linked to a Flat File schema that contains all the required fields.
6. Back out and save the current screen configuration.\
   \
   :information\_source: The logical file is linked to a Flat File schema that contains all the required fields this will need to be created.<br>

   <figure><img src="https://2225346189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvPS6W3uRgFnSjekeJfYT%2Fuploads%2FWPSTTBynYBa6O5X8LwPb%2Fimage.png?alt=media&amp;token=84185684-792f-44f6-9b23-41ba8102f3be" alt=""><figcaption></figcaption></figure>
7. double-click the 'Flat File Schema' option on the left hand menu.

<div align="left"><figure><img src="https://2225346189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvPS6W3uRgFnSjekeJfYT%2Fuploads%2Fw7gXS1XGGwjGVXmYMgym%2Fimage.png?alt=media&amp;token=4028bc2c-3a35-4867-ab53-1b3671348b25" alt=""><figcaption></figcaption></figure></div>

1. and select the plant, double click on the Flat File Schemas folder and select ‘New entry’, enter a Flat File Schema name and a short description.
2. Select ‘Enter’ then ‘Save’ to confirm values.
3. Select the new Schema detail and double click the child folder of the ‘Flat File Schema’ folder named ‘Fields’.<br>

   <figure><img src="https://2225346189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvPS6W3uRgFnSjekeJfYT%2Fuploads%2F3oPVpirnDEoudtQXSYkS%2Fimage.png?alt=media&amp;token=6846c031-77ef-404e-b3a7-6387542a5b51" alt=""><figcaption><p>The fields shown above are for example purposes only</p></figcaption></figure>
4. Enter the field values that are required to be in the flat file output.&#x20;
5. Select ‘Enter’ and ‘Save’ to confirm and update entries once complete.&#x20;
6. Select ‘Enter’ to confirm and save values.\
   \
   :information\_source: To complete the process the created ‘Schema’ must be associated with the logical file name.<br>

   <figure><img src="https://2225346189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvPS6W3uRgFnSjekeJfYT%2Fuploads%2FoWyCgHTbv77C9DaN6p8T%2Fimage.png?alt=media&amp;token=12f425a3-2257-4035-862a-a5b8f0c4b7a6" alt=""><figcaption></figcaption></figure>
7. Double click on the ‘Assign FF Schema to Logical Filename’ folder.\
   \
   :information\_source: The screen will display the values required on the right hand of the screen.<br>
8. Enter the logical \*\*filename and enter the flat file ‘Schema’ created in the previous steps.\
   \
   &#x20;:information\_source: \*\*This is created with SAP using transaction '**FILE'.**<br>
9. Select ‘Enter’ and ‘Save’ to update and confirm entered values.\
   \
   :information\_source: As flat files are not automatically generated to the destination system or server, transaction ‘/TCTCC/GENERATE\_FF’ is used to collate all the data and output to the previously configured destination folder.\ <br>

   <figure><img src="https://2225346189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvPS6W3uRgFnSjekeJfYT%2Fuploads%2FQ7isVh6eTpM5ARRdscsm%2Fimage.png?alt=media&amp;token=ee4a4d62-508e-4ace-9ae3-1382df9b4ae3" alt=""><figcaption></figcaption></figure>
10. Enter the configured ‘logical File’.\
    \
    :information\_source: Selecting the ‘include column headers’ option will add these values to the top of the output when generated.<br>
11. Selecting ‘Execute’ will create the output file.<br>

    <figure><img src="https://2225346189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvPS6W3uRgFnSjekeJfYT%2Fuploads%2FiSTIzcQDcvwKobUAB5Cx%2Fimage.png?alt=media&amp;token=974d0dba-167d-4fe3-a567-b544bf1b2258" alt=""><figcaption></figcaption></figure>
12. Navigate to the destination folder.&#x20;
13. view the document.
14. The configured in the output file fields should now be displayed as content.
