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

ALV Report

Former Member
0 Likes
468

Hi,

I have aALV OOP report. Here there is a To of Page in which i have 2 columns.

Address: Page No.

Here what happens is , based on the contents of Address , the next coulmn Page No gets moved to the end and changes its alignment.

How to make this 2 cloumns fixed?. Thats the Page No shouldn't change its alignment based on the contents of the Address

Pls help

Thanks

Ram

Hi,

I have aALV OOP report. Here there is a To of Page in which i have 2 columns.

Address: Page No.

Here what happens is , based on the contents of Address , the next coulmn Page No gets moved to the end and changes its alignment.

How to make this 2 cloumns fixed?. Thats the Page No shouldn't change its alignment based on the contents of the Address

Pls help

Thanks

Ram

3 REPLIES 3
Read only

Former Member
0 Likes
441

Hello Prabha,

I have faced similar problem like you using FM. Then I have implemented this logic in the TOP-OF-PAGE routine. You could also try this in ur report.

FORM TOP_OF_PAGE USING CL_DD TYPE REF TO CL_DD_DOCUMENT. "#EC *

DATA: L_F_INFO(255).

DATA: LV_COUNT TYPE SDYDO_TEXT_ELEMENT,

LV_PER TYPE SDYDO_TEXT_ELEMENT,

LV_NUMC(8) TYPE N.

CALL METHOD CL_DD->ADD_TEXT

EXPORTING

TEXT = TEXT-008

SAP_STYLE = CL_DD_DOCUMENT=>SMALL

SAP_COLOR = CL_DD_DOCUMENT=>LIST_HEADING_INT

SAP_FONTSIZE = CL_DD_DOCUMENT=>SMALL

SAP_EMPHASIS = CL_DD_DOCUMENT=>STRONG

STYLE_CLASS = SPACE.

CALL METHOD CL_DD->NEW_LINE

EXPORTING

REPEAT = 1.

CALL METHOD CL_DD->ADD_GAP

EXPORTING

WIDTH = 25.

CALL METHOD CL_DD->ADD_TEXT

EXPORTING

TEXT = TEXT-009

SAP_STYLE = CL_DD_DOCUMENT=>SMALL

SAP_COLOR = CL_DD_DOCUMENT=>LIST_HEADING_INT

SAP_FONTSIZE = CL_DD_DOCUMENT=>SMALL

SAP_EMPHASIS = CL_DD_DOCUMENT=>STRONG

STYLE_CLASS = SPACE.

CALL METHOD CL_DD->ADD_GAP

EXPORTING

WIDTH = 10.

CALL METHOD CL_DD->ADD_TEXT

EXPORTING

TEXT = TEXT-010

SAP_STYLE = CL_DD_DOCUMENT=>SMALL

SAP_COLOR = CL_DD_DOCUMENT=>LIST_HEADING_INT

SAP_FONTSIZE = CL_DD_DOCUMENT=>SMALL

SAP_EMPHASIS = CL_DD_DOCUMENT=>STRONG

STYLE_CLASS = SPACE.

CALL METHOD CL_DD->ADD_GAP

EXPORTING

WIDTH = 11.

CALL METHOD CL_DD->ADD_TEXT

EXPORTING

TEXT = TEXT-011

SAP_STYLE = CL_DD_DOCUMENT=>SMALL

SAP_COLOR = CL_DD_DOCUMENT=>LIST_HEADING_INT

SAP_FONTSIZE = CL_DD_DOCUMENT=>SMALL

SAP_EMPHASIS = CL_DD_DOCUMENT=>STRONG

STYLE_CLASS = SPACE.

CALL METHOD CL_DD->ADD_GAP

EXPORTING

WIDTH = 15.

CALL METHOD CL_DD->ADD_TEXT

EXPORTING

TEXT = TEXT-012

SAP_STYLE = CL_DD_DOCUMENT=>SMALL

SAP_COLOR = CL_DD_DOCUMENT=>LIST_HEADING_INT

SAP_FONTSIZE = CL_DD_DOCUMENT=>SMALL

SAP_EMPHASIS = CL_DD_DOCUMENT=>STRONG

STYLE_CLASS = SPACE.

CALL METHOD CL_DD->ADD_GAP

EXPORTING

WIDTH = 10.

CALL METHOD CL_DD->NEW_LINE

EXPORTING

REPEAT = 1.

ENDFORM. "top_of_page

Hope this will helps you.

Vasanth

Read only

0 Likes
441

Hi Vasanth,

Thanks fo rreply.

Still i see the same problem.Only thing which was missing in the code was

SAP_STYLE = CL_DD_DOCUMENT=>SMALL

SAP_COLOR = CL_DD_DOCUMENT=>LIST_HEADING_INT

SAP_FONTSIZE = CL_DD_DOCUMENT=>SMALL

SAP_EMPHASIS = CL_DD_DOCUMENT=>STRONG

STYLE_CLASS = SPACE.

Read only

0 Likes
441

Hello,

U can give the gap between the words using

CALL METHOD CL_DD->ADD_GAP

EXPORTING

<b>WIDTH = 10.</b>

Youn could fix this WIDTH

Vasanth