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

sap script logo with if nd else condition

Former Member
0 Likes
636

hi,

I want different logo in sap script with followin condition:

IF &T001-SPRAS& = 'E' (logo in english)

ELSE &T001-SPRAS& = 'F' (logo in french)

Thanks in Advance.

hi,

I want different logo in sap script with followin condition:

IF &T001-SPRAS& = 'E' (logo in english)

ELSE &T001-SPRAS& = 'F' (logo in french)

Thanks in Advance.

3 REPLIES 3
Read only

h_senden2
Active Contributor
0 Likes
590

this is possible in the script :

/: IF &T001-SPRAS& = 'E'

/: INCLUDE <logo in english>

/: ELSE

/: INCLUDE <logo in french>

/: ENDIF

global workarea T001 should be defined and filled.

Both logo's should be in the system as standard texts.

regards,

Hans

Read only

Former Member
0 Likes
590

hi,

what does it mean can u plz tel me.

"global workarea T001 should be defined and filled."

i have tried like this:

IF &T001-SPRAS& = 'E'

INCLUDE BITMAP 'ZPFRFI_043_LOGO_EN' OBJECT GRAPHICS ID BMAP TYPE BCOL

ELSE &T001-SPRAS& = 'F'

INCLUDE BITMAP 'ZPFRFI_043_LOGO_FR' OBJECT GRAPHICS ID BMAP TYPE BCOL

ENDIF

Read only

Former Member
0 Likes
590

Upload language specific logos in SE78 and then in the sapscript layout use if ..elseif...endif statement.

IF &T001-SPRAS& = 'E'

Include logo for english

ELSEif &T001-SPRAS& = 'F'

Include logo for french

endif