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

SAPScript BCOL vs BMON

hannes-mostert
Explorer
0 Likes
4,676

Hi,

Does anyone perhaps know the answer to this and have possible solution to my problem.

I have various SAPScript forms using the same black & white BMP image. There is a text box in the layout which prints a generated reference number on top of this image. However, this number is not visible in print previews and can only be seen on the actual printout or in a PDF when emailed.

I've uploaded a new BMP colour image and I can no longer get this reference number displayed, e.g. in PDF's for email correspondence. At this stage the image type (BMON vs BCOL) is the ONLY variable that is causing the non-overlay display issue.


How do I go about overlaying text on an image in SAPscript colour image?

1. I don't have the option of going smartforms at this stage.

2. I've tried changing the window type from CONST to GRAPH and VAR and it has no impact.

3. I've tried some 'coding' suggested in my searches, but none made any difference.

8 REPLIES 8
Read only

Sandra_Rossi
Active Contributor
3,502

I can't reproduce your issue (image GRAPHICS BMAP BCOL, 256 colors, window VAR /: BITMAP ..., print preview shows the text floating over both b&w and color images). Did you try to save your BMP image in 256 colors, upload it and try again? (historically 24-bit color images render badly). If it persists, you should open a ticket at SAP support.

Read only

Florian
SAP Champion
SAP Champion
3,502

Maybe the problem is not your image.

HAve you tried to put the image on a blank testform, where the window is a lot bigger than the image. I also do not have any issues with that kind of request, when I try it in my system (AS ABAP 7.52)

Read only

hannes-mostert
Explorer
3,502

I agree, 24-bit color is terrible. I've used the exact same BMP 256 color image and imported as black and white. If I use the B&W image, the text box with numbers comes through, but when the color image is used, it does not show.blackwhitesample.jpgcoloursample.jpg

Is this perhaps because the system is not unicode? ERP6.0.

Read only

0 Likes
3,502

Now that you shared the result, you may also attach your image so that we can try...

Read only

hannes-mostert
Explorer
3,502

My file is BMP file which are not one of the permitted file formats for uploading on here unfortunately.
It is 614x159 pixels and with Color Bit depth of 8 (i.e. 8 bit - 256 colours).
When you import any BMP file as 'black and white' SAP drastically reduces & converts it to a terrible looking image - unless it was true black and white prior to import. So, even grayscale images end up looking bad.
From what I can derive, because of black & white - SAP can overlap text and a B&W image. If the image is in colour, that under/overlaying text does not print. Seems like SAP has no ability to 'merge' colour image with text in SAPScript.
I'm very curious how you do not have the same problem and what the reason for that is.

Maybe I should also add that this 'problem' presents itself in the print previews (not a big issue for me) and PDF generated output (email). I have one hard copy color printout on paper that suggests it works, but we are moving away from paper altogether.

Read only

0 Likes
3,502

Are you saying that you loaded a color image as BMON (B&W), why?

For me, it worked with BCOL, the text is written over the colored image, as you wish.

PS: please post comments, not answers (cf little text by SAP, at the right of the answer box: "Before answering You should only submit an answer when you are proposing a solution to the poster's problem...")

Read only

0 Likes
3,502

So, the answer is this:
1. Previewing documents in SAP prior to printout does not show the overlay if image is in color.
2. Printing actual paper document from within SAP, color image does show the overlay.
3. Producing PDF document (such as for emailing a document) the color overlay does not not work.

Nothing I can do about this for now.

Read only

0 Likes
3,502

Maybe you can add your BMP color file in some external free-access website like imgur?