Displaying images from a material master
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.