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

sapscripts dynamic logo

Former Member
1,192

hi all,

Requirement: i need to create a logo depending upon the company code.

I have created a function module and stored logo in a variable called v_logo in my driver program.

the problem is that i am unable to include the variable v_logo in sapscript

/: BITMAP V_LOGO OBJECT GRAPHICS ID BMAP TYPE BCOL.

do i need to create a graphic window nor a normal window to include the above command.

i have tried using a graphic window but it does not allow me to use the above command.

so let me know how to insert the above command in sapscripts?

whether to include in a graphic window nor in a normal window?

thanxs in advance

4 REPLIES 4
Read only

Former Member
0 Likes
788

Hi Hari,

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

or

In 4.6x :-

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

Please note that in 4.6c onwards, you can also used Windows Bitmap file ( .BMP).

<b>Based on the company code</b> you can send the logo name into a Variable from your Driver program and you can just use it here in the following statement.

/: BITMAP V_LOGO OBJECT GRAPHICS ID BMAP TYPE BCOL

make an if-statement for burks. You have to insert

the logos as stadart-text.

do this in script

IF &BUKRS& = '0001'

INCLUDE Z00001 OBJECT TEXT ID ST

ENDIF

IF &BUKRS& = '0002'

INCLUDE Z00002 OBJECT TEXT ID ST

ENDIF

Refer this thread:

Reward points if this Helps.

Manish

Message was edited by:

Manish Kumar

Read only

Former Member
0 Likes
788

hi,

i have developed my own logic and i just need to know how to insert my variable v_logo which holds the company logo into sapscripts.

pls let me know how to insert it in sapscripts since when i tried inserting

/: BITMAP V_LOGO OBJECT GRAPHICS ID BMAP TYPE BCOL.

the above command and when i start debugging in sapscripts it throws me an error.

include graphics & v_logo, bmapm bm is not available.

all my company logos are saved in graphics and everything is there and i need no bring them through se 78.

pls tell me how to insert the command in graphic window nor in a plain window.

Read only

0 Likes
788

Hi,

can you pleas explaion in detail: "logos are saved in graphics"

Did you use SAP transaction for this and if, which one?

Regards,

Clemens

P.S.: Or just follow the steps explained above (SE78...)

Read only

Former Member
0 Likes
788

Hi Hari,

You have to load the logo in SAP as std txt or graphic.

If you have loaded the logo as std text:

Use this command

/: INCLUDE <LOGO> TEXT OBJECT TEXT ID ST

If you have loaded the logo as graphic:

Use this command.

/: BITMAP <LOGO> OBJECT GRAPHICS ID BMAP TYPE BCOL

Hope it helps u.

Regards,

Kumar