Application Development and Automation 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: 
Read only

Function Module PYXX_READ_PAYROLL_RESULT

Former Member
0 Likes
4,400

Hi GURU ,

I am going to run this Function Module "PYXX_READ_PAYROLL_RESULT".

I have passed

CLUSTERID IN

EMPLOYEENUMBER 00000007

SEQUENCENUMBER 00001

It will give errorr -


*******************************************************************************************************************

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was

not caught in

procedure "PYXX_READ_PAYROLL_RESULT" "(FUNCTION)", nor was it propagated by a

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 "%_T00E00".

********************************************************************************************************************

Is there anything else I have to pass here .

1 ACCEPTED SOLUTION
Read only

Former Member
2,307

declare your changing parameter (PAYROLL_RESULT) as below

DATA : PAYRESULT TYPE PAY99_RESULT.

and in the exporting parameters pass 'X' to

READ_ONLY_INTERNATIONAL ..

Also try to pass CLUSTERID which can be obtained from FM PYXX_GET_RELID_FROM_PERNR ..

6 REPLIES 6
Read only

Former Member
2,308

declare your changing parameter (PAYROLL_RESULT) as below

DATA : PAYRESULT TYPE PAY99_RESULT.

and in the exporting parameters pass 'X' to

READ_ONLY_INTERNATIONAL ..

Also try to pass CLUSTERID which can be obtained from FM PYXX_GET_RELID_FROM_PERNR ..

Read only

0 Likes
2,307

It is now working , but when I will go for taking the data from PAYRESULT , how can i use the LOOP of this .

Read only

0 Likes
2,307

Use as below .. need to get from the inter-rt(for RT .... similarly for others)

data : W_RT TYPE PC207.

LOOP AT PAYROLL_RESULT-INTER-RT INTO W_RT.

CASE W_RT-LGART.

WHEN '/101'.

IT_FINAL-GROSS = W_RT-BETRG.

WHEN '/560'.

IT_FINAL-NET = W_RT-BETRG.

ENDCASE.

ENDLOOP.

Read only

0 Likes
2,307

Hi ,

What is the type of W_RT ????

Read only

0 Likes
2,307

SORRY , I GOT THE TYPE FROM UR ANSWER WHICH IS GIVEN BY YOU .

Read only

Former Member
0 Likes
2,307

hi,

CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'

EXPORTING

clusterid = 'IN'

employeenumber = wa_hrpy_rgdir-pernr

sequencenumber = wa_hrpy_rgdir-seqnr

read_only_international = 'X'

CHANGING

payroll_result = it_payroll

EXCEPTIONS

illegal_isocode_or_clusterid = 1

error_generating_import = 2

import_mismatch_error = 3

subpool_dir_full = 4

no_read_authority = 5

no_record_found = 6

versions_do_not_match = 7

OTHERS = 8.

try this one

Regards,

Arjun.