Application Development 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: 

Regarding Changing Program Title in Run Time

Former Member
0 Kudos

Hi All,

I have issue related to changing title of program at run depending upon diffrent conditions.

Actual issue over here is:

I am calling another Transaction [DEVELOPED] and making it in display mode. There i want to change the title to

<b>Display Sales Details</b> Which is available in that transaction as <b>Change Sales Details</b>.

How can i change that syatem title.

I tried to update title by - when i am calling from my program <b>SY-TITLE</b> = <b>Display Sales Details</b> but still it is showing as <b>Change Sales Details</b>.

What would be the obvious solution for it!

Thanks in advance.

Thanks & Regards,

Prasad.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You will need to use the statement.... SET TITLEBAR '0100'.

You can have many different titlebars and you can call what ever one you want at runtime.

If condition_a = 'X'.
set titlebar '0100_A'.
elseif condition_b = 'X'.
set titlebar '0100_B'.
endif.

REgards,

RIch Heilman

7 REPLIES 7

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You will need to use the statement.... SET TITLEBAR '0100'.

You can have many different titlebars and you can call what ever one you want at runtime.

If condition_a = 'X'.
set titlebar '0100_A'.
elseif condition_b = 'X'.
set titlebar '0100_B'.
endif.

REgards,

RIch Heilman

Former Member
0 Kudos

Hi,

Actually the person who prepared CALLED Transaction put the title in TItle Bar in & as

<b> SET TITLEBAR '155'.</b>

Can anybody suggest what would be the solution is.

Thanks,

Prasad.

0 Kudos

hi prasad u can use SET TITLEBAR for reporting also.

Cheers,

Abdul

abdul_hakim
Active Contributor
0 Kudos

use <b>SET TITLEBAR</b> option.

Cheers,

Abdul

Former Member
0 Kudos

HI,

data: v_Str(40) type c.

set titlebar 'ABC' with v_str.

Double click on <b>ABC</b> and specify <b>&1</b> in title.

Activate.

populate v_str with "display sales details" or "change sales details" depending on conditions.

The text in v_str will be displayed as title bar.

Regards,

Sailaja.

Former Member
0 Kudos

Hi Prasad

Try to follow this code.

In ur report from where u r calling ohter tr.

set titlebar 'xyz' with sy-title..

Then click on it it asks for creeate object.

press yes and continue

it asks for shorttext

In short text just give &1.

save and activate this title bar ok

try it if i useful for u just reply

by

Prashanth

0 Kudos

Hi,

It's done yesterday itself!

Thanks for reply.

Regards,

Prasad.