cancel
Showing results for 
Search instead for 
Did you mean: 

how to use the text elements/symbols

Former Member
0 Kudos

I don't want to hard code the text within my source code as this is not the best practice in webdynpro.. can any one just let me know how to pass the texts through the text elements/symbol.

thanks n regards

Anoop

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hello

thanx for ur input ..it was helpful.

regards

Anoop

Former Member
0 Kudos

Have an assistance class for your component, inheriting cl_wd_component_assistance. Go to your assistance class and define your text elements, from se24. Now you will have the interface metod if_wd_component_assistance~get_text in the class. Use that method to retrieve your text elements by passing the ID. Anywhere in your code when you want a text, simply call

wd_assist->if_wd_component_assistance~get_text( 'ID' ) passing the appropriate id. You can get these texts and bind them to your context, or use them for displaying messgaes etc.

Hope this helps.

Regards

Nithya