2010 Aug 09 11:54 AM
Hi Techies,
I am using HR_INFOTYPE_OPERATION function module to insert records into custom infotype with TC 3.
I am able to insert the first record with this for one PERNR. But when m tryin to insert the next record for the same PERNR, it is giving an error message saying 'FILL IN ALL REQUIRED ENTRY FIELDS' .
Could you please suggest me to fix this problem.
thanks,
Karthik
Hi Techies,
I am using HR_INFOTYPE_OPERATION function module to insert records into custom infotype with TC 3.
I am able to insert the first record with this for one PERNR. But when m tryin to insert the next record for the same PERNR, it is giving an error message saying 'FILL IN ALL REQUIRED ENTRY FIELDS' .
Could you please suggest me to fix this problem.
thanks,
Karthik
2010 Aug 09 11:58 AM
Hi,
Please check if there are any missing key fields you have not entered the data and also check if there are any mandatory fields you have given in infotype screen. If this is not your problem, please explain in detail.
Regards,
Kiran
2010 Aug 09 12:01 PM
DATA : P9090 LIKE P9090,
OPERN LIKE PSYST-IOPER VALUE 'INS'.
P9090-EMPNO = EMPNO.
P9090-EDATE = EDATE.
P9090-NO_OF_HOURS = NO_OF_HOURS.
P9090-COMMENTS = COMMENTS.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = EMPNO
IMPORTING
RETURN = RETURN
.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '9090'
number = EMPNO
SUBTYPE =
OBJECTID =
LOCKINDICATOR = 'X'
VALIDITYEND = P9090-ENDDA
VALIDITYBEGIN = P9090-BEGDA
RECORDNUMBER =
record = P9090
operation = OPERN
TCLAS = 'A'
DIALOG_MODE = '0'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = RETURN
KEY =
.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = EMPNO
IMPORTING
RETURN = RETURN
.
This is the code i am trying with. could you please find any mandatory fields to pass for the function module.
2010 Aug 09 12:05 PM
Hi Karthik,
I didn't see you passing P9090-BEGDA in your code. Please try passing that also.
Regards,
Kiran
2010 Aug 09 12:07 PM
2010 Aug 09 12:12 PM
Hi,
in the function module HR_INFOTYPE_OPERATION documentation, it is mentioned that
"If you receive error messages of type 'Required field not filled...', you can not specify the field any more precisely. In this case, you must try to transfer the data into the system using the dialog transaction"
whats this?
2010 Aug 09 12:19 PM
Hi Karthik,
I didn't see passing begda in ur code snippet that's why asked to pass that also. Anyhow try to keep a break point at the Fm and check all the fields are passed or not.
Otherwise, you have to go for dialog entry as mentioned in documentation.
2010 Aug 09 12:23 PM
Try passing value '1' for field DIALOG_MODE.
DIALOG_MODE = '1'DIALOG_MODE is an export parameter of this FM.
This will show all the screens one-by-one of your transaction.
U can find where it is going wrong...
KR
Veeranji Reddy P.
described DIALOG_MODE
2010 Aug 09 1:10 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |