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 Infotyp 552. FM - how to get the Year Month Day?

Former Member
0 Kudos

Hello

In Infoty 552 you find a table with the dateelements DURYY, DURMM, DURDD.

But all field values are 0 when i look at the table with se16n.

When i look at the infotyp with pa20, i see the right values - so they must be calculated at run time.

Does anybody know a FM how to calculate these? i can't find them in debugger?

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use this Function Module. Pass the Begin Data and End Date of infotype record it wll give you required values.

HR_SEN_CRULE_0100_DURATION

A

2 REPLIES 2

Former Member
0 Kudos

hi,

You can use FM HR_READ_INFOTYPE for this purpose.

HR_READ_INFOTYPE 
 IMPORTING
     VALUE(TCLAS) TYPE  PSPAR-TCLAS DEFAULT 'A'
     VALUE(PERNR) TYPE  PRELP-PERNR ----------> Put perner
     VALUE(INFTY) TYPE  PRELP-INFTY     ----------> Turget infotype
     VALUE(BEGDA) TYPE  PRELP-BEGDA DEFAULT '18000101'
     VALUE(ENDDA) TYPE  PRELP-ENDDA DEFAULT '99991231'
     REFERENCE(BYPASS_BUFFER) TYPE  FLAG DEFAULT ' '
     REFERENCE(LEGACY_MODE) TYPE  BOOLE_D DEFAULT SPACE
  EXPORTING
     VALUE(SUBRC) TYPE  SY-SUBRC
  TABLES
      INFTY_TAB      -------------> internal table compatible to turget infotype
  EXCEPTIONS
      INFTY_NOT_FOUND

Regards,

Anirban

Former Member
0 Kudos

Use this Function Module. Pass the Begin Data and End Date of infotype record it wll give you required values.

HR_SEN_CRULE_0100_DURATION

A