‎2014 Mar 10 11:04 PM
Hi Experts,
We are facing a prob;em while trying to use hr_maintain_masterdata for hiring action, the following message is being thorwn.
.
Message no. P0604.
can anyone please help us regarding the same ?
Do we need to some configuration or any more FM call before using HR_MAINTAIN_MASTERDATA ?
We have searched the forum but unfortunately did not find anything.
We are just calling the FM for creating the employee, if we want to try it via PA40 then its' work fine and the employee is also created but problem is thrown while we are calling the FM. Please find the parameter which we used while calling the FM.
PERNR 00000000
MASSN
ACTIO INS
TCLAS A
BEGDA 03/09/2014
ENDDA 12/31/9999
OBJPS
SEQNR 000
SPRPS E
SUBTY
WERKS NU10
PERSG 6
PERSK B1
PLANS 99999999
DIALOG_MODE 0
LUW_MODE 0
NO_EXISTENCE_CHECK X
NO_ENQUEUE
We passed the folloiwng parametrers in table PROPOSED_VALUES..
P0000-MASSN
P0000-MASSG
P0000-STAT3
P0000-STAT2
P0001-BUKRS
P0001-WERKS
P0001-PERSG
P0001-PERSK
P0001-BTRTL
P0001-GSBER
P0001-SACHZ
P0000-PLANS
P0002-ANRED
P0002-NACHN
P0002-VORNA
P0002-PERID
P0002-GBDAT
P0002-GESCH
We have tried by changing LUW mode and other but it did not work.
It will be really helpful if someone can help regarding the same.
‎2014 Mar 10 11:43 PM
Hi
2 solutions for your problem.
1. Use the FM- RH_PNNNN_MAINTAIN to maintain the Master Data.
2. Use FM- HR_INFOTYPE_OPERATION to insert the data to the Infotypes.
CALL FUNCTION 'RH_PNNNN_MAINTAIN'
EXPORTING
act_fcode = lc_fcode
act_plvar = lc_plvar
act_otype = lc_otype
act_objid = gs_retail-objid
act_infty = lc_intyp
act_istat = lc_istat
act_begda = lv_sdate
act_endda = lv_edate
act_pnnnn = gs_p1000
act_enqueue = ' '
suppress_dialog = lc_dialog
act_commit_flg = lc_commitflg
IMPORTING
act_mess_info = gs_1000
EXCEPTIONS
infty_not_valid = 1
no_plvar = 2
object_not_defined = 3
otype_not_valid = 4
no_authority = 5
action_rejected = 6
no_gdate = 7
fcode_not_supported = 8
OTHERS = 9.
IF sy-subrc <> 0.
ELSE.
COMMIT WORK.
ENDIF.
‎2014 Mar 11 3:50 PM
Hi Sreeram,
Thanks for the reply but we want to hire the employee first which we do via PA40.
I am not sure whether hr_infotype_operaton can be used for the same for the hiring, what i knew is that it can be used after the creation of employee via PA40.
If so then can you please share the same with me .
Also you have provided
act_pnnnn = gs_p1000
in the above example , what infotype does it refer to ?
It does nolt refer to 0000 infotype i guess, i am not much familier and also having vast idea regarding teh same.
Can you please provide few more details ?
Whar exactly being done with above one and also will it work for 0000 also ?'
HR_MAINTAIN_MASTERDATA should have worked for the same as 0000, 001 and 00002 is given.
am i missing something ?
‎2014 Mar 11 5:55 PM
Hello Rinki,
If you look at the long text of the message as below, goto PE03 and check whether the feature is existing and activated in the system.
*** Long text of message P0604
Short Text
Feature & has not been activated yet
Diagnosis
The feature must be generated before use.
Procedure
Start transaction PE03 and generate the feature.
Regards,
Thanga
‎2014 Mar 11 7:53 PM
Hi Prakash,
We have checked that , there were some issue in that client but now we are gettin the following message
PG220
' Start date before initial entry date' (00/00/0000)
we have provided start date as 03/11/2014 , it seems that somewhere date needs to be maintained properly though we are not sure,
It will be very helpful if you can provide some assistance regarding the same
Thanks in advance.
‎2014 Mar 12 6:13 AM
Hello Rinki,
As you can see the where used list of the message, it is used in include "FP50PF40". Put a breakpoint on the message and try to find the root cause of the error.
Regards,
Thanga