on 12-01-2011 2:30 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oh, thats a problem 😕 . any idea how to go around this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It was possible in the earlier version where we could store the graphics as Text which is language dependent. but its obsolete now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.