‎2012 Jan 20 7:48 AM
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
‎2012 Jan 20 8:33 AM
Hi Girdhari!
Just use titlebar name in variable
DATA gv_title TYPE char20.
gv_title = '100'.
SET TITLEBAR gv_title.
Regards,
--
Przemysław
‎2012 Jan 20 8:41 AM
‎2012 Jan 20 8:33 AM
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.
‎2012 Jan 20 8:35 AM
in the PBO module of each screen use the code
SET TITLEBAR 'xxx'.
‎2012 Jan 20 10:50 AM
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 ScreenIn 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
‎2012 Jan 20 11:35 AM
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
‎2012 Jan 20 12:27 PM