Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Use of Provide and End Provide statement in HR ABAP

Former Member
0 Kudos

Hi All,

Can you please tell me the use of Provide and End Provide statement.

Thanks,

Maheedhar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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