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: 

PROVIDE or GET... which is faster?

Wil_Wilstroth
Active Participant
0 Kudos

Hi all,

Which syntax is faster to get employee data in terms of PROVIDE and GET?

PROVIDE or GET... which is faster?

Thanks

William Wilstroth

William Wilstroth
1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi..

GET is faster

GET:

Use GET to handle two types of events after submitting executable programs: Get events and events at the end of a hierarchy level of a logical database. If during a GET event a list is written, previously an automatic line feed is created.

Provide....

The statements PROVIDE and ENDPROVIDE define a loop through a statement block. In this loop, any number of internal tables itab1 itab2 ... are processed together. A single table can appear several times. For every table itab you must specify a FIELDS clause. After FIELDS you must specify the character * for all components or a list comp1 comp2 ... for specific components of the relevant table. The names of the components comp1 comp2 ... can only be specified directly.

4 REPLIES 4

Former Member
0 Kudos

Hi..

GET is faster

GET:

Use GET to handle two types of events after submitting executable programs: Get events and events at the end of a hierarchy level of a logical database. If during a GET event a list is written, previously an automatic line feed is created.

Provide....

The statements PROVIDE and ENDPROVIDE define a loop through a statement block. In this loop, any number of internal tables itab1 itab2 ... are processed together. A single table can appear several times. For every table itab you must specify a FIELDS clause. After FIELDS you must specify the character * for all components or a list comp1 comp2 ... for specific components of the relevant table. The names of the components comp1 comp2 ... can only be specified directly.

suresh_datti
Active Contributor
0 Kudos

GET loads up all the infotypes for a person with each loop pass & PROIVDE is used to loop at the infotype itab, inside the GET event..

You shouldn't be comparing GET & PROVIDE..

~Suresh

0 Kudos

hi ,

The purpose of using GET is totally different from the use of provide statements .

Get fills all internal tables of declared infotypes with relevant master data and

provide statements are used to process those internal tables within a GET and END-OF-SELECTION loop.

Regards

vinay

Wil_Wilstroth
Active Participant
0 Kudos

Thanks all, now i understood the nature of GET and PROVIDE syntax.

William Wilstroth