Skip to Content
avatar image
Former Member

Hr Infotyp 552. FM - how to get the Year Month Day?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 04, 2008 at 01:19 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 12:57 PM

    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

    Add comment
    10|10000 characters needed characters exceeded