Hi Gurus,
Could someone please help me in updating the Infotype 2007 (INS operation). I used the HR_INFOTYPE_OPERATION function module to do the same but it is not working. Its working fine for other infotypes but not for 2007. Below is my logic.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = p_infty
number = lv_pernr
SUBTYPE = p_subty
VALIDITYEND = lv_desta
VALIDITYBEGIN = lv_deend
record = p2007
operation = 'INS'
IMPORTING
RETURN = l_return1
KEY = l_key.
Below is the error message (Dump):
The source field is too short.
In the current program "SAPLHRMM", an attempt was made to assign a field to
field symbol where the field is shorter than the type of the field
symbol. This is not supported.
It is a statement of form ASSIGN f TO <fs> CASTING... or ASSIGN f TO
<fs> with a field symbol that was created with the STRUCTURE addition.
Regards,
Siraj.