on 08-05-2010 11:57 AM
Hi Experts ..!!
Plz can anyone guide me how do i programatically upload a image file and show that image directly in a smartform,
PFB the code to upload the images from your PC to SE78.
DATA: gi_filename type rlgrap-filename,
gi_name type stxbitmaps-tdname,
gi_object type stxbitmaps-tdobject,
gi_id type stxbitmaps-tdid,
gi_btype type stxbitmaps-tdbtype,
gi_resident type stxbitmaps-resident,
gi_autoheight type stxbitmaps-autoheight,
gi_bmcomp type stxbitmaps-bmcomp,
gi_resolution type stxbitmaps-resolution,
l_extension type rlgrap-filename,
l_docid type stxbitmaps-docid.
gi_filename = 'C:\ENJOY.BMP'.
gi_name = 'ZTEST_SIGN'.
gi_object = 'GRAPHICS'.
gi_id = 'BMAP'.
gi_btype = 'BCOL'. "If u want black and white pass BMON
gi_resident = ' '.
gi_autoheight = 'X'.
gi_bmcomp = 'X'.
l_extension = 'BMP'.
perform import_bitmap_bds IN program SAPLSTXBITMAPS using gi_filename
gi_name
gi_object
gi_id
gi_btype
l_extension
' '
gi_resident
gi_autoheight
gi_bmcomp
changing l_docid
gi_resolution.
Thanks,
Rathish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks mate, this helped me too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, don't use RSTXLDMC. Why folks are still using TIFF and standard texts I don't know. But the other assertions are correct, for a smartforms print, the image has to be in the system at runtime. However, you can easily load and destroy the image at runtime, and in between those points, render the image (BMP format) via smartform dynamically if you want. I've discussed it in other topics - the code you need for the load and destroy is available in the SE78 transaction and calling an image using a variable name in a smartform is straightforward. It's a strange approach though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
but the requirment is that it has to be uploaded programaticaly ( not using se78 )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One way is to import picture using se78 transaction into sap ,then using graphic object into smartform.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.