I have a bit of an issue. I'm trying to create a new employee using FM HR_MAINTAIN_MASTERDATA. Unfortunately, when I call the FM and enter the below listed imports, I receive the following error
PERNR ==> 00000000
MASSN ==> Z1
ACTIO ==> INS
TCLAS ==> A
BEGDA ==> 13.06.2008
ENDDA ==> 31.12.9999
OBJPS ==> Z8
SEQNR ==> 000
WERKS ==> 0001
PERSG ==> 1
PERSK ==> HH
PLANS ==> 99999999
DIALOG_MODE ==> 0
LUW_MODE ==> 1
Export parameters Value
RETURN EPG316Invalid combination of action type Z1/action reason
RETURN1 EPG 316Invalid combination of action type Z1/action reason
HR_RETURN 00000000A0000Z1 INS 00PG E316Z1
I'm confused by this because there is no where in the function module where it asks you to enter the Action Reason. When I switch dialog_mode on I am brought to the create actions screen where all of my data has been read in. The only blank field is Action Reason. When I put it in, it creates the Employee and the Number is provided. We need this number to utilize the FM HR_INFOTYPE_OPERATION to continue the process of creating a new Employee (in this case, Contractor).
Question 1: Can/does HR_MAINTAIN_MASTERDATA pass the MASSG paramater?
Question 2: If not, how hard would it be to create a custom HR_MAINTAIN_MASTERDATA to pass the value of MASSG?
Will reward points accordingly. Thanks in advance for your help.