Skip to Content
0
Former Member
Apr 03, 2008 at 09:41 AM

ALV oops top_of_page heading and short text settings

15 Views

Hello,

Am wrking with oops alv TOP_OF_PAGE am getting text in top of page but trying to aligning with spaces it not wrking plz let me know h do solve.

_Out put Required is_

Sales plan Vs Budget plan

Plantype: ZHPLSALES ZHPLPROD

Version : 004 004

Period : 03-2008 10-2008

Am unable to do alignment:

and out put am geting is

Sales plan Vs Budget plan

Plantype: ZHPLSALES ZHPLPROD

Version : 004 004

Period : 03-2008 10-2008

unable to do alignment my coding for top of page as below

FORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT.

DATA: DL_TEXT(255) TYPE C. "Text

  • Populating header to top-of-page

CALL METHOD DG_DYNDOC_ID->ADD_TEXT

EXPORTING

TEXT = 'Sales Plan Vs. Ethylene Plan'

SAP_STYLE = CL_DD_AREA=>HEADING.

  • SAP_COLOR = CL_DD_AREA=>ACT_COLORS.

  • SAP_EMPHASIS = CL_DD_AREA=>STRONG.

  • Add new-line

CALL METHOD DG_DYNDOC_ID->NEW_LINE.

CONCATENATE 'Planning Type:' S_SCTYP-LOW S1_SCTYP-LOW INTO DL_TEXT SEPARATED BY SPACE.

  • Add Program Name to Document

PERFORM ADD_TEXT USING DL_TEXT.

  • Add new-line

CALL METHOD DG_DYNDOC_ID->NEW_LINE.

CLEAR : DL_TEXT.

  • Move program ID

CONCATENATE 'Version:' S_VRSIO-LOW S_VRSIO-LOW INTO DL_TEXT SEPARATED BY SPACE.

  • Add Program Name to Document

PERFORM ADD_TEXT USING DL_TEXT.

  • Add new-line

CALL METHOD DG_DYNDOC_ID->NEW_LINE.

CLEAR : DL_TEXT.

space and ' ' are not wrking so please let me know h to solve