on 04-09-2008 2:08 PM
Hi experts ,
I have a doubt.I am working on smart forms.I need to fetch the latest details of employees.
Some forms are action based and as well as non action based.I think for non action based to fetch the latest record we can give the condition as begda le sydatum and endda ge sy-datum in the where clause.I want to know how to fetch the latest record for action based forms.
Sreenivasan,
Just follow the steps to get the latest record for the employee within the given period.
1.Define internal table for the infotypes
2. Use the below Include.
INFOTYPES:0000,0001.
3.Use the below function module to get employee information by giving some inputs mentioned.
Include DBPNPMAC.
4.use the macro to read the latest record.
HR_READ_INFOTYPE
Exp. <-- Pernr
<--Infotype
<-- Begda
<-- Endda
Tables <--Infotype Table
If you are working on form for HR purpose why dont u use PNP logical database to write Driver program ..
I hope that it helps you.
Regards,
Venkat.O.
RP-PROVIDE-FROM-LAST p0000 space <start-date> <end-date.
"space--> when there is no subtype for the infotype.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivasan,
You can make use of set parameter and get parameter for the action based forms.
Try out and let me know,
Regards,
Swapnil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.