Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HR_INFOTYPE_OPERATION

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

Hi Karthik,

I didn't see you passing P9090-BEGDA in your code. Please try passing that also.

Regards,

Kiran

0 Kudos

Hi Kiran, m passing that field also

0 Kudos

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?

0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

Thank you Mr. Veeranji Reddy. i jus fixed my prob.