12-03-2007 8:35 AM
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
12-03-2007 9:00 AM
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.
12-03-2007 9:00 AM
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.
12-03-2007 10:09 AM
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
12-03-2007 12:26 PM
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
12-03-2007 11:54 PM
Thanks all, now i understood the nature of GET and PROVIDE syntax.