10-15-2008 3:26 PM
Hello,
Anybody any idea how you can know the pernr of the employee you created with HR_MAINTAIN_MASTERDATA?
Problem I am facing:
I create a new employee using HR_MAINTAIN_MASTERDATA.
As I do not have all information required yet, I only update/insert IT0000.
(otherwise the program asks me to "Fill in all required fields")
Then I want to fill up the other IT with HR_INFOTYPE_OPERATION, but I don't know the number that was created.
Can anybody help me?
Thanks.
10-15-2008 3:39 PM
Have you checked the exporting parameter from the fm call?
EXPORTING
*" VALUE(RETURN) LIKE BAPIRETURN STRUCTURE BAPIRETURN
*" VALUE(RETURN1) LIKE BAPIRETURN1 STRUCTURE BAPIRETURN1
*" VALUE(HR_RETURN) LIKE HRHRMM_MSG STRUCTURE HRHRMM_MSG
a®
10-15-2008 3:42 PM
Hi Ilse Van Loocke
output table MODIFIED_KEYS will have the employee number that was generated along with the Infotypes that were created.
With Regards
Balasubramanian
10-15-2008 3:47 PM
I've just started ABAP Developping and I find it nice to know that there are people like you to help me
Thanks a million.
10-15-2008 3:51 PM
I checked the Modified_keys table and the pernr there is '00000000' instead of the one created '00000040' :'(
Any ideas?
10-16-2008 7:27 AM
I used NUMBER_GET_NEXT and then substracted 1...
Not the best solution, but it works...