Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Displaying Window Title Dynamically

Former Member
0 Likes
715

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

5 REPLIES 5
Read only

Former Member
0 Likes
596

Hi,

Try to use WITH option in SET TITLEBAR statement.It will be helpful to you.

Reward if useful

L.Velu

Read only

Former Member
0 Likes
596

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

Read only

Former Member
0 Likes
596

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....

Read only

0 Likes
596

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

Read only

Former Member
0 Likes
596

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