You are on page 1of 2

Note : Varying repetitive data

Ex for repetitive data infotype pa0008 and pa0040

For repetitive data type infotypes to read data use this code

Declare tables,data,infotypes..

Get pernr.

Rp_provide_from_last p0008 space pn-begda pn-endda.

Rp_provide_from_last p0008 space pn-begda pn-endda.

If pnp-sw-found = ‘1’.

Do 40 times

Varying lv _lgart from p0008-lg01 next p0008-lgo2

Varying lv _lgart from p0008-lg01 next p0008-lgo2

If lv_lgart = ‘1070’.

Write : lv_lgart , lv_betrg

Endif.

Enddo.

Endif.

EXCERSICE:

PERNR

INFOTYPE 0000

MASSN

MASSG & DESCRIPTION(T503)

T503

INFOTYPE 0001
BUKRS & DESCRIPTION

WERKS &

BTRTRL PAYROLL AREA

PERSEG EMPLOYEE GROUP

PERSK EMPLOYEE SUBGROUP

INFOTYPE 0002

VORNA

NACHN

DOB

NATIONALITY

INFOTYPE 0007

SCHKZ & DES

INFOTYPE 0008

LGA01 & DESCRIPTION - 1000

Betrg

41

Date type – 03

date

You might also like