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

Title Text In screen

former_member16553
Active Participant
0 Likes
1,061

Dear Expert

I want to set Two different text for titlebar for two differnt screen, generally we can do this by SET TITLE

in both screen , I want to cahnge the TITLE BAR TEXT dynamicaaly for differnet screen. Can you please tell me how can i do this.

With Thanks & Regards

Girdhari

7 REPLIES 7
Read only

Former Member
0 Likes
1,023

Hi Girdhari!

Just use titlebar name in variable


DATA gv_title TYPE char20.
gv_title = '100'.
SET TITLEBAR gv_title.

Regards,

--

Przemysław

Read only

0 Likes
1,023

Thanks

Read only

Kiran_Valluru
Active Contributor
0 Likes
1,023

Hi,

You can create two titles Title1 and Title2 and based on screen you can change the title using SET Title stmt,

if sy-dynnr = '0100'

set titlebar 'TITLE1'

elseif sy-dynnr = '0200'

SEt titlebar 'TITLE2'

endif.

or put title text in a variable and change dynamically.

Normally you can write these two separately in corresponding PBO of the screens.

Hope this helps u.,

Thanks & Regards,

Kiran.

Read only

Former Member
0 Likes
1,023

in the PBO module of each screen use the code

SET TITLEBAR 'xxx'.

Read only

Former Member
0 Likes
1,023

Hi Girdhari,

Try the following:

Instead of using two separate titles, you can use one and dynalically change this. for example :

If your first Screen 001 and second Second is 002. And if the text to be displayed is 'Welcome to Frist Screen' and Welcome to Second Screen'.

For this.

Create the title as

Welcome to &1 Screen

In the PBO Module of the screen.

IF sy-dynnr EQ '001'.
lv_text = 'First'.
ELSE.
lv_text = 'Second'.
ENDIF.

SET TITLEBAR test WITH lv_text.

Hope this help you.

Thanks and Regards,

Rinzy Deena Mathews

Read only

0 Likes
1,023

Hi

Thank u much very much for guieding me , Can u plzz clarify me what is &1 In welcome to &1 screen.

Thanks & Regards

Girdhari

Read only

0 Likes
1,023

Time to read the help files, thread locked.

Thomas