‎2014 Nov 07 9:41 AM
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
‎2014 Nov 07 2:12 PM
Hi,
create n windows how many are the logo (with different sizes) and condition these windows.
let me know,
AI
‎2014 Nov 07 2:23 PM
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?
‎2014 Nov 07 2:48 PM
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
‎2014 Dec 09 1:27 PM
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.