# 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.

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="/files/xfGXJs05tRV5dxiKxbVr" 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="/files/HpkolyqIPyQlLmvf32Ig" 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="/files/lx5jXPvd5qvd7qsI5rNj" 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="/files/7ivvYx58gBXTbr7gdDN0" 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="/files/xUu3uPSTpc7fxWm8ziQF" alt=""><figcaption><p>Viewing the initial values for a crated screen template</p></figcaption></figure>


---

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