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: 

How to display diferent Title by using diferent TC in one Report

Former Member
0 Kudos

Hi all,

Ich have a problem by Implementation:

So my Report must be calling from 2 Transactions

Transaction 1 call Report 1 --> show title 1 (exp. Windows was called by Transaction 1) (start window - Dynpro screen 1000)

Transaction 2 call Report 1 --> show title 2 (exp. Report 1 was called by Transaction 2) (start window - Dynpro screen 1000)

I used SET TITLEBAR but isn't work

How can I do that? Can I user sy-tcode for the changing report-title?

Thanks for Answer!

4 REPLIES 4

former_member184578
Active Contributor
0 Kudos

Hi blue.,

try this., create ZTITLE1 as first title and ZTITLE2 as second title., and do as below.,

if sy-tcode = 'TCODE1'.

SET TITLEBAR 'ZTITLE1' .

elseif sy-tcode = 'TCODE2'.

SET TITLEBAR 'ZTITLE2' .

endif.

reply if u need some more clarifications.,

Thanks & regards

Kiran

former_member195402
Active Contributor
0 Kudos

Hi,

the following code I have used to change report title for selection screen of the 2nd transaction:


initialization.
                                                                                if  sy-tcode               ne  'ZTGIODOK'.
       sy-title                  =  text-shd.
     endif.

This is only for the selection screen. For the result screen SET TITLEBAR should work.

Regards,

Klaus

kesavadas_thekkillath
Active Contributor
0 Kudos

You can try changing the system field sy-title.

Former Member
0 Kudos

Thank all. It's work

until now I tried to code in PBO, but now it's work.

Thanks for all Replies