Skip to Content
0
Former Member
May 19, 2005 at 01:13 PM

Repetitive structure In ABAP HR

417 Views

hi all ,

Am getting syntax error for the code below. Am using

4.7 .its says "p0041-dar01" and "date" are type-incompatible.

however when i compile the same code in 4.6 its workin fine. here is the code..

&----


*& Report ZTEST_REP *

*& *

&----


*& *

*& *

&----


REPORT ZTEST_REP .

INFOTYPES 0041.

NODES : PERNR.

data : begin of date,

dar like pa0041-dar01 ,

dat like pa0041-dat01.

data : end of date.

START-OF-SELECTION.

GET PERNR.

DO 12 TIMES VARYING DATE

FROM P0041-DAR01

NEXT p0041-DAR02.

write : / date-dar ,

date-dat.

write : / date.

ENDDO.

END-OF-SELECTION.

can i know what is the exact problem ...

Thanks

senthil