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: 

displaying pictures

Former Member
0 Kudos

Hi experts,

I am trying to add a picture to a screen. When I view the program "SAP_PICTURE_DEMO" and I test it the pictures do appear, when I copy the coding and paste it some where else and create my own screen it still works. But the problem starts when I change the object name. As soon as I do that the picture nolonger appears.

Please assist

1 ACCEPTED SOLUTION

former_member212653
Active Contributor
0 Kudos

Use SMW0 transaction upload the pictures. Check out the following link.

http://abap-explorer.blogspot.com/2008/10/how-to-display-picture-in-screen.html

8 REPLIES 8

former_member188685
Active Contributor
0 Kudos

>But the problem starts when I change the object name. As >soon as I do that the picture nolonger appears.

which object you chanaged..?

0 Kudos

CALL FUNCTION 'DP_PUBLISH_WWW_URL'
  EXPORTING
    OBJID                       = 'HTMLCNTL_TESTHTM2_SAP_AG'
    LIFETIME                    = cndp_lifetime_transaction
  IMPORTING
    URL                         = url
  EXCEPTIONS
    OTHERS                      = 1.

whereby I change the objid name in this case I changed it from ''HTMLCNTL_TESTHTM2_SAP_AG'' to the name of the picture I wanted to display. The picture can be viewed in transaction se78.

Former Member
0 Kudos

Hi,

Check how you uploaded the picture. Because there are different ways, 1 adding using SE78 and other as business objects.

Thanks & Regards,

Navneeth K.

0 Kudos

I uploaded my picture using se78.

0 Kudos

Upload the image using OAER transaction. and the same you can refer inside of your program.Then it will be visible.

Check in the forum for more details how to upload using OAER.

use keyword OAER for search.

0 Kudos

I uploaded my picture using the transaction code OAER, but still the picture does not appear.

former_member212653
Active Contributor
0 Kudos

Use SMW0 transaction upload the pictures. Check out the following link.

http://abap-explorer.blogspot.com/2008/10/how-to-display-picture-in-screen.html

0 Kudos

Thanx a lot for helping me thus far.

In transaction SMW0, when I search for the images used in the program they are all there. When I use any othe picture from there it does appear but the problem starts when I try to upload my picture. I get the following message


No MIME type assigned to object C:/Documents and settings/..........

What do I need to do.