2007 Feb 19 1:51 PM
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
2007 Feb 19 1:55 PM
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
2007 Feb 19 2:11 PM
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.
2007 Feb 19 2:13 PM
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