09-04-2008 1:52 PM
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
09-04-2008 2: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
09-04-2008 1: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
09-04-2008 2: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