Hi,
I have the following code :
******************************************************************************
REPORT ZPYRLL01
Tables: PERNR.
Infotypes: 0002.
GET PERNR.
*rp-provide-from-last p0002 space pn-begda pn-endda.
*rp-provide-from-frst p0002 space pn-begda pn-endda.
WRITE: / 'Pernr ' , PERNR-PERNR , sy-vline ,
'Pernr-Ename ' , (15) PERNR-ENAME , sy-vline ,
'First Name ' , (8) p0002-VORNA , sy-vline ,
'p0002-begda ' , (10) p0002-begda , sy-vline ,
'p0002-endda ' , (10) p0002-endda , sy-vline ,
'pn-begda ' , (10) pn-begda , sy-vline ,
'pn-endda ' , (10) pn-endda.
******************************************************************************
I have tested it without both macros, with only the first macro and with only the second one.
And in the three trials I got the same results ?
(List of Personnel ranked by ascending pernrs)
So,
Q1 : What is the role of these two macros ?
Their presence or abscence change nothing in the result when processing.
Another Q :
If the GET PERNR statement beside filling ITs with data, do a loop.
Q2 : Then what is the role of Loop & Provide loops ?
We can replace WHEN & BETWEEN statement with an IF.