Skip to Content
0
Former Member
Sep 17, 2007 at 01:54 PM

Error in RFC Code -EPG 001Personnel number not yet assigned

71 Views

Dear Freinds,

i have requirement where the custom infotype which has been created with

the fields ZNOTENROLED,ZEMPLOYEE1,zEMPLSPCHLD1,ZEMPCHLOTH. This

fields they want in Portal. So i have created an RFC( by making the function module

remote enabled).

Now to test whether the function module is working or not i have unchecked the remote enabled.

however there is problem in my function module iam getting the error as follows

EPG 001Personnel number not yet assigned from t he function module

HR_INFOTYPE_OPERATION'.. Iam giving the code please correct me

Import parameters ( i have given my custom infotype fields)

EMPLOYEENUMBER LIKE P9004-PERNR

BEGINDATE LIKE P9004-BEGDA

ENDDATE LIKE P9004-ENDDA

NOTENROLEDINSUR LIKE P9004-ZNOTENROLED

EMPLOYEEINSUR LIKE P9004-ZEMPLOYEE1

EMPLSPOUINSUR LIKE P9004-ZEMPLSPCHLD1

EMPLCHILD1INSUR LIKE P9004-ZEMPCHLD1

EMPLCHILDOINSUR LIKE P9004-ZEMPCHLOTH

Export parameters

RETURN LIKE BAPIRETURN1

in the source code i have given as follows

call function 'BAPI_EMPLOYEE_ENQUEUE'

exporting

number = employeenumber.

call function 'HR_INFOTYPE_OPERATION'

exporting

infty = '9004'

number = employeenumber

  • subtype = subtype

  • objectid = objectid

  • lockindicator = lockindicator

validityend = enddate

validitybegin = begindate

  • recordnumber = recordnumber

record = p9004

operation = 'INS' "change

nocommit = ' ' " nocommit

importing

return = return

exceptions

others = 0.

*deque

call function 'BAPI_EMPLOYEE_DEQUEUE'

exporting

number = employeenumber.

i have executed the function module by entering the follows

EMPLOYEENUMBER 00002315

BEGINDATE 01062007

ENDDATE 31032007

NOTENROLEDINSUR Space

EMPLOYEEINSUR X

EMPLSPOUINSUR Space

EMPLCHILD1INSUR LIKE Space

EMPLCHILDOINSUR LIKE Space

in the return value i got the above error EPG 001Personnel number not yet assigned from t he function module