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: 

Insert an image in a long text

Former Member
0 Kudos
1,870

Hi

CA51 can be used to print out a production routing, together with its header long text. I'm trying to put an image into the long text in transaction CA02
with the sentence below. BTW the image 'DRAWING 1' is already stored on server with SE78.

But then in the printout from CA51 I can only see this sentence output as a text rather than the image itself

Any idea please?

milk

1 ACCEPTED SOLUTION

former_member220028
Active Contributor
0 Kudos
411

Hi,

just because theres a longtext does not mean you can display a graphic there... i dont even think that variables and includes gets encoded. i dont know the Transaction but looking at your screenshot shows me that you try to print an abap list with no container for graphics.

(where is your longtext on the screenshot?)

Longtexts are, most likly everywhere, to leave notes.

The longtext itself is saved as SO10-Text. just a guess of mine  - its saved as Type "ST" (Standardtext)  that means it will never be displayed as a graphic.

regards

Stefan Seeburger

13 REPLIES 13

former_member201275
Active Contributor
0 Kudos
411

Your command should look something like this:

BITMAP Z_PIC OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100 XPOS 50 CH

0 Kudos
411

No Glen it's still the same result - no picture but only text

0 Kudos
411

Hi

perhaps there's a problem with the sizing?

Try to insert your graphic in a normal standard text created by SO10, and check it's printed correctly

Max

0 Kudos
411

Thank you max. Yes I can see my picture in SO10 but it's again showed as the text when I insert the standard text into long text...

0 Kudos
411

Hi

Have you tried to resize the windows with image?

Max

0 Kudos
411

Hi max I have tried to reduce the size and upload it again. No change...

0 Kudos
411

Resizing windows now but it's always showing the sentence rather than a picture

0 Kudos
411

Hi,

Is it Sapscript or Smartform?

cheers

Janis

0 Kudos
411

Hello Janis, that's a question mark for me as it's neither sapscript or smartforms. It's just like printing this screen below.

0 Kudos
411

Hi

So you're trying to print a an abap list?

Max

0 Kudos
411

Hi,

Sorry, but bitmap output it will never work in ABAP list output, which is what CA51 does, as far as I can see...

I have always considered the SAP "solution" for encoding pictures as a "text" a confusing "atrocity".

cheers

Janis

Former Member
0 Kudos
411

Hi,

after resizing window and after reducing image you could use this statement:

BITMAP 'ZDEMO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 300 (this value is possible to change)

Size Image must be <= windows' size.

Regards

Ivan

former_member220028
Active Contributor
0 Kudos
412

Hi,

just because theres a longtext does not mean you can display a graphic there... i dont even think that variables and includes gets encoded. i dont know the Transaction but looking at your screenshot shows me that you try to print an abap list with no container for graphics.

(where is your longtext on the screenshot?)

Longtexts are, most likly everywhere, to leave notes.

The longtext itself is saved as SO10-Text. just a guess of mine  - its saved as Type "ST" (Standardtext)  that means it will never be displayed as a graphic.

regards

Stefan Seeburger