cancel
Showing results for 
Search instead for 
Did you mean: 

Reading values within a timeperiod out of HR table

Former Member
0 Kudos

Hi

I need to collect values X associated with their ID and the value of DATETO out of the EMPLOYEE table. I am only interested in the values that lie between a specific timeperiod from y to z.

How can I do that? I have seen that there is a provide function but does it also work with dates?

Further I have read something like that an FM exists, anybody got an idea about where I can find it or how it was called?

Thanks a lot,

Greetings,

Nana

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

Hi,

if you want to read the employee data then you can use this FM <b>HR_READ_INFOTYPE</b> , infotype PA0001, pass begda and endda. and get the data.


  CALL FUNCTION 'HR_READ_INFOTYPE'
       EXPORTING
            TCLAS           = 'A'
            PERNR           = PERNR-PERNR
            INFTY           = '0001'
           BEGDA           = '18000101'
           ENDDA           = '99991231'
*         BYPASS_BUFFER   = ' '
*    IMPORTING
*         SUBRC           =
       TABLES
            INFTY_TAB       = INFTY_0000
       EXCEPTIONS
            INFTY_NOT_FOUND = 1
            OTHERS          = 2.

  IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

Regards

Vijay

suresh_datti
Active Contributor
0 Kudos

Hi,

You can find the function using Trransaction SE37. If you want to go via SE80, the function group is HRAC.

Regards,

Suresh Datti

former_member188685
Active Contributor
0 Kudos

hi,

check it in <b>SE37</b>, Function Group is <b>HRAC</b>

regards

vijay

Former Member
0 Kudos

Tried it, no HRAC function group, so it seems that I don't have it on the system....

I am working on BW system, do you know if this might have an influence on the FMs available?

Ok, so if I cant use the FM, what else can I do?

Anybody got an idea????

Thanks,

Nana

suresh_datti
Active Contributor
0 Kudos

Then you will not have any of the PA tables too.. You will have to Query off the EMPLOYEE table in BW.. You may not be able to use the PROVIDE statements too..

Regards,

Suresh Datti

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi nana,

1. simple

there is a standard fm for it.

2.

DATA : p0001 LIKE TABLE OF p0001 WITH HEADER LINE.

*----


Read Info Type 1

CALL FUNCTION 'HR_READ_INFOTYPE'

EXPORTING

tclas = 'A'

pernr = mypernr

infty = '0001'

begda = begda

endda = endda

  • BYPASS_BUFFER = ' '

  • LEGACY_MODE = ' '

  • IMPORTING

  • SUBRC =

TABLES

infty_tab = p0001

EXCEPTIONS

infty_not_found = 1

OTHERS = 2

3. just provide the start and enddate

in begda and endda respectively

regards,

amit m.

Former Member
0 Kudos

Ok, where can I find this function???

When I use SE15-> FM it does not show up?

Which function group does it belong to?

Greetings,

Nana