10-01-2008 1:10 PM
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
10-01-2008 3:07 PM
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
10-01-2008 1:12 PM
>But the problem starts when I change the object name. As >soon as I do that the picture nolonger appears.
which object you chanaged..?
10-01-2008 1:18 PM
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.
10-01-2008 1:13 PM
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.
10-01-2008 1:19 PM
10-01-2008 1:22 PM
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.
10-01-2008 2:31 PM
I uploaded my picture using the transaction code OAER, but still the picture does not appear.
10-01-2008 3:07 PM
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
10-02-2008 9:38 AM
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.