‎2008 Dec 24 12:42 PM
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 .
‎2008 Dec 24 12:57 PM
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 ..
‎2008 Dec 24 12:57 PM
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 ..
‎2008 Dec 24 1:09 PM
It is now working , but when I will go for taking the data from PAYRESULT , how can i use the LOOP of this .
‎2008 Dec 24 1:13 PM
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.
‎2008 Dec 24 1:14 PM
‎2008 Dec 24 1:28 PM
SORRY , I GOT THE TYPE FROM UR ANSWER WHICH IS GIVEN BY YOU .
‎2008 Dec 24 1:01 PM
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.