‎2006 Jun 27 2:05 PM
Hi,
I would like to call the same program from four different transactions. Each transaction executes a different scenario of the same program, so requires a different title each time. How do I set the Title such that it changes dynamically for each different transaction that is called?
Thanks,
Sruthy
‎2006 Jun 27 2:09 PM
Hi,
try this
<b>report xxxxx no standard page heading.
Top-of-page.
write : sy-tcode.</b>
award point if it helps.
Regards,
Sudhakar.
‎2006 Jun 27 2:09 PM
‎2006 Jun 27 2:13 PM
if sy-tcode eq 'ABC' .
set titlebar 'MAIN' with 'Maintain' .
else .
set titlebar 'MAIN' with 'Display' .
endif .
when you define the title bar
just give
& Plan Transaction
this would result in
when tcode is ABC
Maintain Plan Transaction and
when others
Display Plan Transaction.
Regards
Raja
‎2006 Jun 27 2:16 PM
To expand on my previous answer, & will get replaced by the text you had given in set title bar. this allows to have one one object.
You dont need multiple titlebar objects.
Regards
Raja
‎2006 Jun 27 2:11 PM
Hi sruthy,
1. Use the INITIALIZATION EVENT
and check for sy-tcode.
2. like this.
3.
INITIALIZATION.
IF SY-TCODE = 'ZT01'.
<b>sy-title = 'My title 1'.</b>
endif.
IF SY-TCODE = 'ZT02'.
<b>sy-title = 'My title 2'.</b>
endif.
regards,
amit m.
‎2006 Jun 27 2:15 PM
Hi,
You can create different transaction to call the same program in transaction SE93. In the program you can evaluate sy-tcode to indentify what transaction was executed. Depending of the transaction code is posible modify the title of the program with the system variable sy-title.
regards,
Alejandro
‎2006 Jun 28 6:17 AM
‎2006 Jun 28 6:28 AM
If the problwm is solved can you mark the thread as answered.
Regards
Raja