‎2007 Mar 10 9:04 AM
HI GURUS,
cud u plz explain the given statement:::::HOW does it work.
*****************************
GET pernr.
PROVIDE * FROM p0001
BETWEEN pybegda AND pyendda.
ENDPROVIDE.
‎2007 Mar 10 9:34 AM
Hi ,
Get pernr works as select from table .
and provide * from p0001 is like
select * from p0001 .
endselect .
Please reward if useful.
‎2007 Mar 10 9:34 AM
Hi ,
Get pernr works as select from table .
and provide * from p0001 is like
select * from p0001 .
endselect .
Please reward if useful.
‎2007 Mar 10 9:44 AM
Hi ravi,
GET PERNR :
This event fills the data structures of declared infotypes with all records that exists for a personnel number.
Data selection does not delimit the records that retrieved from the database.
then provide ......endprovide:it retreives the data from p0001 table which is in between the dates pybedda and pyendda.
‎2007 Mar 10 10:12 AM
hi srilatha,
cud u plz explain this in a simple way,
********
the answer u have given....
This event fills the data structures of declared infotypes with all records that exists for a personnel number.
Data selection does not delimit the records that retrieved from the database.
‎2007 Mar 10 10:00 AM
Hi..
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
‎2007 Mar 10 10:22 AM
hi Ravi,
Consider the following example:
tables:
PERNR.
Infotypes:
0001,
0002.
get pernr.
provide * from p0002 between pn-begda and pn-endda.
write......
endprovide.
The GET PERNR statement, pulls all records corresponding to a
personal number from infotypes 0001 and 0002, to internal tables P0001
and P0002 respectively(P0001 and P0002 are not declared in our program,
but they exist in the <b>logical database PNP</b>. There can be multiple
records in these infotypes for a singel pernr, based on BEGDA
and ENDA (validity period).
So <b>Provide...Endprovide</b> is used to loop through these records, one by one..(<b>provide..endprovide</b> can be replace with <b>loop at p0002..endloop</b> statement as well).
Hope this helps,
Sajan Joseph.
‎2007 Mar 10 10:30 AM
Hi ravi,
HRABAP
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
http://www.atomhr.com/training/Technical_Topics_in_HR.htm
http://www.planetsap.com/hr_abap_main_page.htm
you can see some Standard Program examples in this one..
http://www.sapdevelopment.co.uk/programs/programshr.htm
These are the FAQ's that might helps you
http://www.sap-img.com/human/hr-faq.htm
http://www.sapgenie.com/faq/hr.htm
Common link:
http://www.easymarketplace.de/online-pdfs.php
go thruthe links which r very helpful
‎2007 Mar 10 10:33 AM
Hi ravi,
the answer u have given....
This event fills the data structures of declared infotypes with all records that exists for a personnel number.
Data selection does not delimit the records that retrieved from the database.
it means:
it fills the internal table p0001 with records that exists in the pernr
‎2007 Mar 10 10:40 AM
Hi ravi,
The GET PERNR statement retrieves all records from the infotype 0001 to the internal table p0001