Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Download sap script logo

Former Member
0 Likes
1,358

Hi,

We can upload a graphic logo through SE78 but can we directly download any logo on our PC?

Please let me know if any one is having any idea.

thanks,

shilpa k

Hi,

We can upload a graphic logo through SE78 but can we directly download any logo on our PC?

Please let me know if any one is having any idea.

thanks,

shilpa k

2 REPLIES 2
Read only

Former Member
0 Likes
820

Hi,

refer this,

REPORT Z_DUMMY_ATG_3.

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 = 'ZPRUEBA'

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 = GRAPHIC_SIZE

FILENAME = 'C:\FirmaAsociado.bmp'

FILETYPE = 'BIN'

TABLES

DATA_TAB = GRAPHIC_TABLE

EXCEPTIONS

INVALID_FILESIZE = 1

INVALID_TABLE_WIDTH = 2

INVALID_TYPE = 3

NO_BATCH = 4

UNKNOWN_ERROR = 5

GUI_REFUSE_FILETRANSFER = 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.

Change ZPRUEBA with the image you want to download and C:\FirmaAsociado.bmp with your own path and file

regards,

K.Tharani

Read only

Former Member
0 Likes
820

hi,

Command in your Sapscript

/: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E

These are the steps to be followed for uploading graphics in R/3 system

1. First save the file as BMP

2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and

make it Zoom as 100% and save as *.TIFF

3. Open SE38 and execute program RSTXLDMC

4. Give your TIFF file path name

5. Select Bcol (for Color)

6. TEXT ID will be ZHEX-MACRO-*.

7. Inplace of * write your own logo name (ZCOMPANYLOGO)

8. Execute the program

9. Now Goto SE71 create your ZFORM

10. Create logo window

11. Goto text element of logo window

1. Goto SE71 Change the mode to GRAPHICAL

2. Choose the Graph Tabstrips

3. Now type in some name for the LOGO WINDOW

4. Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP

5. The code will be written automatically. You just need to drag and drop wherever you want

the graphics to be.

/: INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN