‎2007 Nov 14 2:12 PM
Hi all,
Can the top of page event in alv gird/list have dynamic data in it
Regards,
Priya
‎2007 Nov 14 2:14 PM
‎2007 Nov 14 2:14 PM
Hi Priya,
What do you mean by dynamic data? Do you mean you want to pass dynamic table or something?
Regards,
Atish
‎2007 Nov 14 2:16 PM
I have to display the customer no in the header. It should change for each page.
‎2007 Nov 14 2:17 PM
‎2007 Nov 14 2:19 PM
‎2007 Nov 14 2:24 PM
‎2007 Nov 14 2:31 PM
Right...you can do like this..check this sample code..
DATA: BEGIN OF imat OCCURS 100,
matnr LIKE ekpo-matnr, "Material number
menge LIKE ekpo-menge, "Material quantity
END OF imat.
TOP-OF-PAGE.
ULINE.
WRITE:/ imat-matnr.
ULINE.
START-OF-SELECTION.
SELECT matnr menge INTO CORRESPONDING FIELDS OF TABLE imat FROM ekpo.
LOOP AT imat.
ON CHANGE OF imat-matnr.
NEW-PAGE.
ENDON.
WRITE :/ imat-matnr, imat-menge.
ENDLOOP.
OOOOOOPPPsssss...sorry Priya I don't think it'll work in ALV
Message was edited by:
Perez C
‎2007 Nov 14 2:17 PM
Yes...you can have dynamic data in TOP-OF-PAGE event...
for ex:
TOP-OF-PAGE.
IF SY-PAGNO EQ 2.
-....
ENDIF
Message was edited by:
Perez C