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

Moving an image in SAPScript

Former Member
0 Likes
3,216

Hi all,

I've included an Bitmap image(company logo) in a window underneath a SAPScript. However, I'll need to maintain two different company logos within a window, in which company logo is displayed based on the company code. (e.g. LogoA is displayed upon company code 2003 - 2010; LogoB is displayed upon company code 2011 - 2020).

I've controlled the above using a CASE statement as below:

CASE &ITAB_INV-BUKRS&

WHEN '2003'

BITMAP 'ZLOGOA' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 300

.

.

.

WHEN '2020'

BITMAP 'ZLOGOB' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 300

ENDCASE

However, if the company code range from 2003 - 2010, it will display at X-axis 20cm Y-axis 8cm, else, if from 2011 - 2020, logo will be appeared at X-axis 30cm Y-axis 10cm.

Did some of you come across this issue?

Many thanks.

Patrick

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,433

Hi Patrick,

u can very well position ur logo using the XPOS & YPOS command along with the logo command.

eg

/:BITMAP 'ZLOGOA' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 300 XPOS '2' CM YPOS '1' CM.

hope it resolves ur issue..

Hi all,

I've included an Bitmap image(company logo) in a window underneath a SAPScript. However, I'll need to maintain two different company logos within a window, in which company logo is displayed based on the company code. (e.g. LogoA is displayed upon company code 2003 - 2010; LogoB is displayed upon company code 2011 - 2020).

I've controlled the above using a CASE statement as below:

CASE &ITAB_INV-BUKRS&

WHEN '2003'

BITMAP 'ZLOGOA' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 300

.

.

.

WHEN '2020'

BITMAP 'ZLOGOB' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 300

ENDCASE

However, if the company code range from 2003 - 2010, it will display at X-axis 20cm Y-axis 8cm, else, if from 2011 - 2020, logo will be appeared at X-axis 30cm Y-axis 10cm.

Did some of you come across this issue?

Many thanks.

Patrick

2 REPLIES 2
Read only

Former Member
0 Likes
1,433

u put the same dpi for diffrent diffrent logo...

dpi depend upon the intencity of picture. if intencity of picture is high than it seems bigger for sam,e dpi.

u have to put diffrent diffrent dpi for diffrent-2 image for ur requirment...

Read only

Former Member
0 Likes
1,434

Hi Patrick,

u can very well position ur logo using the XPOS & YPOS command along with the logo command.

eg

/:BITMAP 'ZLOGOA' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 300 XPOS '2' CM YPOS '1' CM.

hope it resolves ur issue..