Application Development 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: 

Help with alv - HR Infotypes.. etc..

Former Member
0 Kudos
94

Hi all !!

I have to do an alv using some fields. Here is the code:

IF PR = 1 AND V_PERS <> 'X'.

CONTEOPERSONAS = CONTEOPERSONAS + 1.

WRITE:/ P0002-PERID+0(10). "RUT

IF PNOMBRE = 'X'.

WRITE: N.

ENDIF.

IF CCOSTO = 'X'.

WRITE: P0001-KOSTL.

ENDIF.

IF PPERNR = 'X'.

WRITE: P0001-PERNR.

ENDIF.

DMM1 = P0008-TRFST.

IF PGRADO = 'X'.

WRITE: P0008-TRFST, ' '.

ENDIF.

The question is: How do I save the fields "P0002-PERID+0(10), P0001-KOSTL., etc" in a table to use it in an ALV Grid, in the same program?

Those "writes" are used in a list.. i have to use the same fields in the same program to also show an alv grid.

I hope you understand what i`m trying to say ( i'm a little confused, i'm newbe)

Thanks in advance!!

Jessica

3 REPLIES 3

Former Member
0 Kudos
42

Create an internal table with the fields you want to show and wherever you have a write statement, move that value to your internal table fields and append.

0 Kudos
42

Ok i'll try to do it.

If I cant, please help me again !!

Thanks so much!!

Former Member
0 Kudos
42

Please, help me to do an internal table with this data..

I cannot do it..

Thanks )