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

set Titlebar

Former Member
0 Likes
2,500

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.....

7 REPLIES 7
Read only

Former Member
0 Likes
1,233

Hi Harshu

go thru above thread

Thanks,

Syf

Read only

Former Member
0 Likes
1,233

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

Read only

Former Member
0 Likes
1,233

Hi Harshu,

You can go with the event.

TOP-OF-PAGE DURING LINE-SELECTION

for displaying title in the Secondary list.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
1,233

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.

Read only

Former Member
0 Likes
1,233

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.

Read only

Former Member
0 Likes
1,233

Hi,

Use the event Top-of-page during line selection.

This event is used to trigger the top-of page in the interactive list.

Read only

Former Member
0 Likes
1,233

*it may be at the TOP OF PAGE.

*set layout for ALV

layout-window_titlebar = string variable .

regards.

Manish