01-27-2009 8:35 AM
Dear Friends
I need to read department text which has the name as "P1001STEXT" from the strcuture Q1001, if you go to Po10 there is infotype relationship. Here we can find department based on Organization unit, How can i find the text of it. can you give me some suggestion. is there any function module to read from this infotype. can we use hr_read_infotype for hrp1001 infotype. please reply me, any help of yours will be greatly appreciated.
Thanking you
Regards
Naeem
01-27-2009 8:42 AM
HI,
STEXT is P1000 field not the P1001
Check this FM RH_READ_HRP_OBJECT_TEXT
CALL FUNCTION 'RH_READ_HRP_OBJECT_TEXT'
EXPORTING
act_langu = sy-langu
act_otype = 'O'
act_objid = objid " organiztion unit
act_plvar = '01'
act_begda = sy-datum
act_endda = sy-datum
act_state = '1'
TABLES
act_p1000 = lt_p1000
EXCEPTIONS
no_data_found = 1
no_valid_object = 2
OTHERS = 3.
Edited by: Avinash Kodarapu on Jan 27, 2009 2:12 PM
01-27-2009 8:42 AM
HI,
STEXT is P1000 field not the P1001
Check this FM RH_READ_HRP_OBJECT_TEXT
CALL FUNCTION 'RH_READ_HRP_OBJECT_TEXT'
EXPORTING
act_langu = sy-langu
act_otype = 'O'
act_objid = objid " organiztion unit
act_plvar = '01'
act_begda = sy-datum
act_endda = sy-datum
act_state = '1'
TABLES
act_p1000 = lt_p1000
EXCEPTIONS
no_data_found = 1
no_valid_object = 2
OTHERS = 3.
Edited by: Avinash Kodarapu on Jan 27, 2009 2:12 PM