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

Is it possible to use same sap script for different comp code with difflogo

Former Member
0 Likes
374

I have 3 company codes. I need to use same sap script to all but each company code has different logo. I dnt want to go for 3 different sap script. Is it possible to change in coding

like this

If comp code = '100'

print ' logo1'

If comp code = '200'

print ' logo2'

If comp code = '300'

print ' logo3'

in same sapscript.If yes how ?

2 REPLIES 2
Read only

Former Member
0 Likes
340

Yes you can do it. In the logo window put your conditions

IF bukrs = '100'.

Include for first logo

ELSEIF bukrs = '200'.

Include for second logo

ESLEIF bukrs = 300.

Include for third logo.

ENDIF.

Read only

Former Member
0 Likes
340

Hi,

Yes you can do it.

In Sap Script use:-

/: If Comp code='100'

INCLUDE ZHEX-LOGO100 OBJECT TEXT ID ST LANGUAGE EN

/:Elseif comp code = '200'

INCLUDE ZHEX-LOGO200 OBJECT TEXT ID ST LANGUAGE EN

/:Else

INCLUDE ZHEX-LOGO300 OBJECT TEXT ID ST

LANGUAGE EN

/:Endif

I hope this helps,

Regards

Raju Chitale