09-09-2009 12:00 PM
Hi All,
Please let me know how to upload a logo/Picture into SAP so that I can display it on Custom Screen using custom control.
Once the picture is available in SAP then I can display it on screen. But my problem is I am not able to register any picture in MIME. Please help me out.
I already tried SE78 and OAER transaction but these are not working. Even if it is exported to SAP through SE78 or OAER its not getting displayed. Something else we need to do? what is that ?
The objects which are in WWWPARAMS database table can be displayed easily on screen but I want to display my logo.
Edited by: Rizwan Ahmad Siddiqui on Sep 9, 2009 1:01 PM
09-10-2009 12:29 PM
Hi ,
May be this would be helpfull to you.
Go to Tcode SMW0 --> Select Binary File --> Execute --> Then provide the package name, Object name --> Execute --> Now go to settings and check whether the type(extension e.g. '.jpg') of objet you want to upload is present there or not under maintain option . If not then create the extension type there and save it. --> go to settings again and then choose assignment --> select the extension type you have just maintained and then provide the path to the object to be uploaded. > now select the create button on the application tool bar and provide any name that must be a z or y object.> save it in a package and come out of the screen pressing back --> now provide the object you have entered while running the tcode SMWO for the 1st time --> press execute --> you will find the z object is created. now you can use this MIME object where you want ..
Regards.
S.Mahanta.
09-09-2009 7:13 PM
What is wrong with your MIME repository upload? Did you upload the logo to the MIME repository using SMW0? Assuming you did, then display the logo as follows (assuming you have created the screen elements and PBO code for the custom container and picture control):
* Get the url to the picture
CALL FUNCTION 'DP_PUBLISH_WWW_URL'
EXPORTING
OBJID = 'Z_MY_LOGO_NAME'
LIFETIME = CNDP_LIFETIME_TRANSACTION
IMPORTING
URL = GV_URL
EXCEPTIONS
OTHERS = 1.
* Load the picture by using the url generated by the data provider
IF SY-SUBRC EQ 0.
CALL METHOD CTRL_PICTURE->LOAD_PICTURE_FROM_URL_ASYNC
EXPORTING
URL = GV_URL.
ENDIF.
09-10-2009 10:42 AM
09-10-2009 12:29 PM
Hi ,
May be this would be helpfull to you.
Go to Tcode SMW0 --> Select Binary File --> Execute --> Then provide the package name, Object name --> Execute --> Now go to settings and check whether the type(extension e.g. '.jpg') of objet you want to upload is present there or not under maintain option . If not then create the extension type there and save it. --> go to settings again and then choose assignment --> select the extension type you have just maintained and then provide the path to the object to be uploaded. > now select the create button on the application tool bar and provide any name that must be a z or y object.> save it in a package and come out of the screen pressing back --> now provide the object you have entered while running the tcode SMWO for the 1st time --> press execute --> you will find the z object is created. now you can use this MIME object where you want ..
Regards.
S.Mahanta.