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

dynamic Data

Former Member
0 Likes
927

Hi all,

Can the top of page event in alv gird/list have dynamic data in it

Regards,

Priya

8 REPLIES 8
Read only

Former Member
0 Likes
909

Hi,

what do you mean?

Read only

Former Member
0 Likes
909

Hi Priya,

What do you mean by dynamic data? Do you mean you want to pass dynamic table or something?

Regards,

Atish

Read only

0 Likes
909

I have to display the customer no in the header. It should change for each page.

Read only

0 Likes
909

Hi Priya,

No it is not possible.

Regards,

Atish

Read only

0 Likes
909

HI,

no, but you can prepare it before you show the data.

rgs

Read only

0 Likes
909

Where should i capture the data to display it

Read only

0 Likes
909

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

Read only

Former Member
0 Likes
909

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