‎2008 Mar 05 12:36 PM
Hi Gurus,
I have to display window title which is coming from T100 table. Based on the entered message number from t100 table i need to display the respective messagetext from respective messageno from T100 table.Please let me know how to display window title dynamically from table T100.
Points will be rewarded
Thanks,
Kishor
‎2008 Mar 06 7:11 AM
Hi,
Try to use WITH option in SET TITLEBAR statement.It will be helpful to you.
Reward if useful
L.Velu
‎2008 Mar 06 7:13 AM
hi,
In T100, there are mesage id and message numbers.
You have to give the message number with message id to pick the messafe text.
Select text from t100 where ARBGB = Message-id
and msgnr = message number.
You can fetch the MESSAGE TEXT for message id and for
message number given.
Reward points if useful
‎2008 Mar 06 8:41 AM
Hi,
My problem is i am not able to display the text which i got from T100 table. means i am unable to use the syntax set titlebar "001' at where that particular message text related to respective messagenumber should display in title bar dynamically
Please help me....
‎2008 Mar 06 9:49 PM
Easy
set your title text in your gui ( via SE41) to &. (an ampersand - without the full stop if this doesn't display on your screen properly).
Now read your T100 text into a variable say z_text.
Then set tiltlebar xxx with z-text.
The xxx is the number of your titlebar defined in your gui status (SE41).
Cheers
jimbo
‎2008 Mar 07 1:35 AM
Rather than reading from T001, you can just use the "message" verb to get the content and variable substitution done for you... so this may help:
report zlocal_jc_sdn_titlebar1.
data:
g_title type sy-ucomm.
parameter:
p_gday type sy-datum.
* Events:
initialization.
perform initialization.
at selection-screen output.
set titlebar 'MY_TITLE' with g_title. "MY_TITLE just contains &
*&---------------------------------------------------------------------*
*& Form initialization
*&---------------------------------------------------------------------*
form initialization.
message e398(00) with 'Hello' sy-uname 'today is' sy-datum
into g_title.
endform. "initialization
Jonathan