Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Department text read from the infotype relationship

naimkhans_babi
Active Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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