# 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="/files/cD3cjynMsKzmZAR0RjGh" alt=""><figcaption></figcaption></figure>
7. double-click the 'Flat File Schema' option on the left hand menu.

<div align="left"><figure><img src="/files/qcRhRezqUMxjFR4aEJ4d" 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="/files/h3lb75QRWmQ45MSi3TXQ" 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="/files/KXrRqL6r3psfKbno2Oln" 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="/files/FnLqGOpMlXWki2LdiX8E" 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="/files/O5V32zFxjkdFAHDRNjum" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.theconfigteam.com/codingcontrol/configuration/aps-application-configuration/sap-data-configuration/data-communication-methods/flat-file-output.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
