Hi Muhammad,
In global 'initialization' event or anywhere, write your logic:
CASE wa_itab-bukrs.
WHEN '1000'.
textName = 'ABC'.
WHEN '2000'.
textName = 'DEF'.
..ENDCASE.
Then in text node, pass '&textName&' to text name. refer this threadhttp://scn.sap.com/thread/1621551
regards,
Archer