cancel
Showing results for 
Search instead for 
Did you mean: 

Text Symbols in ABAP WebDynpro

Former Member
0 Kudos

Hi All.

I am completely new to this ABAP WebDynpro Coding, i have a requirement, when i am cliking on field i need to display pop up window with some text, it's working fine, the below one is the code for displaying Pop Up:

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 = 'W_TEXT_POPUP_SPEDIS'

title = 'ABAP WebDynpro'

  • close_in_any_case = abap_true

message_display_mode = if_wd_window=>co_msg_display_mode_selected

  • close_button = abap_true

button_kind = if_wd_window=>co_buttons_ok

message_type = if_wd_window=>co_msg_type_none

default_button = if_wd_window=>co_button_ok

).

lo_window->open( ).

in the above code, there is one line called title = 'ABAP WebDynpro' that is Pop Up window name, actually i hard coded that one, but my client wants that title name through Text Symbols, i found some thing but it is not working, i really don't know how to do this one, if any one know with step by step solution please help me.

Really i appreciate.

Thanks in Advance.

Thanks and Regards,

Abhiram.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Refer this tutorial....................

Easy to understand the concepts of message handling using assistance class.....

http://theabap.blogspot.in/2012/02/message-handling-assistance-step-1-go.html

Former Member
0 Kudos

Solved by myself

Former Member
0 Kudos

Hii abhiram

can please let me know how you did it

as we got the similar requirement

regards

Jaipal

Former Member
0 Kudos

Solved by myself

Former Member
0 Kudos

hi Abhiram ,

go to this help ful SAP online content :

http://help.sap.com/saphelp_NW70EHP1/helpdata/en/43/1f6442a3d9e72ce10000000a1550b0/content.htm

& check for Working with Text Symbols in Web Dynpro ABAP

with the instance attribute WD_ASSIST, you can access text symbols of the assistance class from within each controller of your component. When the method is called, the three-digit ID of the text symbol is passed to the KEY parameter.


data: data: my_text type string.
  my_text = WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( KEY = '001' ).

Text symbols in the assistance class can be maintained from any controller. To do this, choose Goto ->Text Symbols.

rgds,

amit

Former Member
0 Kudos

hi,

when you are in the component and in that view, then click on menu->GOTO->TEXT symbols and maintain there.

You can access them through this coding

data lv_str type string.

lv_str = wd_assist->if_wd_component_assistance~get_text( `010` ).

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Text symbols have to be created and maintained in an assistance class that gets linked to your WD Component. You can then call an API of the assistance class to access the text symbols in your coding. The logic is something like this:

data text type string.
   text = WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( KEY = 'M01' ).

You can read more about the process here:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/1f6442a3d9e72ce10000000a1550b0/frameset.htm

Former Member
0 Kudos

Hi Thomas,

Nice to see your response, this is my Assistance Class : ZCL_xx_xxx_xx_xxx_xxxx. Now my question is how should i call this class into my WebDynpro Component, i was trying through WebDynpro wizard, but i didn't....please provide solution for this one.

Thanks in Advance.

Thanks and Regards,

Abhiram.

Former Member
0 Kudos

hi,

1.Double click on your WD component.

2. There you have add the Assistance Class name.

3. Now you can access this Assistance class Attributes/methods using wd_Assist.

Former Member
0 Kudos

Thanks Saurav.

I will let you know if i need any thing.

Thanks and Regards,

Abhiram.