Archived discussions are read-only. Learn more about SAP Q&A

Top-of-page in Alv Grid

Hi Experts,

I want to display the below said in top-of-page (alv) as TITLE can include only 72 characters.

*FORM TITLE.

**

    • WRITE BUDAT-LOW DD/MM/YYYY TO DATE1.

    • WRITE BUDAT-HIGH DD/MM/YYYY TO DATE2.

**

    • CONCATENATE IT_FINAL-NAME1 'Reconcilliation Statement From'

    • DATE1 'TO' DATE2

    • INTO TITLE SEPARATED BY SPACE .

**

**

**

**ENDFORM. "TITLE

Please advice.

Karthik

replied

Hi,

Try with this.

DATA : LH TYPE SLIS_T_LISTHEADER,

LS TYPE SLIS_LISTHEADER .

I_CALLBACK_TOP_OF_PAGE = 'TOP'

FORM TOP.

DATA : L_DATE(10) TYPE C .

DATA : L_DATE1(20) TYPE C .

CLEAR LS.

LS-TYP = 'H'.

LS-INFO = 'STUDENT DETAILS'.

APPEND LS TO LH.

CLEAR LS.

LS-TYP = 'S'.

WRITE: SY-DATUM TO L_DATE USING EDIT MASK '__/__/____'.

CONCATENATE 'DATE :' L_DATE INTO L_DATE1 SEPARATED BY SPACE.

LS-INFO = L_DATE1.

APPEND LS TO LH.

CLEAR LS.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question