‎2008 Aug 19 7:11 AM
I have created a program for a normal interactive list.
Initially I have set the title of the program through program attributes.
The title is being displayed in the selection screen and also the basic list.
Now when I go to a secondary list i want to change the title.
For this I have used 'SET TITLEBAR title.' in the AT USER-COMMAND event.
where title is a string variable containing the title.
When i check the syntax, it doesnt give any error, but when i activate and execute the program and switch to the secondary list the title bar for basic list in being displayed (set in prog attributes) in the secondary list also.
Can anybody help in this regard.....
‎2008 Aug 19 7:18 AM
‎2008 Aug 19 7:20 AM
Hi,
As it is normal intercative list I would like to suggest you to use Event---
TOP-OF-PAGE DURING LINE-SELECTION. for Displaying Secondary list tilte.
And for Basic list you can Use TOP-OF-PAGE event.
For Details-Check this sample code-
http://www.sapbrainsonline.com/sapinfo/tutorial.php?artid=436
You also check this link-
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba2eb35c111d1829f0000e829fbfe/content.htm
‎2008 Aug 19 7:28 AM
Hi Harshu,
You can go with the event.
TOP-OF-PAGE DURING LINE-SELECTION
for displaying title in the Secondary list.
Regards,
Chandra Sekhar
‎2008 Aug 19 7:29 AM
Hi Harshu,
put a condition or case statement before writing 'set title bar' in PBO module.
for example: check the system variable sy-listindex.
Case sy-lsind.
when '0'.
SET TITLEBAR '100'. " title to be displayed in basic list
when '1'.
SET TITLEBAR '101'. " title to be displayed in first secondary list
endcase.
‎2008 Aug 19 7:33 AM
Hi,
Under the TOP-OF-PAGE DURING LINE-SELECTION event,
by using list index system variable sy-lsind u need to set ur list for the detailed lists.
‎2008 Aug 19 7:35 AM
Hi,
Use the event Top-of-page during line selection.
This event is used to trigger the top-of page in the interactive list.
‎2008 Aug 19 7:50 AM
*it may be at the TOP OF PAGE.
*set layout for ALV
layout-window_titlebar = string variable .
regards.
Manish