Sasku
Sasku

Reputation: 516

Display Custom Icon in SAP GUI

is it possible to create a custom icon and display it in SAP GUI classic dynpro? I would need to display it in the toolbar of my application - if possible.

Upvotes: 2

Views: 2018

Answers (2)

Legxis
Legxis

Reputation: 916

If you are asking about making your OWN icon, not using one of SAP's, then I don't think that is possible, because icons are a part of your SAPGui installation. Even if you uploaded an icon successfully (SE78 or RSTXLDMC), it would only work for you, and only work until you update or reinstall your SAPGui. Hence you wouldn't be able to create a custom icon for all users.

Upvotes: 2

mrdeadsven
mrdeadsven

Reputation: 774

I think this is possible with the transaction ICON. Afterwards I think it should be possible to add it with the method add_function:

data:  l_icon       type string.



l_icon = icon_green_light.     "<--  Icon from type-pool.

try.
  lr_functions->add_function(
    name     = 'MYFUNCTION'
    icon     = l_icon
    text     = l_text
    tooltip  = l_text
    position = if_salv_c_function_position=>right_of_salv_functions ).
  catch cx_salv_existing cx_salv_wrong_call.
endtry.

Upvotes: 1

Related Questions