2011 Jun 27 2:16 PM
Hi experts,
I want to make the title of screen dynamic like:-
--> i have an initial screen in which program takes some input files..and having a screen title as "INPUT FILE" with a read button.
--> after clicking on read button it reads that file and shows on screen that exel file...here this screen title remains the same as "INPUT FILE" but i want it as "READ FILE". now this screen again having a button as write file.
-- > Now after clicking on this write button this file gets write in to SAP system here i want my screen title as"WRITTEN FILE".
Please help me and tell me the way to do it.
Regards,
Depque.
2011 Jun 27 2:26 PM
Hi,
You nee dto change the PF status title based on your conditions.
Assign teh desired titles.
2011 Jun 27 2:30 PM
2011 Jun 27 3:51 PM
Hi.
Ypu should use a flag as soon as someone clic on the button, in order to keep a value.
Then in PBO Module you should ask for the value of this flag
if w_flag = abap_true ('X')
set tittlebar number01.
else.
set titlebar number02.
endif.
Please let us to know if this could help you.
Regards,
Gabriela
2011 Jun 27 5:14 PM
I guess you are using 3 separate screens.
If so, then just put & in the title bar while creating it instead of hardcoding it as INPUT FILE.
& is a placeholder for dynamic title texts.
Then set it in program like below,
DATA: text(50) TYPE c. " Declare it as global in TOP include
"PBO of first screen
text = 'INPUT FILE'.
SET TITLEBAR 'ZTEST' WITH text.
"PBO of second screen
text = 'READ FILE'.
SET TITLEBAR 'ZTEST' WITH text.
"PBO of third screen
text = 'WRITTEN FILE'.
SET TITLEBAR 'ZTEST' WITH text.
2011 Jun 28 7:23 AM
Hi,
If i have understood your requirement properly. You want to change the screen title after you perform the particular action(s).
When you define the title, you can define it like Current Process & .
In the PBO when you write the statement, SET TITLEBAR 'ABC' , add the WITH addition and pass the text to it.
e.g SET TITLEBAR 'ABC' with 'My Process'.
This should work.
Regards,
Sagar