on 07-09-2007 9:15 AM
writing the function module to get the value and validate the infotype using hr_read_infotype
there is any option to get declare the hr_read_infotype,get the result in output structure
import paramertes pernr
sydatum
export parameter sy-subrc
tables pa0028,pa0002,pa0488,pa0021.
i have to validuate the diesese name from it0028,martial status from it0002,
leave scheme from it0488 and spouse name and child name from pa0021.
can give me solution or suggestion
Hello Kum
you can use a select quey with join to fetch record in one go, you need to declare a internal table with fields from difeerent infotypes with sam field names.
else declare a internal table with fields from different infotype then fetch IT-0002 details with FM : HR_READ_INFOTYPE then get for 0021 & so on from each infotype, then move data from different infotypes to the internal table declared.
reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use join with:
PROVIDE ......
END-PROVIDE.
Regards,
Naveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
actually i am writing remote enabled function module for dotnet .i have to show the
values in the structure ,which i defined under table in the fm.i am fetching data from
4 tables,p0002 to get the marital status, p0021 to get the spouse and kids name,
pa0488 to get the leave scheme ,p9928 one table i am getting the diesease(for this if the person has disease, i have to show value x.
I am getting the values for p0021 and p9928 using fm hr_read_infotype but this data ,are not on same row.remaining tables, i am unable to fetch the data,pls give u r valuable suggestion.
Message was edited by:
kum karthi
types : begin of ty_data
fields from IT-2
fields from IT-21
fields from IT-28
..
end of ty_data.
data wa_data type ty_data.
wa_data-pernr = wa_0002-pernr
wa_data-nachn = wa_0002-nachn
wa_data-(fields from othe IT) = wa_(other infotype)-(fields)
append wa_data to it_data (if multiple records else directly pass wa_data)
hope this helps you reward points if helpful
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.