03-12-2007 9:24 PM
Hi,
We have just upgraded SAP from 4.6C to ECC6 in the weekend. We have one custom operation called OPZRATE. This operation is called in payroll journal creation. When this payroll journal is run, it gave the following error:
Error in the ABAP application program.
The current ABAP program RPCALCU0 had to be terminated because it has come across a statement that unfortunately cannot be executed.
Function module HR_READ_INFOTYPE was called with the parameter
REFRESH_INFTY_TAB. This parameter is not defined.
The following is the FM call.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
TCLAS = 'A'
PERNR = pernr-pernr
INFTY = '0008'
BEGDA = pn-begda
ENDDA = pn-endda
REFRESH_INFTY_TAB = 'X'
IMPORTING
SUBRC = z_stat
TABLES
INFTY_TAB = z0008
EXCEPTIONS
INFTY_NOT_FOUND = 4
OTHERS = 8
Thanks for the great help.
Sobhan.
03-12-2007 9:41 PM
This parameter was removed in later versions, so you need to change your program accordingly.
Look for OSS note, if there for this one.
current format for the FM -
*" IMPORTING
*" VALUE(TCLAS) TYPE PSPAR-TCLAS DEFAULT 'A'
*" VALUE(PERNR) TYPE PRELP-PERNR
*" VALUE(INFTY) TYPE PRELP-INFTY
*" VALUE(BEGDA) TYPE PRELP-BEGDA DEFAULT '18000101'
*" VALUE(ENDDA) TYPE PRELP-ENDDA DEFAULT '99991231'
*" REFERENCE(BYPASS_BUFFER) TYPE FLAG DEFAULT ' '
*" REFERENCE(LEGACY_MODE) TYPE BOOLE_D DEFAULT SPACE
*" EXPORTING
*" VALUE(SUBRC) TYPE SY-SUBRC
*" TABLES
*" INFTY_TAB
*" EXCEPTIONS
*" INFTY_NOT_FOUND
Regards,
Amit
Reward all helpful replies.
03-12-2007 9:47 PM
Hi Amit,
Thanks for the help. It is working in new devlopement (DLP) and QAS but not in production. That to this problem is happening for only one person.
Thanks,
Sobhan.
03-12-2007 10:02 PM
Exact reason I cant say at the moment as have to look for the OSS note on this one but Report RPCALCU0 does not call this parameter for the FM in ECC, but right now I cant check it for 4.6 version.
But, the only thing I can think of right now is that might be for other user this value is going as BLANK/SPACE as default and not for this PERNR, therefore it affected the employee number.
Regards,
Amit