Skip to Content
0
Former Member
Mar 31, 2008 at 11:27 AM

re:alv grid display

26 Views

hi friends,

can u pls help me out.

i've 4 fields in internal table. those are

employee no.

type of work

hours

date

for example i've records like this.

1 st 8 1/2/2008

1 ot 7 1/2/2008

1 ot2 7 1/2/2008

1 st 8 2/2/2008

1 ot 7 2/2/2008

1 ot2 7 2/2/2008

1 st 8 3/2/2008

1 ot 7 3/2/2008

1 ot2 7 3/2/2008

1 st 8 4/2/2008

1 ot 7 5/2/2008

1 ot2 7 6/2/2008

and also have the same records for different employees.

st----straight time

ot----over time

ot2----extra over time

and in the selection screen allow the user to give date range.

for example he has given date range 1/2/2008 to 7/2/2008.

the date range should be 7 days only.

so i want the output in alv like this.......

-


A B 1 2 3 4 5 6 7

1 st 8 8 8 8

1 ot 7 7 7 7

1 ot2 7 7 7 7

2 st 8 8 8 8

2 ot 7 7 7 7

2 ot2 7 7 7 7

where

A------employee no.

B------type of work

1-----1/2/2008

2-----2/2/2008

3----3/2/2008

AND 4,5,6,7

so, pls help me in this asap.

if possible send me the code.

best answers will be appreciated,.

thanks&regards

rahul