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 failing to create record in infotype 0167

Former Member
0 Kudos

Greetings!

I'm passing the following structure to HR_INFOTYPE_OPERATION but it's failing with "Fill in all required fields". I've checked in debugging and all of those fields are being populated with some value (not initial). Am I missing a required field for the 167 record?


            lv_p0167-pernr = lv_newpr.
            lv_p0167-subty = 'A001'.
            lv_p0167-infty = gc_infty0167_health.
            lv_p0167-endda = gc_maxenddate.
            lv_p0167-begda = lv_begda
            lv_p0167-pltyp = 'A001'.
            lv_p0167-bopti = '0001'.
            lv_p0167-barea = '01'.
            lv_p0167-bplan = gt_enrollment-hplan.
            lv_p0167-depcv = gt_enrollment-hplandepcov.
            lv_p0167-dty01 = gv_depbuffer-subty.
            lv_p0167-did01 = gv_depbuffer-objps.
            lv_p0167-dty02 = gt_enrollment-deprela.
            lv_p0167-did02 = lv_objps.

This is the structure at runtime, before the call to HR_INFOTYPE_OPERATION...

PERNR	                                   	00003662
INFTY	                                   	0167
SUBTY	                                   	A001
OBJPS	                                   
SPRPS	                                   
ENDDA	                                   	99991231
BEGDA	                                   	20080101
SEQNR	                                   	000
AEDTM	                                   	00000000
UNAME	                                   
HISTO	                                   
ITXEX	                                   
REFEX	                                   
ORDEX	                                   
ITBLD	                                   
PREAS	                                   
FLAG1	                                   
FLAG2	                                   
FLAG3	                                   
FLAG4	                                   
RESE1	                                   
RESE2	                                   
GRPVL	                                   
BAREA	                                   	01
PLTYP	                                   	A001
BPLAN	                                   	A503
BENGR	                                   
BSTAT	                                   
ELIDT	                                   	00000000
ELDTO	                                   	00000000
PARDT	                                   	00000000
BOPTI	                                   	0001
DEPCV	                                   	0004
COORD	                                   
PROVI	                                   
POLNR	                                   
ENRTY	                                   
EVENT	                                   
EOGRP	                                   	00000000
EOIRQ	                                   
EOIPR	                                   
PRETX	                                   
CSTOV	                                   	0.00
BNCST	                                   	0.00
PERIO	                                   	00
CURRE	                                    
DTY01	                                   	2
DID01	                                   	01
DTY02	                                   	2
DID02	                                   	02

Edited by: Steve King on Sep 24, 2008 8:17 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Did you try calling the FM with


dialog_mode   = '2'

This will execute the FM step by step displaying all the screens. Once you reach the errror you can check the screen and see what value was not populated.

2 REPLIES 2

Former Member
0 Kudos

Did you try calling the FM with


dialog_mode   = '2'

This will execute the FM step by step displaying all the screens. Once you reach the errror you can check the screen and see what value was not populated.

0 Kudos

Thanks. That worked. I was missing PARDT.