cancel
Showing results for 
Search instead for 
Did you mean: 

Languague depended logo within sapscript?

0 Kudos

Hi experts,

Is it possible to insert a language independed logo within sapscript?

I only manage to import 1 logo as a graf. [screenshot|http://imageshack.us/photo/my-images/39/capturezz.png/]

I tried to change the generated code within to something like

if sy-language='EN'

BITMAP 'ZLOGO_EN' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 200

else

BITMAP 'ZLOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 200

but i cant change the code that was generated when i import the graph.

Can someone help me out if this is possible within sapscript or not?

regards,

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Yes it's possible, you can have 2 solutions:

A) To manage several versions for every language: the sapscript can have different versions for every language, in this way you need only to set which logo has to be printed, I mean you don't need any check:

--- Version for English language

BITMAP 'ZLOGO_EN' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 200

--- Version for other language

BITMAP 'ZLOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 200

The version loaded while printing depends on which language is transfered to fm OPEN_FORM (if any language is indicated, it'll be used the master version)

here the problem can be in the maintenance, because every time you need to do a modification, you have to repeat it for all active versions.

If you want to manage one version only, you need to a check, but I don't think sy-language is the right variable, but you should use SY-LANGU:

IF &SY-LANGU& = 'EN'

BITMAP 'ZLOGO_EN' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 200

ELSE.

BITMAP 'ZLOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 200

ENDIF.

Anyway I don't think is a good solution to change the logo in order to logon language

Max

0 Kudos

yes i know, but thats for testing purpose :d normally it should be another variable, but i know langu is the easyest way to test it.

Where can i put this check? should i create a window for it instead of a graph?

because if i make a graph i can't change the code that is generated.

Former Member
0 Kudos

You need to place that code in the window where the logo is called (I believe GRAPH3)

Max

Answers (2)

Answers (2)

0 Kudos

oh, thats a problem 😕 . any idea how to go around this?

mithun_shetty4
Contributor
0 Kudos

It was possible in the earlier version where we could store the graphics as Text which is language dependent. but its obsolete now.