0% found this document useful (1 vote)
1K views2 pages

Graphics Download or Export SE78

This document contains an ABAP report that downloads a graphic file from the SAP system. It retrieves the graphic from the BDS using its object name, ID and type. It then converts the graphic to BMP format and downloads it to the specified desktop path. Any errors during the download are handled by displaying messages.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
1K views2 pages

Graphics Download or Export SE78

This document contains an ABAP report that downloads a graphic file from the SAP system. It retrieves the graphic from the BDS using its object name, ID and type. It then converts the graphic to BMP format and downloads it to the specified desktop path. Any errors during the download are handled by displaying messages.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

*&---------------------------------------------------------------------*

*& Report ZGRAPHICS_DOWNLOAD


*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZGRAPHICS_DOWNLOAD.
DATA : L_BYTECOUNT TYPE I,
L_TDBTYPE LIKE STXBITMAPS-TDBTYPE,
L_CONTENT TYPE STANDARD TABLE OF BAPICONTEN INITIAL SIZE 0.
DATA: GRAPHIC_SIZE TYPE I.
DATA: BEGIN OF GRAPHIC_TABLE OCCURS 0,
LINE(255) TYPE X,
END OF GRAPHIC_TABLE.
CALL FUNCTION 'SAPSCRIPT_GET_GRAPHIC_BDS'
EXPORTING
I_OBJECT
= 'GRAPHICS'
I_NAME
= 'WELLBEING_LOGO_PO'
I_ID
= 'BMAP'
I_BTYPE
= 'BCOL'
IMPORTING
E_BYTECOUNT
= L_BYTECOUNT
TABLES
CONTENT
= L_CONTENT
EXCEPTIONS
NOT_FOUND
= 1
BDS_GET_FAILED = 2
BDS_NO_CONTENT = 3
OTHERS
= 4.
CALL FUNCTION 'SAPSCRIPT_CONVERT_BITMAP'
EXPORTING
OLD_FORMAT
= 'BDS'
NEW_FORMAT
= 'BMP'
BITMAP_FILE_BYTECOUNT_IN = L_BYTECOUNT
IMPORTING
BITMAP_FILE_BYTECOUNT
= GRAPHIC_SIZE
TABLES
BDS_BITMAP_FILE
= L_CONTENT
BITMAP_FILE
= GRAPHIC_TABLE
EXCEPTIONS
OTHERS
= 1.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE
FILENAME
ELLBEING_LOGO_PO.bmp'
FILETYPE
TABLES
DATA_TAB
EXCEPTIONS
INVALID_FILESIZE
INVALID_TABLE_WIDTH

= GRAPHIC_SIZE
= '\\COLO-CTXPROFILE\UsersProfile\rmalviya\Desktop\W
= 'BIN'
= GRAPHIC_TABLE
= 1
= 2

INVALID_TYPE
NO_BATCH
UNKNOWN_ERROR
GUI_REFUSE_FILETRANSFER

=
=
=
=

3
4
5
6.

IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy