Application Development 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: 

SAPscript - Dynamic Logo alignment

thinh_tran15
Explorer
0 Kudos

Hi guys,

I have a requirement to implement a SAPscript form where different logos can be displayed based on a number of factors. I have uploaded the logos I will be using as bitmaps to SE78 and so far I have a PERFORM in my SAPscript used to bring back the logo name from a custom table to populate the below statement.

BITMAP &LOGO& OBJECT GRAPHICS ID BMAP TYPE BCOL

The problem I have is that the logos are of different widths and sizes and I need the logo to be displayed in the upper right hand corner of the form. This means XPOS will not work and as far as I am aware there is no right align command I can use.

Do you guys know a way around this?

Thanks,

Thinh

4 REPLIES 4

alessandroieva
Active Participant
0 Kudos

Hi,

create n windows how many are the logo (with different sizes) and condition these windows.

let me know,

AI

0 Kudos

Thanks for the reply.

At the moment there are 3 different logos being used but there could be more in future. Doing it this way would mean additional windows will have to be created in the SAPscript each time a logo is added right?. Also, where would you put the perform to ensure that we get the logo name before processing the logic for each logo window?

0 Kudos

Hi,

yes, this indicate that you need create more windows how many are the logos.

if you not want to create many windows, you could create only one windows with size of the logo more big and condition the call of the logo.

if .....

BITMAP &LOGO1& OBJECT GRAPHICS ID BMAP TYPE BCOL

elseif......

BITMAP &LOGO2& OBJECT GRAPHICS ID BMAP TYPE BCOL

elseif......

BITMAP &LOGO3& OBJECT GRAPHICS ID BMAP TYPE BCOL

endif.


if other logos will be managed in the future, however, we must change the SAPscript.


AI

Former Member
0 Kudos

Why you don't upload the logos in one size? Even if they have different shapes you can add some space to the logos so all have the same shape.

If there will be more logos in the future you could use SO10 Text Elements, so its easier to update them.