# Displaying images from a material master

{% embed url="<https://www.youtube.com/watch?index=21&list=PL74nuGSklShnLgW4UxtzhL9a1rK5DXrdp&v=Kp64dWv_i9E>" %}

It is possible to add an image into any input screen in PreBilt that has the material in the data with a suitable field added to the AMD of that screen. The image is taken from the last changed image in the attachment list of the material master. The image types supported are JPEG and PNG.

<figure><img src="/files/ZfcAmqinoDWo1Wsku2HI" alt=""><figcaption></figcaption></figure>

The field can be called anything suitable so long as it is unique on the screen. The image display is activated by the field class */TCTM/WM\_APP\_FIELD\_MAT\_IMAGE*.

Please note the following additional points:

* The “Label” can be set as a fixed value in the usual way with text or can be left blank in which case a dynamic label of the SAP material number and the material description is displayed on the app screen.
* The image can be positioned on the screen in the same was as any field using the “Line” and “Position”.
* The image can be sized using the “Length”.
* The “Input Type” is not required and should be left blank.
* If the screen does not have the value of MARA-MATNR filled with data then an alternative field that contains the material number can be used in the “Initial Value” field. This is the case in the Stock Movements app (catalogue 510) and as can be seen in the example, LQUA-MATNR has been used as the initial value.


---

# 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-for-im-wm-strm/app-master-data/screen-framework/features/displaying-images-from-a-material-master.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.
