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

heading display

Former Member
0 Likes
627

The heading of the report's output page should be like this:

A comparative analysis of date1 versus date2

In US$ '000

How can I show this message?

date1 and date2 will be taken as user input value through selection screen.

FDSB-DATUM.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
604

Hi,

Using Variables in Titles

To determine a title at runtime, you can use an & (ampersand) with your title text.

At runtime, these variables are replaced with the values that you specify. To set a titlebar containing variables, use the following ABAP statement:

SET TITLEBAR <titlecode> WITH <var1> <var2>... <varN>.

You can use up to nine variables in a title.

The variables are replaced with values according to their numbering (or simply from left to right if the variables are not numbered). For further information, see the F1 help in the ABAP Editor.

http://help.sap.com/saphelp_sm32/helpdata/en/d1/801d29454211d189710000e8322d00/content.htm

Regards,

Subramanian

Edited by: Subramanian PL on Jul 6, 2008 6:43 AM

4 REPLIES 4
Read only

Former Member
0 Likes
605

Hi,

Using Variables in Titles

To determine a title at runtime, you can use an & (ampersand) with your title text.

At runtime, these variables are replaced with the values that you specify. To set a titlebar containing variables, use the following ABAP statement:

SET TITLEBAR <titlecode> WITH <var1> <var2>... <varN>.

You can use up to nine variables in a title.

The variables are replaced with values according to their numbering (or simply from left to right if the variables are not numbered). For further information, see the F1 help in the ABAP Editor.

http://help.sap.com/saphelp_sm32/helpdata/en/d1/801d29454211d189710000e8322d00/content.htm

Regards,

Subramanian

Edited by: Subramanian PL on Jul 6, 2008 6:43 AM

Read only

0 Likes
604

great..thanks.May you please suggest that at which part of my report i'll write this statement?

Read only

Former Member
0 Likes
604

How can I set title for my report?In which portion of my ALV report I'll write code for title?Kindly mention this specifically. Thanks in adv.

Read only

Former Member
0 Likes
604

hi....

if you want to display the header text in your alv report you can use the following...

just have a look.....

this header text will be diaplyed at th top of your alv report

&----


*& Form DISPLAY_ALV

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


FORM display_alv.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE =

  • I_INTERFACE_CHECK = ' '

i_callback_program = 'ZRPT_FI_PCO_REVPULL'

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

i_callback_top_of_page = 'TOP-OF-PAGE'

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • IS_LAYOUT =

it_fieldcat = alv_fldcat_t

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

i_default = 'X'

i_save = 'A'

  • IS_VARIANT =

  • IT_EVENTS = alv_slis_t_event

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab = itab

  • EXCEPTIONS

  • PROGRAM_ERROR = 1

  • OTHERS = 2

.

*IF SY-SUBRC <> 0.

*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

*ENDIF.

ENDFORM. " DISPLAY_ALV

******************************************************

FORM top-of-page.

DATA: t_header TYPE slis_t_listheader,

wa_header TYPE slis_listheader.

DATA : line(100).

DATA : date(2),

month(2),

year(4).

year = sy-datum+0(4).

month = sy-datum+4(2).

date = sy-datum+6(2).

wa_header-typ = 'H'.

CONCATENATE 'PCO Pulled data for the month: ' p_monat '-' p_gjahr INTO

wa_header-info.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = t_header.

ENDFORM.