Skip to Content
0
Former Member
Feb 25, 2009 at 03:07 PM

Need some logic for displaying data from Internal Table

26 Views

Hi Guys,

I have a Internal Table with multiple entries.

My ITAB looks like below.

PN VBELN MATNR MATKX

1 111 P-101 XXX

2 121 P-102 XYZ

2 112 P-103 ABC

3 134 P-104 DEF

3 124 P-105 EFG

Now my requirement is I need to display the out put as follows through ALV or normal display.

<Header> <Date>

<Time>

PN = 1

VBELN MATNR MATKX

111 P-101 XXX

<Footer>

Some gap (May be a line to differentiate)

<Header > <Date>

<Time>

PN = 2

VBELN MATNR MATKX

121 P-102 XYZ

112 P-102 ABC

<Footer>

Some gap (May be a line to differentiate)

<Header > <Date>

<Time>

PN = 3

VBELN MATNR MATKX

134 P-104 DEF

124 P-105 EFG

<Footer>

Thanks in Advance.

Prasad.