‎2007 Sep 05 3:19 PM
Hello,
I'm trying to create an Image (of a material) but I cant use GUI_UPLOAD in the background even if i use C13Z_FILE_UPLOAD_BINARY to place the file from c:\drive to the app server.
However, I can use OPEN DATASET to open the file and READ it into an internal table within my program (looks to be in hex format) my question is then what do I do with data in the internal table to create the image - is there some FM that I can pass the internal table to for image creation - needs to be done in background - I can do this in foreground. The end result is that image will be printed on a SAPscript.
Thanks
Conor.
‎2007 Sep 05 3:36 PM
You ask a lot of questions...
(1) Upload a file using GUI_Upload
(2) Converting the picture
(3) Prining using SAP-Script
But to start with:
Printing out an image using SAP-Script, you need to have a BMP (Bitmap) image with specific colour depth. This image has to be located in the BDS before you start your SAP-Script. Furthermore, since you do upload the data from an external source, you more or less have to convert the image into the BMP-Format. Please check, if you have the IGS (Internet Graphic Server) up and running in your environment. This Server will provide you with a class called: CL_IGS_IMAGE_CONVERTER which you can use for convertion.
Have fun with that task....
Christian
‎2007 Sep 05 3:25 PM
Check my weblog <a href="/people/alvaro.tejadagalindo/blog/2007/04/15/tasting-the-mix-of-php-and-sap--volume-12 the mix of PHP and SAP - Volume 12</a>
You need to use FM <b>SAPSCRIPT_CONVERT_BITMAP_BDS</b>
Greetings,
Blag.
‎2007 Sep 07 2:41 PM
Hi Alvaro,
Dont think SAPSCRIPT_CONVERT_BITMAP_BDS will work as I have already used this successfully (in forground), I got a reply from the form to use PERFORM import_bitmap_bds IN PROGRAM saplstxbitmaps and SAPSCRIPT_CONVERT_BITMAP_BDS is used in this form - it works fine providing the program is running in foreground but not in backgrounfdi.e. when a function module is submitted in UPDATE TASK
Dont think can be done
Thanks Anaway.
Conor.
‎2007 Sep 05 3:26 PM
Hi Conor,
GUI_UPLOAD can not be used for Background processing as it is for foreground processing only. For background processing OPEN DATASET should be used.
Ashvender
‎2007 Sep 05 3:36 PM
You ask a lot of questions...
(1) Upload a file using GUI_Upload
(2) Converting the picture
(3) Prining using SAP-Script
But to start with:
Printing out an image using SAP-Script, you need to have a BMP (Bitmap) image with specific colour depth. This image has to be located in the BDS before you start your SAP-Script. Furthermore, since you do upload the data from an external source, you more or less have to convert the image into the BMP-Format. Please check, if you have the IGS (Internet Graphic Server) up and running in your environment. This Server will provide you with a class called: CL_IGS_IMAGE_CONVERTER which you can use for convertion.
Have fun with that task....
Christian
‎2007 Sep 05 4:26 PM
My apologies Christian, I didnt explain proberly
(1) I can use GUI_UPLOAD to upload the image but this can not be used in background, it is only for foreground processing
(2) I have already upload the image using and .tif file type, so no need to convert
(3) I have already printed the image (as a graphic) via SAPscript
and all of this can be done dynamically (in foreground) but if I want to do the same (i.e. create an image in SAP from a file on the app server and print it, but from a job that runs in background) I can only use OPEN DATASET
So my question was what do I do with the data when I have it in an internal table with in my Z program so that it create's the image in SAP and I can proceed with my SAPscript to print it.
Sorry for the confusion,
Regards,
Conor.
‎2012 Sep 14 5:46 PM