H experts,
I declared an Assistance-class and added a text (text ID 001, value "MARKE" (system language is german).
No I add an button on my dynpro to switch Button (English/German). When I click on the English button, I want to change the text from a TextView from MARKE to BRAND.
I tried it this way:
SET LANGUAGE 'E'.
DATA: l_text TYPE string.
l_text = wd_assist->if_wd_component_assistance~get_text( '001' ).
wd_context->set_attribute( name = 'BEZ_MARKE'
value = l_text ).
Nothing happens - always get the german text. And yes, sure, I translated the text with GOTO -> Translation
What am I doing wrong? Is there a parameter for the get_text-method?
regards
Michael