cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform - Attach Image

Former Member
0 Kudos

Hi @ll,

I`ve the requirement to attach an uploaded image to a smartform. (the image data is store in a z-table as xsting) The smartform should be generated and the corresponding images should be printed or shown in the preview.

Any ideas?

Best regards,

Flo

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on Dec 15, 2009 9:25 AM

Accepted Solutions (1)

Accepted Solutions (1)

brad_bohn
Active Contributor
0 Kudos

Yes, it can be done though it's a strange requirement. Why not use the embedded graphics storage capabilities of SAP instead of storing the binary data in a Z-table?

You would build the graphic name with a variable in your smartform and call it dynamically.

You can format bitmap data at runtime with SAPSCRIPT_CONVERT_BITMAP_BDS and then create or update the data in STXBITMAPS using the methods of object CL_BDS_DOCUMENT_SET. If, for some reason, you don't desire to keep the graphic loaded, you can also destroy it with a method from the class as well.

Former Member
0 Kudos

The perfect way would be --> attach a document with object services to a delivery and on printing the invoice, the documents are printed too.

But I don`t know how to integrate the documents into smartform.

Best regards,

Flo

Answers (0)