Application Development and Automation 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: 
Read only

ABAP HR

Former Member
0 Likes
520

Hi Experts,

How to read hrp9701 if I know the pernr.

what are the things to given as input to get hrp9701 as output. And please tell me in which table I can get PLVAR, OTYPE, OBJID for 1 pernr.

CALL FUNCTION 'RH_READ_INFTY'

  • EXPORTING

  • AUTHORITY = 'DISP'

  • WITH_STRU_AUTH = 'X'

  • PLVAR =

  • OTYPE =

  • OBJID =

  • INFTY = ' '

  • ISTAT = ' '

  • EXTEND = 'X'

  • SUBTY = ' '

  • BEGDA = '19000101'

  • ENDDA = '99991231'

  • CONDITION = '00000'

  • INFTB = '1'

  • SORT = 'X'

  • VIA_T777D = ' '

TABLES

INNNN =

  • OBJECTS =

  • EXCEPTIONS

  • ALL_INFTY_WITH_SUBTY = 1

  • NOTHING_FOUND = 2

  • NO_OBJECTS = 3

  • WRONG_CONDITION = 4

  • WRONG_PARAMETERS = 5

  • OTHERS = 6

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Thank you.

Regards,

Admir.

Points will be rewarded.

Hi Experts,

How to read hrp9701 if I know the pernr.

what are the things to given as input to get hrp9701 as output. And please tell me in which table I can get PLVAR, OTYPE, OBJID for 1 pernr.

CALL FUNCTION 'RH_READ_INFTY'

  • EXPORTING

  • AUTHORITY = 'DISP'

  • WITH_STRU_AUTH = 'X'

  • PLVAR =

  • OTYPE =

  • OBJID =

  • INFTY = ' '

  • ISTAT = ' '

  • EXTEND = 'X'

  • SUBTY = ' '

  • BEGDA = '19000101'

  • ENDDA = '99991231'

  • CONDITION = '00000'

  • INFTB = '1'

  • SORT = 'X'

  • VIA_T777D = ' '

TABLES

INNNN =

  • OBJECTS =

  • EXCEPTIONS

  • ALL_INFTY_WITH_SUBTY = 1

  • NOTHING_FOUND = 2

  • NO_OBJECTS = 3

  • WRONG_CONDITION = 4

  • WRONG_PARAMETERS = 5

  • OTHERS = 6

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Thank you.

Regards,

Admir.

Points will be rewarded.

2 REPLIES 2
Read only

suresh_datti
Active Contributor
0 Likes
477

HRP9701 is a custom infotype.. you should know what its structure is..got se11 & display HRP9701, you will know.

~Suresh

Read only

0 Likes
477

Thank you Experts.