01-03-2015 1:50 PM
I am working on a smartforms that required an image stored in Master Master (MM03).
I looked for examples, which uses CALL FUNCTION 'SAPSCRIPT_GET_GRAPHIC_BDS' to get the image from STXBITMAPS
But the table that seems to be holding the attachment I want is SRGBTBREL not STXBITMAPS.
Please advice on how can I get the attached image for smartforms.
Pawadee K.
01-04-2015 5:23 PM
Image stored in MM03 (material master)? Are you referring to attachment? It is GoS.
01-05-2015 1:23 AM
Yes the file is from Attachment List
Can you give a bit of a guideline how I can display GoS attachment as graphic in Smartforms?
And is SRGBTBREL the table I need to get the attachment?
01-05-2015 4:51 AM
If you want to stick with smartforms, it sounds a bit tricky.
You will have to kind of create an SE78 image for each material, create a name for it dynamically each time you want to print and print it as an image. This is cumbersome because they will not maintain an image each time they create a material, so, you will have to read this attachment, and create one in background if you didn't find the image. I am not sure even after all these work-arounds, it will work.
A far better and simpler solution would be:
to switch to adobe for printouts.
You can get further information here:
01-06-2015 1:14 PM
I think creating SE78 image for each material will be too much work as you said.
I am trying to understand the article you attach but I don't have Form Designer on my system just yet, so couldn't try it out. But I am thinking is it then possible to use the functions mentioned in the article as program line in Smartforms?
But the article itself is still very confusing for me as newbie, I am still confuse about the parameters to be passed to the function like how it is connected to the material code.
01-06-2015 1:36 PM
The only way to not be a newbie is learning subjects you don't understand.
Start searching for GoS and Adobe Forms.
All the best.