2010 Sep 15 1:56 PM
Hi,
when we have callled function module "PYXX_READ_PAYROLL_RESULT" in out HR-ABAP program then shows the short dump as:
procedure "PYXX_READ_PAYROLL_RESULT" "(FUNCTION)", nor was it propagated by
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
Call to FORM "IMPORT_RESULT" is incorrect:
The actual parameter no. 2 has a different data type in the
PERFORM than requested for the FORM "IMPORT_RESULT" in program "%_T02E40".
Please provide the solution any one.
regards,
2010 Sep 15 2:01 PM
>
> Call to FORM "IMPORT_RESULT" is incorrect:
> The actual parameter no. 2 has a different data type in the
> PERFORM than requested for the FORM "IMPORT_RESULT" in program "%_T02E40".
Your solution is right there.. just need to think a bit harder.
Hi,
when we have callled function module "PYXX_READ_PAYROLL_RESULT" in out HR-ABAP program then shows the short dump as:
procedure "PYXX_READ_PAYROLL_RESULT" "(FUNCTION)", nor was it propagated by
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
Call to FORM "IMPORT_RESULT" is incorrect:
The actual parameter no. 2 has a different data type in the
PERFORM than requested for the FORM "IMPORT_RESULT" in program "%_T02E40".
Please provide the solution any one.
regards,
2010 Sep 15 2:01 PM
>
> Call to FORM "IMPORT_RESULT" is incorrect:
> The actual parameter no. 2 has a different data type in the
> PERFORM than requested for the FORM "IMPORT_RESULT" in program "%_T02E40".
Your solution is right there.. just need to think a bit harder.
2010 Sep 15 3:43 PM
In the function module PYXX_READ_PAYROLL_RESULT the call to this form is dynamic:
PERFORM import_result IN PROGRAM (subroutine_pool-name)
USING key
payroll_result
import_subrc
pcl2_version_number
typepool_version_number
IF FOUND.As you can see second parameter is payroll_result which is also a changing parameter of the function module PYXX_READ_PAYROLL_RESULT, however it is untyped in the interface of the function module. Therefore, you probably do not supply the function module with the variable of the correct type. My suggestion is to place a break point on the SUBMIT statement, check the content of the subroutine_pool-name, find the program that is called, read its source and determine the right type from there.
Regards
2010 Sep 16 7:20 AM
Hi,
actually i have already defined the type of payroll_result as pay99_result which is same in subroutine_pool.
but the problem not resolved.
regards,
2010 Sep 16 7:27 AM
2010 Sep 16 7:33 AM
Hi,
Please check if UR passing any value to the importing parameter : read_only_international .
If read_only_international is initial .. this means your are reading results for other countries for which there is no structure
defined.
Say if you are executing the FM for US pass PAYUS_RESULT .... instead of PAY99_RESULT .
In your case pass 'X' to importing parameter ' read_only_international '.
Regards,
Srini.
2010 Sep 16 7:55 AM
Hi,
You might have called with wrong payroll_result structure.
check with the structure type.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |