cancel
Showing results for 
Search instead for 
Did you mean: 

hi

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

answered

Former Member
0 Kudos

Hi,

You can use join with:

PROVIDE ......

END-PROVIDE.

Regards,

Naveen.

Former Member
0 Kudos

Yes Kum,

I think using join with provide can be good idea which has been already

suggested by Naveen.

With Regards,

Darshan Mulmule

Former Member
0 Kudos

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

Former Member
0 Kudos

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