cancel
Showing results for 
Search instead for 
Did you mean: 

logo and bold character in message

Former Member
0 Kudos

Hi,

I am generating a popup on click of a button.

I am inserting a message by concatenating two variables as shown below.

CONCATENATE 'Material' wa_register-vbak-vbeln

'is created on' lv_date into lv_info.

1.When this is message is displayed in popup, I want the value in the field (wa_register-vbak-vbeln) to be bold.

How to proceed?

2. I also must display a logo below the message in popup.

Please provide a solution.

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

One way is that,

u can design a view with logo and formatted text to be displayed and make it dispalyed as pop up window.

To insert logo in the view,u have to import the image to MIME repository by right clicking on the web dynpro component ans select create->MIME object->import.

Now in the view ,place the Image UI element and bind the source property to the attribute of type string containing value as ,say,image1.JPG (ur image name in MIME rep.)

To get the text as bold,use Text View UI element an set the dseign property as emphasized.

To make the view as pop up,

create a window for the pop up and embed the view within it

add the code as,

*Pop up window declaration

DATA lo_window_manager TYPE REF TO if_wd_window_manager.

DATA lo_api_component TYPE REF TO if_wd_component.

DATA lo_window TYPE REF TO if_wd_window.

lo_api_component = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

lo_window = lo_window_manager->create_window(

window_name = '<window name>'

title = lv_title

button_kind = if_wd_window=>co_buttons_ok

message_display_mode =

if_wd_window=>co_msg_display_mode_selected

message_type =

if_wd_window=>co_msg_type_none ).

lo_window->open( ).

Thanks,

Divya.S