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: 

Type conflict when calling a FORM

subhash_verma
Explorer
0 Kudos

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,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

>

> 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.

6 REPLIES 6

Former Member
0 Kudos

>

> 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.

0 Kudos

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

subhash_verma
Explorer
0 Kudos

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,

0 Kudos

Paste the function call here with declarations.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

You might have called with wrong payroll_result structure.

check with the structure type.