on 11-10-2009 11:27 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved by myself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved by myself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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` ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.