cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a .tif image file and download in system by abap program.

sayan_banerjee
Explorer
0 Kudos
212

Hello Experts,

How to create a .tif image(uncompressed) file and download in system(local PC) by ABAP program. Please provide any Function module or class or anything sort of, to generate .tif file and download in system.

For download, we could use GUI_DOWNLOAD FM, but for creation, please provide some solution.

Thanks in advance,

Sayan

raymond_giuseppi
Active Contributor
What should be the 'source' of the image?

Accepted Solutions (0)

Answers (2)

Answers (2)

sayan_banerjee
Explorer
0 Kudos

Hello Raymond,

Thank you for your response. The source could be image file already stored in Sap system.

Thank you,

Sayan

raymond_giuseppi
Active Contributor
0 Kudos
Do not use Answer to respond to a command or answer. Answer is intended to be used to propose a solution to the initial question. Use Comment instead.
raymond_giuseppi
Active Contributor
0 Kudos

Some example

  • Screen shot with CL_GUI_FRONTEND_SERVICES=>GET_SCREENSHOT passing format as image/tiff
  • For an imahe stored in SAP (SE78) look at methods such as GET_BDS_GRAPHIC_AS_BMP of class CL_SSF_XSF_UTILITIES or FM such as SAPSCRIPT_GET_GRAPHIC_BDS and SAPSCRIPT_CONVERT_BITMAP
sayan_banerjee
Explorer
0 Kudos

Hello Raymond,

Thank you for your response.

Actually we have tried those 2 FMs and that converted into .bmp format and downloaded using GUI_DOWNLOAD with exten as .tif, hoping that it would convert into .tif. So when used that file in Se78 for upload, gave error, so posted here for solutions. I believe we could try that screenshot method after that and let us check.

Thank you,

Sayan

raymond_giuseppi
Active Contributor
0 Kudos

SAPSCRIPT_CONVERT_BITMAP seems to allow a BMP to ITF conversion?

CASE OLD_FORMAT.
" ...
  WHEN C_BM_FORMAT_BMP. "o.k.
    CASE NEW_FORMAT.
*     ************** BMP -> ITF *****************
      WHEN C_BM_FORMAT_ITF. "o.k.
sayan_banerjee
Explorer
0 Kudos
Hello Raymond, We have tried screen shot method but that will take the current window sceen shot. We want to take image from SAP system(stored already in SE78) and want to download in .tif format by the program in local desktop. Thank you.