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: 

urgentreport title

Former Member
0 Kudos
143

how can i change the report title

when i run the prog at selection screen

it shows<b> test</b>

i want to change it

plz help

5 REPLIES 5

Former Member
0 Kudos
94

Hi,

In the REPORT statement you need to add this..

REPORT ztest NO STANDARD PAGE HEADING

.

<b>Reward points for helpful answers</b>.

Best Regards,

Ram.

Former Member
0 Kudos
94

NEW-PAGE - page_options

Syntax

... [WITH-TITLE|NO-TITLE]

[WITH-HEADING|NO-HEADING]

[LINE-COUNT page_lines]

[LINE-SIZE width]

[NO-TOPOFPAGE] ... .

Extras:

1. ... WITH-TITLE|NO-TITLE

2. ... WITH-HEADING|NO-HEADING

3. ... LINE-COUNT page_lines

4. ... LINE-SIZE width

5. ... NO-TOPOFPAGE

Effect

These additions set properties of the list for all subsequent pages of the current list level, until they are set again in another NEW-PAGE statement. The addtions overrule the identically named additions of the program introduction statement.

Addition 1

... WITH-TITLE|NO-TITLE

Addition 2

... WITH-HEADING|NO-HEADING

Effect

These additions determine which components of the standard page header are output for the subsequent pages of the current list level. The standard page header consists of a standard title and of column headings.

The additions WITH-TITLE and NO-TITLE switch the output of the standard title on or off for the subsequent pages. The predefined default setting for basic lists is WITH-TITLE and for detail lists NO-TITLE.

The additions WITH-HEADING and NO-HEADING switch the output of the column headings on or off for all subsequent pages. The predefined default setting for basic lists is WITH-HEADING and for detail lists NO-HEADING.

Note

For the basic list, these additions overrule the setting made in the program introduction statement. The addition NO STANDARD PAGE HEADING you can use there, is identical to simultaneously using NO-TITLE and NO-HEADING, except that the latter do not influence the system field sy-wtitl.

Addition 3

... LINE-COUNT page_lines

Effect

This addition determines the page length of the subsequent pages of the current list level in page_length and sets sy-linct to this value. For page_length, a data object of type i is expected. If the value of page_lines is less than or equal to 0 or greater than 60.000, then the page length is set to 60.000. For the basic list, the addition overrules the page length determined in the program introduction statement.

The page length determines how many lines including page header and page footer can be written to a list page. If an output would write into a line outside the current page length or would write into the area reserved for the page footer of a basic list, a new page is automatically created.

Notes

The lines reserved in the program introduction statement for the page footer of the basic list cannot be changed with addition LINE-COUNT of the NEW-PAGE statement. For detail lists, you cannot create a page footer.

For screen lists, you should use the default value, because page breaks triggered by LINE-COUNT are usually not adapted to the window size.

For print lists, you should also use the default value to allow the page size to be determined depending on the printer. A print list should be created in such a way that it provides reasonable results for any page size.

Specifying a fixed line number is reasonable only for form-type lists with a fixed page layout. However, you should always check whether you can create such forms using other techniques, such as a SAPScript form.

Example

Demonstration of automatic page breaks on a basic list. The pages have two-line page headers and page footers defined after TOP-OF-PAGE and END-OF-PAGE. The page length is determined after NEW-PAGE. The program outputs five pages.

REPORT NO STANDARD PAGE HEADING LINE-COUNT 0(2).

TOP-OF-PAGE.

WRITE sy-pagno.

ULINE.

END-OF-PAGE.

ULINE.

WRITE 'Footer'.

START-OF-SELECTION.

NEW-PAGE LINE-COUNT 6.

DO 10 TIMES.

WRITE / sy-index.

ENDDO.

Addition 4

... LINE-SIZE width

Effect

This addition sets the page width of the current list level to the value in width and sets sy-linsz to this value. The line width determines the number of characters in the list buffer and the number of columns in the displayed list. For width, a data object of type i is expected. The value of width must not be negative. If the value of width is equal to 0 or greater than 1.023, the line width is set to a default width, which depends on the window width of the current dynpro (sy-scols), but is at least as wide as the width of an SAP window in standard size. For the basic list, the addition overrules the page width determined in the program introduction statement.

The addition is effective only if no output has yet been sent to the current list level. The page width of a written list cannot be changed.

Note

The currently valid maximum value for the line width is stored in the constant slist_max_linesize of the type group SLIST. There, also a type slist_max_listline of type c and length slist_max_linesize is defined.

Example

Creation of basic list and detail list with different page width values. Of the standard page header, only the standard title is displayed.

REPORT demo NO STANDARD PAGE HEADING.

START-OF-SELECTION.

NEW-PAGE WITH-TITLE LINE-SIZE 40.

WRITE 'Basic list'.

AT LINE-SELECTION.

NEW-PAGE WITH-TITLE LINE-SIZE 20.

WRITE 'Secondary list'.

Addition 5

... NO-TOPOFPAGE

Effect

This addition suppresses on the new page and on all pages of the current list level that are automatically created, up to the next NEW-PAGE statement, the event TOP-OF-PAGE. If addition NO-TOPOFPAGE is not specified, the event TOP-OF-PAGE is triggered before the output to a new page.

Example

The program below creates six pages. The event TOP-OF-PAGE is triggered only on the first page.

REPORT demo NO STANDARD PAGE HEADING.

START-OF-SELECTION.

ULINE.

NEW-PAGE NO-TOPOFPAGE LINE-COUNT 2.

DO 10 TIMES.

WRITE / sy-index.

ENDDO.

TOP-OF-PAGE.

WRITE 'Basic list'.

Former Member
0 Kudos
94

SET TITLEBAR - Dynpro

Syntax

SET TITLEBAR title [OF PROGRAM prog]

[WITH text1 ... text9].

Extras:

1. ... OF PROGRAM prog

2. ... WITH text1 ... text9

Effect

During screen processing, this statement specifies the GUI title (specified in title) for the subsequent screens. The title is displayed in the title bar from the next sending of one screen until the end of the program or until the next SET TITLEBAR statement. The name of the current GUI title is displayed in the system field sy-title.

A character-type data object that contains the name of a GUI title of the main program of the current program group or of the program specified in prog in upper case is expected for title. If the title does not exist, sy-subrc is set to 4 and the word "SAP" is displayed in the title bar.

System fields

sy-subrc Meaning

0 GUI title is set.

4 GUI title cannot be found.

Notes

The GUI title of the screen must be set before the PBO event. If no GUI title is set for a screen, the word "SAP" is displayed in the title bar.

The title bar can contain a maximum of 70 characters. A title that exceeds this limit after the replacement of placeholders is truncated to the right.

The statement SET TITLEBAR contains a variant for the GUI status of lists.

Addition 1

... OF PROGRAM prog

Effect

By default, a GUI title defined in the current main program is used. When using the addition OF PROGRAM, a GUI title of the progam specified in prog can be set. A character-type data object is expected for prog that contains the name of a ABAP program in upper case.

Addition 2

... WITH text1 ... text9

Effect

When using the addition WITH, you can replace the placeholders of the GUI title with the contents of data objects text1 to text9. Data objects text1 to text9 must be of a character type flat data type. The placeholders of the GUI title can be defined in the form "&" or "&i", where i can be a number between 1 and 9. The characters are replaced as follows:

The numbered placeholders "&i" are replaced with the contents of the data objects text1 to text9, whose names contain the same number i for the second digit.

The non-numbered placeholders "&" are replaced with the contents of the remaining data objects text1 to text9 according to their order.

If no data object is specified for a placeholder, it is represented by a blank character. Two successive "&" characters "&&" in the title bar are not replaced with the contents of text1 to text9, but with the character "&".

Note

If a GUI title should be translated into other languages, the numbered placeholder "&i" should be used as the record structure can change.

Example

In the following example, the GUI title TITLE_0100 of the program specified in prog is set in a PBO module, where the placeholders "&1" and "&2" of the title are replaced with the contents p1 and p2.

DATA: title TYPE string,

prog TYPE string,

p1 TYPE c LENGTH 10,

p2 TYPE c LENGTH 10.

...

MODULE status_0100 OUTPUT.

...

title = 'TITLE_0100'.

prog = '...'.

p1 = '...'.

p2 = '...'.

SET TITLEBAR title OF PROGRAM prog WITH p1 p2.

...

ENDMODULE.

0 Kudos
94

solved by changing attributes

Former Member
0 Kudos
94

Hi,

Go to transaction: Se38 Provide Program Name ---> Click Button Change -->click on menu GoTo -


> Attributes -


> Now change the Title.

Hope the Info will help you. Rewards points if useful.

With Regards,

K K V