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: 

HR ABAP using Function Module

Former Member
0 Kudos

Hi Experts,

I want fetch HRP1001-SOBID based on relation between Organization Unit (O) and Business Reporting Unit (ZB) for org.unit.

Here i am using one FM : RH_STRUC_GET .

but any one tell how can i get exactly plz help me.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Try this FM RH_READ_INFTY_1001 .


  MOVE p_objid TO objects-objid.
  MOVE 'O' TO objects-otype.               ---> or 'ZB' as per your requirement
  MOVE '01' TO objects-plvar.
  APPEND objects.

In case you want both you can add ZB also
  MOVE p_objid TO objects-objid.
  MOVE 'ZB' TO objects-otype.               
  MOVE '01' TO objects-plvar.
  APPEND objects.


CALL FUNCTION 'RH_READ_INFTY_1001'
    EXPORTING
      authority             = ' '
      with_stru_auth        = ' '
      istat                    = '1'
      subty                 =  l_subty               -> no subtype pass blank
      begda                 = p_begda
      endda                 = p_endda
      adata                 = ' '
    TABLES
      i1001                 = i1001
      objects               = objects
    EXCEPTIONS
      nothing_found         = 1
      wrong_condition       = 2
      OTHERS                = 3.

Edited by: Avinash Kodarapu on Mar 19, 2009 4:20 PM

Former Member
0 Kudos

Hi,

For the above requirement, its better to try with select query

select single sobid from hrp1001 into {internal table} where {ur condtion}

Can you please eleberate ur question?

Regards

Arani Bhaskar