Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

another image question - using Regular ABAP not web dynpro

Following Otto's awesome instructions:

1) create image field in your form (not only image!! it must be the image field)
2) load your picture in the backend
3) convert the image into XSTRING
4) create the XSTRING variable in the interface/ context, fill it with the picture data
5) bind the image field to this variable
6) enjoy
Regards, Otto

We can easily get an image to appear on a form produced from Web Dynpro ABAP using an XML interface.

However, we are having an issue doing the same using a regular ABAP report and Data Dictionary interface.

We added a new field to our DDIC structure called signature TYPE RAWSTRING (we can't define a new domain with type X since SAP doesn't allow that, but they are both Variable Length Byte Strings).

We use the exact same code to upload the same image from UNIX, we see the byte string in our variable, but no image appears on our form (using the ImageField object).

We then created a Global variable with type Xstring in our interface. We pass our binary image to the function module. Through debugging, I see that an error occurs because the gloabl variable states it's max characters is only 255.

any ideas?

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question