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

Importing graphics using SE78

Former Member
0 Likes
11,437

I am trying to import a few graphics using SE78 but I get an error:

" Bitmap file: No color table available (True Color, Bitcount 16)

Message no. TD875"

Does anybody have any ideas? The files are color bitmap images and reside on my local drive.

Regards,

Davis

1 ACCEPTED SOLUTION
Read only

Former Member
6,629

You need to fix the resolution and color deep....Also, you need to restrict your BMP file to less colors....

Greetings,

Blag.

7 REPLIES 7
Read only

Former Member
6,630

You need to fix the resolution and color deep....Also, you need to restrict your BMP file to less colors....

Greetings,

Blag.

Read only

Former Member
6,629

Hi Davis,

The error you are getting is because of this code in standard SAP.

case bmp_bitcount.
    when 1.
      otf_bminfo-bmtype = c_itf_hex_bcol. "2 color
      otf_bminfo-is_monochrome = c_false.
    when 4.
      otf_bminfo-bmtype = c_itf_hex_bcol. "16 color
      otf_bminfo-is_monochrome = c_false.
    when 8.
      otf_bminfo-bmtype = c_itf_hex_bcol. "256 color
      otf_bminfo-is_monochrome = c_false.
    when 24.
      otf_bminfo-bmtype = c_itf_hex_bcol. "16 million colors
      otf_bminfo-is_monochrome = c_false.
    when others.  "16 or 32 bit true color
      message e875 with bmp_bitcount raising bmperr_no_colortable.
  endcase.

So my guess is that your image is a 16 or 32 bit true colour and maybe SAP doesnt take in those kind. Try to open your image in paint brush and try to do some manipulations and try again. Maybe it will solve your problem.

Thanks

Aneesh.

Read only

0 Likes
6,629

Aneesh, how do you find the code that relates to an error message? I'm sure that knowledge will come in handy!

Regards,

Davis

Read only

0 Likes
6,629

Hi Davis,

SE91-->Type in the message number that you get and use where used list. You can find the standard code from where you are getting that error.

Regards

Aneesh.

Read only

0 Likes
6,629

Thanks a lot for that info! I wish there was a class that taught these useful transactions.

To update, I changed the file from .bmp to .tif and it uploaded without a problem.

Thanks for the info!

Regards,

Davis

Read only

0 Likes
6,629

Davis,

I never knew that we can use that transaction in that way, but one of my colleague was debugging his program and used it. Maybe we will all know by just observing and sharing.

Regards

Aneesh.

Read only

0 Likes
6,629

Yes, that is the beauty of SDN. You get to learn all of the tricks from people all over the world. I cant' think of a better learning tool for any industry.

Regards,

Davis