PROVIDE - ENDPROVIDE in HR ABAP
I am trying to understand how the PROVIDE - ENDPROVIDE statement in HR ABAP works.
I have gone through many of the links discussion on this but is not very clear.
Can you please correct my understanding if it.
I was under impression that the provide statement in the below report ZTEST gets exectuted like the following LOOP ENDLOOP statement which is not correct. Can you please help me understand how it processes the provide statement and how different is the PROVIDE statement from the LOOP ENDLOOP statement.
loop at p0002 where begda <= pn-begda
and endda >= pn-endda.
WRITE: / p0002-pernr.
INFOTYPES: 0002. "Personal Data
SELECT-OPTIONS: language FOR p0002-sprsl.
**-- Selection screen
pnptimed = 'D'.
PROVIDE * FROM p0002 BETWEEN pn-begda AND
WRITE: / p0002-pernr,