‎2009 Apr 24 6:04 AM
Hi,
I have prepared a dialog program in which I have 4 screens. For them I have created the GUI titles.But the title is not shown on the screen when I am running the program.Please suggest the solution.
‎2009 Apr 24 6:08 AM
Hi,
1. Check if the GUI title i active
2. did you give statement SET TITLEBAR 'XXX'. In all the screens.
3. Check the name of GUI title and one mentioned in code.
‎2009 Apr 24 6:11 AM
Hi Sashi,
Please declare it as shown
-
process before output.
module status_0010.
module status_0010 output.
set pf-status 'STATUS_0010'.
set titlebar 'STATUS_0010'.
endmodule. " STATUS_0010 OUTPUT
double click on set titlebar 'STATUS_0010' and enter whatever you want to display.
Regards,
SUvendu
‎2009 Apr 24 6:13 AM
Hi Shashi,
Make sure that you have done the following for your module pool programming,
In PBO...just write
1) For Title:
SET TITLEBAR 'ZTITLE'.
2) Double click on 'ZTITLE'....
3) Give whatever title u want
4) save : activate...and check
If u still encounter some problems revert
Thanks and Regards
Srikanth.P
‎2009 Apr 24 6:15 AM
Hi,
use SET TITLEBAR 'XXX' and double click on XXX then provide your required title in that input field.
For Gui status after providing staus name and all Function keys must activate it.
‎2009 Apr 24 6:15 AM
Hi,
use SET TITLEBAR 'XXX' and double click on XXX then provide your required title in that input field.
For Gui status after providing staus name and all Function keys must activate it.
‎2009 Apr 24 6:18 AM
kindly open the GUI Status by double clicking it from the code.
You may see text present on all the three Aplication toolbar, function keys, menu bar
Make these text description blank and you will be able to see the Title next time you activate and run the code
‎2009 Apr 24 6:53 AM
I have done all that you have suggested.But it is still not working.Please suggest if I need to do something extra.
‎2009 Apr 24 7:13 AM
Hi Shashi,
This is my Sample Dialog Program,,,
GUI = 'Update Material Data'.
GUI1 = 'Update Material1 Data'.
GUI2 = 'Update Material2 Data'.
You can use all the same GUI or you can use different like this.
&----
*& Module STATUS_0100 OUTPUT
&----
text
----
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'MAIN'.
SET TITLEBAR 'GUI'.
ENDMODULE. " STATUS_0100 OUTPUT
&----
*& Module STATUS_0200 OUTPUT
&----
text
----
MODULE STATUS_0200 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'GUI1'.
ZMY20CUSTI-AEDAT = SY-DATUM.
ZMY20CUSTI-ABHOZ = SY-UZEIT.
MOVE-CORRESPONDING WA_ZMY20CUSTI TO ST_ZMY20CUSTI.
CLEAR : WA_ZMY20CUSTI .
ENDMODULE. " STATUS_0200 OUTPUT
&----
*& Module STATUS_0300 OUTPUT
&----
text
----
MODULE STATUS_0300 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'GUI2'.
ENDMODULE. " STATUS_0300 OUTPUT
Thanks & regards,
Dileep .C
‎2009 Apr 24 7:27 AM
Hi,
For this in your each screen'sPBO,
you have to give statement SET TITLEBAR 'ZTEST'
and then double click it,it will take you to SE41 ,give
your required title there and activate.
In whichever screen you want titlebar then you
have to set it like this in each screen's PBO Event.
Hope it helps
Regards
Mansi
‎2009 Apr 24 7:38 AM
Hi
Make sure that u have given your GUI TITLE NAME in capital letter's in PBO
ie SET TITLEBAR 'XXX' .
‎2009 Apr 24 8:08 AM
Hi Sashi,
You can set title by using set titlebar command.
here there two syntaxes are there they are
SET TITLEBAR title OF PROGRAM prog WITH text1....test9.
if sy-subrc = 0.
then your title is succesfully set
endif.
Thanks & Regards,
Sateesh.
‎2009 Apr 24 1:23 PM
Hi Sashi,
i Guess U have nr actvated the Titles..
Pls Follow The Steps--
Let U hav 3Screens.
SCR1 - 9000, " where 9000 is the screen no for first screen
SCR2 - 9001, " 9001 is the screen no of 2nd screen...lik dis 9003....
SCR3 - 9002,
for TITLE of 9000 screen
In the PBO module Of Screen-9000
PROCESS BEFORE OUTPUT.
MODULE STATUS_9000. " Uncomment this Line first,
1)Now Double Click on " STATUS_9000". it will ask you to Create the the object with d message
"PBO module STATUS_9000 does not exist."
2) now click yes to create the Object.
which will open a pop-up window to select the INCLUDE PROGRAM for PBO status of 9000 screen
choose the PBO include program from the list...& here The confusion happens, which one is the PBO include..
look for dis EX- U WILL GET THIS KIND OF LIST IN POP UP WINDOW.
MZ_RELATED_DATA_LISTBOXO01 !! New include
SAPMZ_RELATED_DATA_LISTBOX !! Main program
MZ_RELATED_DATA_LISTBOXI01 !! Include MZ_RELATED_DATA_LISTBOXI01
MZ_RELATED_DATA_LISTBOXO01 !! Include MZ_RELATED_DATA_LISTBOXO01
MZ_RELATED_DATA_LISTBOXTOP !! Include MZ_RELATED_DATA_LISTBOXTOP
look the 4th line..for PBO module- the ending shd be like o01,
and for PAI module - i01
so select the 4th one.
3) now it will take u to the include program like below code..
*&---------------------------------------------------------------------*
*& Module STATUS_9000 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module STATUS_9000 output.
SET PF-STATUS 'xxxxx'.
SET TITLEBAR 'xxxx'.
endmodule. " STATUS_9000 OUTPUT.
uncomment SET TITLEBAR line.
4) Deletee those XXXX value , write something wht u want as title code.
ex- SET TITLEBAR ' mytitle'
5) Now doubleclick on 'mytitle', and create it.
now the create screen will come..
Here PROGRAMNAME and TITLE CODE will be populated before.
Just enter in the TITLE Field . ex- TITLE - THIS IS MY FIRST TITLE
click enter.
Now Activate the current screen. Then activate the whole program and execute the program.
the output will be-- title of screen 9000 will be
THIS IS MY FIRST TITLE.
do the sem for rest of the screen.
Hope u will see all ur Titles...If still ny queries , revert back.
Regards
Pirate (!)
‎2009 Apr 24 3:14 PM
Shashi,
Any question related to Dialog Programming should be posted under UI Programming.
People who are experts in UI programming would be helping the people who posts there.
Hope you got it.
Also, please post your code so that others can verify what mistake have you done.
Thanks,
Babu Kilari