> 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/prebilt-ewm/configuration-guide/initial-generation-of-ewm-its-screen-templates.md).

# Initial generation of EWM ITS screen templates

{% embed url="<https://www.youtube.com/watch?v=x-q1UwWOUVI>" %}

PreBilt for EWM provides transaction */TCTM/EWMITSTEMPGEN* to quickly generate ITS templates for all screens in a Display Profile.

{% hint style="info" %}
**Note**

Re-generation of ITS screen templates is only required after changes have been made to the screen configuration on the backend.
{% endhint %}

The ‘Service’, ‘Theme’, ‘Display Profile’ and ‘Generating Style’ must be indicated in the selection screen. Please note the same ‘Service’ and ‘Generating Style’ are shared for voice and RF in PreBilt for EWM.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-29410c0f21908af7938faabda31c19ac9d46cb3f%2FEWM-its_screen_generation_transaction.png?alt=media" alt=""><figcaption><p>ITS Screen Generation Transaction</p></figcaption></figure>

{% hint style="info" %}
**Prerequisite**

ITS service `ZTCTM_EWM` and Generating Style ZITSTCTM should already be created, as per the PreBilt Installation Guide.
{% endhint %}

By default, the templates will be published automatically once created, but this can be turned off if required.

Upon execution, the program will select all the screens configured for the chosen Display Profile. It will then check the ITS Service and theme for an existing template.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-8ffe807411730b38cd80d2c36ead4734ca85d749%2FEWM-suggested_screens_template_generation.png?alt=media" alt=""><figcaption><p>Suggested screens for template generation</p></figcaption></figure>

* If the icon is amber, the template does not exist yet.
* If the icon is green, a template already exists and the status and date of the page's publication can be reviewed.

The rows being created or re-created should be selected before clicking **Create Templates**.

If the templates are new, or not already assigned to a package or transport, SAP will ask for these inputs.

The screen number can be acquired from the client when running in developer mode. If no PreBilt template exists, the screen will not load (and result in an *ST22* dump), then the necessary transaction/step can be discovered by passing the screen program + screen number into the standard screen manager.

{% hint style="info" %}
**Example**

In the following example screenshot, screen 0051 is displayed for screen program `/SCWM/SAPLRF_INQUIRY`:
{% endhint %}

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-b9695e77791af1af290616a981d5a36a4d6dd3ac%2Fimage%20(44).png?alt=media" alt="" width="230"><figcaption><p>Identifying the screen number for a step</p></figcaption></figure>

{% hint style="info" %}
Using */TCTM/EWMITSTEMPGEN*, create templates for screen 0051.
{% endhint %}

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-f01a86e85fea0d9340667af073503017a5200443%2FEWM-triggering_template_creation.png?alt=media" alt=""><figcaption><p>Triggering template creation for a specific screen</p></figcaption></figure>

{% hint style="info" %}
Go to transaction */TCTM/EWM\_CFG* to see the newly created entries:
{% endhint %}

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-898d57e232af004193acb5e6fafe88b51f8c0c82%2Fimage%20(47).png?alt=media" alt=""><figcaption><p>Viewing the initial values for a crated screen template</p></figcaption></figure>
