cancel
Showing results for 
Search instead for 
Did you mean: 

how can we maintain tetxs in webdynpro insted of hardcode

Former Member
0 Kudos

Hi Experts,

i am new for this webdynpro abap.how can we maintain tetxs in webdynpro insted of hardcode like text symbols in abap.we are using freaquently texts in message manager.in best practice we should not maintain hard code.

guys suggests me.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member184578
Active Contributor
0 Kudos

Hi.,

For Labels You can Use OTR ( Online Text Repository ) Goto View ., In Menu bar Goto Online Text Repository and Add text ., then For Label Text press F4 then u can assign the Created Text.,

For Messages; Instead of HardCoding., Create a Class and Use that Class in Your WDA As Assistance Class ., In the Class Go to Texts and Add the text elements same as Text elements in se38. , You can use those text elements by providing message id in WDA ., using

WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( '001' ).  " here 001 is the text element id which u created in class

hope this helps u.,

Thanks & Regards,

Kiran

sahai
Contributor
0 Kudos

Hi Kiran,

I have enhanced a standard component controller and now i need to raise an error message using text-symbol.

Kindly inform if we can enhance the standard class for having custom text symbols.

Thanks.

former_member182598
Active Contributor
0 Kudos
Former Member
0 Kudos

you can consider using assistance class or use OTR .