cancel
Showing results for 
Search instead for 
Did you mean: 

image

ravi_kumar221
Participant
0 Kudos

please    help me i m not geting image on button i m sending u button

CALL METHOD cl_wd_button=>new_button

                               EXPORTING

*                                activate_access_key    =

*                                bind_design            =

*                                bind_enabled           =

*                                bind_image_first       =

*                                bind_image_source      =

*                                bind_text              =

*                                bind_text_direction    =

*                                bind_tooltip           =

*                                bind_visible           =

*                                bind_width             =

*                                context_menu_behaviour = E_CONTEXT_MENU_BEHAVIOUR-INHERIT

*                                context_menu_id        =

*                                design                 = E_DESIGN-STANDARD

                                 enabled                = 'X'

*                                explanation            =

*                                hotkey                 = E_HOTKEY-NONE

                                 id                     = 'B1'

                                 image_first            = 'X'

                                 image_source           =    'C:\Documents and Settings\ravi.kumar\My Documents\Downloads\1.jpeg'

                                 on_action              = 'asda'

                                 text                   = 'kk'

*                                text_direction         = E_TEXT_DIRECTION-INHERIT

*                                tooltip                =

*                                view                   =

*                                visible                = E_VISIBLE-VISIBLE

*                                width                  =

                               receiving

                                 control                =      zz   .

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ravi,

Whenever you are refering an image or a file in webdynpro, it should be in the mime objects. You have a given a path of your system. How the server would be able to find that image in the client end.

Regards

Fareez

chengalarayulu
Active Contributor
0 Kudos

Hi Ravi,

Image should be existed in MIME objects of your current component.

ravi_kumar221
Participant
0 Kudos

what is MIME objects

chengalarayulu
Active Contributor
0 Kudos

Gothrough the below reference and there PDF is maintained instead of IMAGE. you can use image in place of PDF.

http://wiki.sdn.sap.com/wiki/display/WDJava/Using+MIME+Object+%28pdf%29+in+web+dynpro

Former Member
0 Kudos

Hi,

MIME object can be any kind like images,external apps, icons,html pages, documents etc

which can be imported into SAP.You can find MIME repository in ABAP workbench.

To use MIME in Webdynpro component, Just right click on your component->create->MIME object->import. Then you can add your image from your PC and give some name to this object.

Now you will find this MIME object under a folder within your component,Just give this name in your image source. it should work

Former Member