‎2008 Jun 23 9:43 AM
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
‎2008 Jun 23 9:48 AM
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....
‎2008 Jun 23 9:49 AM
Hi,
you need to work with 2 TITLE. You can call this status for different transaction in coding.
set title ????.
Regards
Nicole
‎2008 Jun 23 9:50 AM
Hi,
Make no standard page heading and give heading in top-of-page either conditionally or dynamically.
Regards
Adil
‎2008 Jun 23 9:51 AM
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
‎2008 Jun 23 9:52 AM
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
‎2008 Jun 23 9:53 AM
Hi all,
Really thanx for such a quick response.
I solved it out.
I used sy-title and changed the title.
‎2008 Jun 23 9:55 AM
try like this
initialization.
if sy-tcode ne 'ABCD'.
sy-title = 'PRABHU'.
endif.
regards
Prabhu
‎2008 Jun 23 9:55 AM
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.