04-25-2008 9:57 AM
Hi,
when I was doing the EPC check i have approached this messgae.
Return code (SY-SUBRC) for the EXCEPTION will not be processed after CALL FUNCTION
'CU_READ_RGDIR'
(You can turn off this check by setting all EXCEPTIONS to 0)
(The message can be hidden with "#EC *)
Any pointers on how to handle this.
Regards
Rohini.
04-25-2008 10:42 AM
Hi Rohini,
The Extended syntax check expects to use the SY-SUBRC check immediately after the CALL FUNCTION command, if you are setting the EXCEPTION parameters. Hence the error.
But if the programming logic is already working fine and needs no change, then you can eliminate this error by adding a "#EC FB_RC at the line which contains the EXCEPTIONS parameter in the CALL FUNCTION interface.
Best Regards,
Rekha
04-25-2008 3:45 PM
Hi Rohini,
Try doing something like this.
TYPE-POOLS: hrpay.
DATA: w_pernr TYPE p0000-pernr ,
w_buffer TYPE hrpay_buffer,
w_no_authority_check TYPE xfeld ,
w_molga TYPE t500l-molga ,
t_in_rgdir TYPE TABLE OF pc261.
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
persnr = w_pernr
buffer = w_buffer
no_authority_check = w_no_authority_check
IMPORTING
molga = w_molga
TABLES
in_rgdir = t_in_rgdir
EXCEPTIONS
OTHERS = 0.