11-22-2017 12:03 PM
Hi All,
I am trying to update Infotype 0001 by using FM HR_INFOTYPE_OPERATIONS and getting error 'Fill in all required entry fields' even though I am passing values to all mandatory fields as per my understanding.
CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
EXPORTING
number = pernr.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0001'
number = pernr
validityend = p0001-endda
validitybegin = p0001-begda
record = p0001
operation = 'INS'
IMPORTING
return = return
key = key.
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
number = pernr.
where I'm populating p0001 before above function call.
I checked by using the below statement as well, fetched one row of data which was already there, modified begda and endda, then called FM HR_INFOTYPE_OPERATIONS:
SELECT single * from pa0001
into CORRESPONDING FIELDS OF p0001
where pernr = pernr.
But getting the same error. However, the row of data which is already there in table should be containing value of all mandatory fields.
I have gone through all the links already there but not having my issue resolved by any of them.
Any suggestions/help would be highly appreciated.
Thanks in advance!
11-23-2017 6:37 AM
11-22-2017 12:33 PM
note, that structures P0001 and PA0001 are different.
you have to fill field P0001-INFTY = '0001'.
11-23-2017 4:42 AM
11-23-2017 6:37 AM
11-23-2017 9:57 AM
Thank-you so much for your help Volker!
My issue got resolved. I was passing an incorrect position(field PLANS) when I was passing values manually. It was data issue what I see now.
Thanks again.
11-23-2017 1:20 PM
Hi Rishali
1. As explained by Volker Binder please check the structure of p0001, As PA0001 is different from P0001.
2. if not the above case, then check with this class CL_HRBAS_INFTY_1001.
11-24-2017 6:24 AM
Hi Naresh,
Thanks for your response. However, these classes are for infotypes of type 1nnn and not for 0nnn what I came to know from their description: