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

Report Title problem

Former Member
0 Likes
939

Hi,

For a program, i have 2 transactions made for it.

I want to set the title of the report( at time of selection screen) which we set in the program's attribute to be changed on the basis of the transaction.

ex:

if tcode = 'ZMD1'

title = "Quarterly Pay"

else

title = "Annual Pay"

Please make note that i dont want to change the title of the output that comes, but rather the title of the program when we run it.

thanx in advance

8 REPLIES 8
Read only

former_member195383
Active Contributor
0 Likes
838

put a check as

if sy-tcode = 'TCODE1'.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

:

:

SELECTION-SCREEN END OF BLOCK b1.

endif.

if sy-tcode = 'TCODE2'.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.

:

:

SELECTION-SCREEN END OF BLOCK b1.

endif.

u can giv 2 diff headings in text-001 and text-002.

reward points if the abv helps....

Read only

Former Member
0 Likes
838

Hi,

you need to work with 2 TITLE. You can call this status for different transaction in coding.

set title ????.

Regards

Nicole

Read only

Former Member
0 Likes
838

Hi,

Make no standard page heading and give heading in top-of-page either conditionally or dynamically.

Regards

Adil

Read only

Former Member
0 Likes
838

hiiii

when you create a T-code that time in transaction text fields give this text.it will display when you will run that T-code..because you can not change program name at run time.

reward if useful

thx

twinkal

Read only

sachin_mathapati
Contributor
0 Likes
838

Hi ,

Try this

if sy-tcode = 'TCODE1'.

Wf_title = text-t001.

elseif st-tcode = 'TCODE2'.

wf_title = text-t002.

Endif.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE wf_title.

:

:

SELECTION-SCREEN END OF BLOCK b1.

Reward points if helpful.

Regards,

Sachin M M

Read only

Former Member
0 Likes
838

Hi all,

Really thanx for such a quick response.

I solved it out.

I used sy-title and changed the title.

Read only

Former Member
0 Likes
838

try like this

initialization.

if sy-tcode ne 'ABCD'.

sy-title = 'PRABHU'.

endif.

regards

Prabhu

Read only

Former Member
0 Likes
838

hi heena,

in pbo module write

SET TITLEBAR 'ZTITLE'.

double click on 'ZTITLE'....give whatever title u want...save it...activate...and check...

i think this will help u

regards,

sindhu.