07-30-2010 9:10 AM
Hi All,
Can you please tell me the use of Provide and End Provide statement.
Thanks,
Maheedhar
07-30-2010 9:18 AM
Hi,
Provide and ENDPROVIDE just behaves like SELECT and ENDSELECT ..
When you use GET pernr .,, it takes a PERNR from LDB .. after that if you use the Provide statement , then it provides you all the DATA from that info table valid within that DATE period .. It would be one time read and selects the first record from that table ..
ends at ENDPROVIDE.
Again it will go in that table to select the next record.. Just like below.
REPORT TEST1.
TABLES: PERNR.
INFOTYPES: 0001.
GET PERNR.
PROVIDE * FROM P0001 BETWEEN PN/BEGDA AND PN/ENDDA.
WRITE:/ PERNR-PERNR
P0001-STELL
ENDPROVIDE.
Edited by: Lokesh Tarey on Jul 30, 2010 10:19 AM
07-30-2010 9:18 AM
Hi,
Provide and ENDPROVIDE just behaves like SELECT and ENDSELECT ..
When you use GET pernr .,, it takes a PERNR from LDB .. after that if you use the Provide statement , then it provides you all the DATA from that info table valid within that DATE period .. It would be one time read and selects the first record from that table ..
ends at ENDPROVIDE.
Again it will go in that table to select the next record.. Just like below.
REPORT TEST1.
TABLES: PERNR.
INFOTYPES: 0001.
GET PERNR.
PROVIDE * FROM P0001 BETWEEN PN/BEGDA AND PN/ENDDA.
WRITE:/ PERNR-PERNR
P0001-STELL
ENDPROVIDE.
Edited by: Lokesh Tarey on Jul 30, 2010 10:19 AM